Closed Bug 24293 Opened 25 years ago Closed 25 years ago

Assertion shutting down the cache

Categories

(Core :: Networking: Cache, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 23263

People

(Reporter: warrensomebody, Assigned: gordon)

Details

I've seen this a couple of times now. I tried to quit the browser by clicking a
window's close box, and hit this assertion in the cache code:

NTDLL! 77f7629c()
nsDebug::Assertion(const char * 0x027274b8, const char * 0x02727490, const char
* 0x0272745c, int 0x00000038) line 186 + 13 bytes
nsDebug::WarnIfFalse(const char * 0x027274b8, const char * 0x02727490, const
char * 0x0272745c, int 0x00000038) line 242 + 21 bytes
nsMemCache::~nsMemCache() line 56 + 54 bytes
nsMemCache::`scalar deleting destructor'(unsigned int 0x00000001) + 15 bytes
nsMemCache::Release(nsMemCache * const 0x02693120) line 69 + 131 bytes
nsCOMPtr<nsINetDataCache>::~nsCOMPtr<nsINetDataCache>() line 434
nsCacheManager::~nsCacheManager() line 67 + 33 bytes
nsCacheManager::`scalar deleting destructor'(unsigned int 0x00000001) + 15
bytes
nsCacheManager::Release(nsCacheManager * const 0x026933f0) line 49 + 131 bytes
DeleteEntry(nsHashKey * 0x02694ae0, void * 0x02694b20, void * 0x00000000) line
216 + 18 bytes
_hashEnumerateRemove(PLHashEntry * 0x02694aa0, int 0x0000003b, void *
0x0012fdbc) line 227 + 26 bytes
PL_HashTableEnumerateEntries(PLHashTable * 0x00bf4060, int (PLHashEntry *, int,
void *)* 0x1001ba20 _hashEnumerateRemove(PLHashEntry *, int, void *), void *
0x0012fdbc) line 368 + 15 bytes
nsHashtable::Reset(int (nsHashKey *, void *, void *)* 0x10048190
DeleteEntry(nsHashKey *, void *, void *), void * 0x00000000) line 243 + 20
bytes
nsObjectHashtable::Reset() line 344
nsObjectHashtable::~nsObjectHashtable() line 310
nsObjectHashtable::`scalar deleting destructor'(unsigned int 0x00000001) + 15
bytes
nsServiceManagerImpl::~nsServiceManagerImpl() line 241 + 31 bytes
nsServiceManagerImpl::`scalar deleting destructor'(unsigned int 0x00000001) +
15 bytes
nsServiceManagerImpl::Release(nsServiceManagerImpl * const 0x00bf4100) line 250
+ 132 bytes
nsServiceManager::ShutdownGlobalServiceManager(nsIServiceManager * *
0x00000000) line 490 + 17 bytes
NS_ShutdownXPCOM(nsIServiceManager * 0x00000000) line 537 + 7 bytes
main(int 0x00000001, char * * 0x00bf44e0) line 712 + 8 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77f1ba06()

What's happening is that RemoveAll is trying to delete each cache record, but
in nsMemCacheRecord::Delete, mNumChannels is 1 so it ends up returning
NS_ERROR_NOT_AVAILABLE. I don't know why mNumChannels isn't zero.
Target Milestone: M14
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
This looks like the same thing as http://bugzilla.mozilla.org/show_bug.cgi?id=
23263 .  Marking as a duplicate.


*** This bug has been marked as a duplicate of 23263 ***
verified dup of bug 23263 [MLK] memory cache shutdown assertion failure
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.