Closed Bug 592930 Opened 11 years ago Closed 11 years ago

TM: set right compartment for mozJSComponentLoader::ModuleEntry::Clear

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gwagner, Assigned: gwagner)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

#0  0x00000001018ea6c8 in JS_Assert (s=0x101d1b590 "cx->compartment != cx->runtime->defaultCompartment", file=0x101d1af28 "/Users/idefix2/moz/ws1/js/src/jsapi.cpp", ln=1960) at /Users/idefix2/moz/ws1/js/src/jsutil.cpp:80
#1  0x0000000101786087 in JS_RemoveObjectRoot (cx=0x105634490, rp=0x11710b090) at /Users/idefix2/moz/ws1/js/src/jsapi.cpp:1960
#2  0x0000000100f4e275 in mozJSComponentLoader::ModuleEntry::Clear (this=0x11710b050) at mozJSComponentLoader.h:178
#3  0x0000000100f4e2c7 in mozJSComponentLoader::ModuleEntry::~ModuleEntry (this=0x11710b050) at mozJSComponentLoader.h:169
#4  0x0000000100f4ea9d in nsAutoPtr<mozJSComponentLoader::ModuleEntry>::~nsAutoPtr (this=0x1058dd418) at nsAutoPtr.h:104
#5  0x0000000100f4eac9 in nsBaseHashtableET<nsStringHashKey, nsAutoPtr<mozJSComponentLoader::ModuleEntry> >::~nsBaseHashtableET (this=0x1058dd400) at nsBaseHashtable.h:330
#6  0x0000000100f4eaed in nsTHashtable<nsBaseHashtableET<nsStringHashKey, nsAutoPtr<mozJSComponentLoader::ModuleEntry> > >::s_ClearEntry (table=0x105634008, entry=0x1058dd400) at nsTHashtable.h:397
#7  0x0000000101529af3 in PL_DHashTableRawRemove (table=0x105634008, entry=0x1058dd400) at pldhash.c:723
#8  0x0000000101529c4f in PL_DHashTableEnumerate (table=0x105634008, etor=0x101530f70 <PL_DHashStubEnumRemove(PLDHashTable*, PLDHashEntryHdr*, unsigned int, void*)>, arg=0x0) at pldhash.c:757
#9  0x0000000100f4e5b5 in nsTHashtable<nsBaseHashtableET<nsStringHashKey, nsAutoPtr<mozJSComponentLoader::ModuleEntry> > >::Clear (this=0x105634008) at nsTHashtable.h:251
#10 0x0000000100f4e5cd in nsBaseHashtable<nsStringHashKey, nsAutoPtr<mozJSComponentLoader::ModuleEntry>, mozJSComponentLoader::ModuleEntry*>::Clear (this=0x105634008) at nsBaseHashtable.h:245
#11 0x0000000100f47036 in mozJSComponentLoader::UnloadModules (this=0x105633f80) at /Users/idefix2/moz/ws1/js/src/xpconnect/loader/mozJSComponentLoader.cpp:1265
#12 0x0000000100f470cd in mozJSComponentLoader::Observe (this=0x105633f80, subject=0x0, topic=0x101c9211e "xpcom-shutdown-loaders", data=0x0) at /Users/idefix2/moz/ws1/js/src/xpconnect/loader/mozJSComponentLoader.cpp:1560
#13 0x000000010153debf in mozilla::ShutdownXPCOM (servMgr=0x0) at /Users/idefix2/moz/ws1/xpcom/build/nsXPComInit.cpp:702
#14 0x000000010153e1a1 in NS_ShutdownXPCOM_P (servMgr=0x117001cf8) at /Users/idefix2/moz/ws1/xpcom/build/nsXPComInit.cpp:587
#15 0x0000000100029d31 in ScopedXPCOMStartup::~ScopedXPCOMStartup (this=0x7fff5fbff4b0) at /Users/idefix2/moz/ws1/toolkit/xre/nsAppRunner.cpp:1115
#16 0x0000000100032af7 in XRE_main (argc=1, argv=0x7fff5fbff8b8, aAppData=0x105615ec0) at /Users/idefix2/moz/ws1/toolkit/xre/nsAppRunner.cpp:3692
#17 0x0000000100001297 in main (argc=1, argv=0x7fff5fbff8b8) at /Users/idefix2/moz/ws1/browser/app/nsBrowserApp.cpp:158
Attached patch patch (obsolete) — Splinter Review
Assignee: general → anygregor
Status: NEW → ASSIGNED
Attachment #471405 - Flags: review?(gal)
Attached patch patchSplinter Review
Attachment #471405 - Attachment is obsolete: true
Attachment #471406 - Flags: review?(gal)
Attachment #471405 - Flags: review?(gal)
Attachment #471406 - Flags: review?(gal) → review?(mrbkap)
Attachment #471406 - Flags: review?(mrbkap) → review+
http://hg.mozilla.org/tracemonkey/rev/70bc9f81ccf5
Whiteboard: fixed-in-tracemonkey
Blocks: 594455
http://hg.mozilla.org/mozilla-central/rev/70bc9f81ccf5
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.