Closed Bug 994687 Opened 10 years ago Closed 10 years ago

Assertion failure: data, at nsCycleCollector.cpp:3715

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 993918

People

(Reporter: gwagner, Unassigned)

Details

Constantly seen on b2g-desktop during shutdown.

Assertion failure: data, at /Users/Gregor/code/src/xpcom/base/nsCycleCollector.cpp:3715
Process 43943 stopped
* thread #1: tid = 0x43e9e, 0x00000001015dafb2 XUL`NS_CycleCollectorSuspect3(n=0x0000000114472510, cp=0x0000000000000000, aRefCnt=0x0000000114472540, aShouldDelete=0x00007fff5fbfe32f) + 114 at nsCycleCollector.cpp:3715, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000001015dafb2 XUL`NS_CycleCollectorSuspect3(n=0x0000000114472510, cp=0x0000000000000000, aRefCnt=0x0000000114472540, aShouldDelete=0x00007fff5fbfe32f) + 114 at nsCycleCollector.cpp:3715
   3712	    CollectorData *data = sCollectorData.get();
   3713	
   3714	    // We should have started the cycle collector by now.
-> 3715	    MOZ_ASSERT(data);
   3716	
   3717	    if (MOZ_LIKELY(data->mCollector)) {
   3718	        data->mCollector->Suspect(n, cp, aRefCnt);
(lldb) p data
(CollectorData *) $0 = 0x0000000000000000
Do you have more of a stack?  Offhand, I'd guess this is a dupe of bug 993171.
jetlag fail :)

(lldb) bt
* thread #1: tid = 0x45f5e, 0x00000001015dafb2 XUL`NS_CycleCollectorSuspect3(n=0x000000011e52a010, cp=0x0000000000000000, aRefCnt=0x000000011e52a040, aShouldDelete=0x00007fff5fbfe32f) + 114 at nsCycleCollector.cpp:3715, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00000001015dafb2 XUL`NS_CycleCollectorSuspect3(n=0x000000011e52a010, cp=0x0000000000000000, aRefCnt=0x000000011e52a040, aShouldDelete=0x00007fff5fbfe32f) + 114 at nsCycleCollector.cpp:3715
    frame #1: 0x00000001016061ef XUL`nsCycleCollectingAutoRefCnt::decr(this=0x000000011e52a040, owner=0x000000011e52a010, p=0x0000000000000000, shouldDelete=0x00007fff5fbfe32f) + 207 at nsISupportsImpl.h:183
    frame #2: 0x00000001016368e5 XUL`nsCycleCollectingAutoRefCnt::decr(this=0x000000011e52a040, owner=0x000000011e52a010, shouldDelete=0x00007fff5fbfe32f) + 53 at nsISupportsImpl.h:171
    frame #3: 0x0000000103336a10 XUL`nsXPCWrappedJS::Release(this=0x000000011e52a000) + 368 at XPCWrappedJS.cpp:250
    frame #4: 0x00000001016bb548 XUL`nsXPTCStubBase::Release(this=0x0000000113a66ce0) + 40 at xptcall.cpp:36
    frame #5: 0x00000001033c7d0b XUL`~nsCOMPtr(this=0x000000010fd7ed70) + 91 at nsCOMPtr.h:532
    frame #6: 0x00000001033c4375 XUL`~nsCOMPtr(this=0x000000010fd7ed70) + 21 at nsCOMPtr.h:529
    frame #7: 0x00000001033b7b75 XUL`~nsBasePrincipal(this=0x000000010fd7ed60) + 53 at nsPrincipal.cpp:87
    frame #8: 0x00000001033b81c3 XUL`~nsPrincipal(this=0x000000010fd7ed60) + 83 at nsPrincipal.cpp:137
    frame #9: 0x00000001033b8165 XUL`~nsPrincipal(this=0x000000010fd7ed60) + 21 at nsPrincipal.cpp:137
    frame #10: 0x00000001033b8139 XUL`~nsPrincipal(this=0x000000010fd7ed60) + 25 at nsPrincipal.cpp:137
    frame #11: 0x00000001033b79f8 XUL`nsBasePrincipal::Release(this=0x000000010fd7ed60) + 184 at nsPrincipal.cpp:66
    frame #12: 0x00000001033b804f XUL`nsPrincipal::Release(this=0x000000010fd7ed60) + 31 at nsPrincipal.cpp:126
    frame #13: 0x00000001016ceaeb XUL`~nsCOMPtr(this=0x00000001115df088) + 91 at nsCOMPtr.h:532
    frame #14: 0x00000001016c8b05 XUL`~nsCOMPtr(this=0x00000001115df088) + 21 at nsCOMPtr.h:529
    frame #15: 0x00000001027999fa XUL`~imgRequest(this=0x00000001115df030) + 618 at imgRequest.cpp:81
    frame #16: 0x0000000102799785 XUL`~imgRequest(this=0x00000001115df030) + 21 at imgRequest.cpp:74
    frame #17: 0x0000000102799759 XUL`~imgRequest(this=0x00000001115df030) + 25 at imgRequest.cpp:74
    frame #18: 0x0000000102799189 XUL`imgRequest::Release(this=0x00000001115df030) + 505 at imgRequest.cpp:53
    frame #19: 0x0000000102797041 XUL`~nsRefPtr(this=0x000000011e5223d8) + 49 at nsAutoPtr.h:894
    frame #20: 0x000000010278eb55 XUL`~nsRefPtr(this=0x000000011e5223d8) + 21 at nsAutoPtr.h:892
    frame #21: 0x0000000102784242 XUL`~imgCacheEntry(this=0x000000011e5223c0) + 66 at imgLoader.cpp:502
    frame #22: 0x00000001027841f5 XUL`~imgCacheEntry(this=0x000000011e5223c0) + 21 at imgLoader.cpp:500
    frame #23: 0x0000000102792d9b XUL`imgCacheEntry::Release(this=0x000000011e5223c0) + 299 at imgLoader.h:62
    frame #24: 0x0000000102796e6d XUL`~nsRefPtr(this=0x000000010036d310) + 45 at nsAutoPtr.h:894
    frame #25: 0x000000010278f1c5 XUL`~nsRefPtr(this=0x000000010036d310) + 21 at nsAutoPtr.h:892
    frame #26: 0x0000000102797c45 XUL`nsTArrayElementTraits<nsRefPtr<imgCacheEntry> >::Destruct(e=0x000000010036d310) + 21 at nsTArray.h:536
    frame #27: 0x0000000102797c16 XUL`nsTArray_Impl<nsRefPtr<imgCacheEntry>, nsTArrayInfallibleAllocator>::DestructRange(this=0x00007fff5fbfe8c8, start=0, count=156) + 86 at nsTArray.h:1585
    frame #28: 0x0000000102797b94 XUL`nsTArray_Impl<nsRefPtr<imgCacheEntry>, nsTArrayInfallibleAllocator>::RemoveElementsAt(this=0x00007fff5fbfe8c8, start=0, count=156) + 388 at nsTArray.h:1302
    frame #29: 0x00000001027979ff XUL`nsTArray_Impl<nsRefPtr<imgCacheEntry>, nsTArrayInfallibleAllocator>::Clear(this=0x00007fff5fbfe8c8) + 47 at nsTArray.h:1313
    frame #30: 0x00000001027979b9 XUL`~nsTArray_Impl(this=0x00007fff5fbfe8c8) + 25 at nsTArray.h:764
    frame #31: 0x0000000102797995 XUL`~nsTArray(this=0x00007fff5fbfe8c8) + 21 at nsIHttpChannelInternal.h:17
    frame #32: 0x0000000102790cc5 XUL`~nsTArray(this=0x00007fff5fbfe8c8) + 21 at nsIHttpChannelInternal.h:17
    frame #33: 0x000000010278744e XUL`imgLoader::EvictEntries(this=0x000000011e1bd300, aCacheToClear=0x000000011e1bd340) + 238 at imgLoader.cpp:1515
    frame #34: 0x0000000102786231 XUL`imgLoader::ClearImageCache(this=0x000000011e1bd300) + 33 at imgLoader.cpp:993
    frame #35: 0x000000010278612d XUL`~imgLoader(this=0x000000011e1bd300) + 109 at imgLoader.cpp:779
    frame #36: 0x00000001027860b5 XUL`~imgLoader(this=0x000000011e1bd300) + 21 at imgLoader.cpp:777
    frame #37: 0x0000000102786089 XUL`~imgLoader(this=0x000000011e1bd300) + 25 at imgLoader.cpp:777
    frame #38: 0x0000000102785aa9 XUL`imgLoader::Release(this=0x000000011e1bd300) + 505 at imgLoader.cpp:732
    frame #39: 0x00000001027872ee XUL`imgLoader::Shutdown() + 46 at imgLoader.cpp:981
    frame #40: 0x000000010278296b XUL`mozilla::image::ShutdownModule() + 27 at nsImageModule.cpp:103
    frame #41: 0x000000010326c7cd XUL`LayoutModuleDtor() + 29 at nsLayoutModule.cpp:1258
    frame #42: 0x000000010169095d XUL`~KnownModule(this=0x000000010f81b600) + 61 at nsComponentManager.h:226
    frame #43: 0x0000000101690915 XUL`~KnownModule(this=0x000000010f81b600) + 21 at nsComponentManager.h:224
    frame #44: 0x00000001016908dd XUL`~nsAutoPtr(this=0x00000001003742c0) + 45 at nsAutoPtr.h:72
    frame #45: 0x00000001016908a5 XUL`~nsAutoPtr(this=0x00000001003742c0) + 21 at nsAutoPtr.h:71
    frame #46: 0x0000000101690885 XUL`nsTArrayElementTraits<nsAutoPtr<nsComponentManagerImpl::KnownModule> >::Destruct(e=0x00000001003742c0) + 21 at nsTArray.h:536
    frame #47: 0x0000000101690826 XUL`nsTArray_Impl<nsAutoPtr<nsComponentManagerImpl::KnownModule>, nsTArrayInfallibleAllocator>::DestructRange(this=0x0000000100399460, start=0, count=55) + 86 at nsTArray.h:1585
    frame #48: 0x00000001016907a4 XUL`nsTArray_Impl<nsAutoPtr<nsComponentManagerImpl::KnownModule>, nsTArrayInfallibleAllocator>::RemoveElementsAt(this=0x0000000100399460, start=0, count=55) + 388 at nsTArray.h:1302
    frame #49: 0x000000010168d77f XUL`nsTArray_Impl<nsAutoPtr<nsComponentManagerImpl::KnownModule>, nsTArrayInfallibleAllocator>::Clear(this=0x0000000100399460) + 47 at nsTArray.h:1313
    frame #50: 0x0000000101688eac XUL`nsComponentManagerImpl::Shutdown(this=0x0000000100399330) + 220 at nsComponentManager.cpp:788
    frame #51: 0x00000001015a82c3 XUL`mozilla::ShutdownXPCOM(servMgr=0x0000000000000000) + 1635 at nsXPComInit.cpp:990
    frame #52: 0x00000001015a7c55 XUL`NS_ShutdownXPCOM(servMgr=0x0000000100399338) + 21 at nsXPComInit.cpp:819
Thanks.  That's a dupe of another bug. :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
FWIW, I think this will be fixed by bug 913138.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.