Closed Bug 335024 Opened 19 years ago Closed 15 years ago

Firefox 1.5.0.2 shutdown topcrash [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::`scalar deleting destructor''(unsigned int)] [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::~XPCWrappedNativeProto()]

Categories

(Core :: XPConnect, defect)

1.8 Branch
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dbaron, Unassigned)

References

Details

(Keywords: crash, topcrash)

Crash Data

Attachments

(2 files)

One of the top crashes for Firefox 1.5.0.2 is a shutdown crash with the following stack: nsCOMPtr_base::~nsCOMPtr_base() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpcom/build/nsCOMPtr.cpp, line 81] XPCWrappedNativeProto::~XPCWrappedNativeProto() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativeproto.cpp, line 88] DyingProtoKiller() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp, line 212] JS_DHashTableEnumerate() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/jsdhash.c, line 621] XPCJSRuntime::GCCallback() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp, line 561] DOMGCCallback() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp, line 2192] js_GC() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/jsgc.c, line 1942] js_ForceGC() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/jsgc.c, line 1514] js_DestroyContext() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/jscntxt.c, line 284] JS_DestroyContext() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/jsapi.c, line 933] mozJSComponentLoader::UnloadAll() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/js/src/xpconnect/loader/mozJSComponentLoader.cpp, line 1008] nsComponentManagerImpl::UnloadLibraries() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpcom/components/nsComponentManager.cpp, line 3114] nsComponentManagerImpl::Shutdown() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpcom/components/nsComponentManager.cpp, line 900] NS_ShutdownXPCOM_P() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpcom/build/nsXPComInit.cpp, line 854] ScopedXPCOMStartup::~ScopedXPCOMStartup() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/toolkit/xre/nsAppRunner.cpp, line 553] XRE_main() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/toolkit/xre/nsAppRunner.cpp, line 848] main() [/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/browser/app/nsBrowserApp.cpp, line 62] I'm wondering if the problem here is that the release that we're crashing on (presumably XPCNativeScriptableInfo::mCallback) can trigger a recursive GC and should thus use the deferred releases mechanism.
Flags: blocking1.8.0.3?
I believe these crashes are showing up in significant numbers on Windows as well (the clear reports are on Linux): although the only the first, fifth, and sixth, and eighth frames of the stack are identifiable. (I've seen stacks reliably mangled in similar ways for other crashes on Windows.)
OS: Linux → All
Hardware: PC → All
don't know if it is of any use, but I like the links into LXR
Looks like this is missing 1.8.0.3, try 1.8.0.4
Flags: blocking1.8.0.4?
Flags: blocking1.8.0.3?
Flags: blocking1.8.0.3-
Minusing, no patch and a shutdown crash isn't critical enough to push hard for.
Flags: blocking1.8.0.5? → blocking1.8.0.5-
Talkback TB21571362 It's probably the same problem.
Actually, never mind the previous comment. The stacks are different; the ones not within XPCOM shutdown are destroying a wrapped native, not a wrapped native proto.
Flags: blocking1.8.1?
Flags: blocking1.8.1? → blocking1.8.1-
Assignee: dbradley → nobody
QA Contact: pschwartau → xpconnect
A windows user with incident - http://talkback-public.mozilla.org/search/start.jsp?search=2&type=iid&id=26109651 - reported that disabling an extension called "My Global Search" stopped the crashing on exit. Apparently it appeared automatically after installing BearShare, and uninstalling BearShare didn't remove the malware. References: http://security-central.us/SafeHex/prevention.htm http://research.sunbelt-software.com/threatdisplay.aspx?name=MyGlobalSearch.Toolbar&threatid=41891 http://www.file.net/process/mgsbar.dll.html http://www.spyware-browser.com/items/-/9184/
Version: Trunk → 1.8 Branch
Very few of these crashes nowadays. It sounds like dbaron never identified a likely cause (except maybe the last paragraph of comment 0?).
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Summary: Firefox 1.5.0.2 shutdown topcrash [@ nsCOMPtr_base::~nsCOMPtr_base()] called [@ XPCWrappedNativeProto::~XPCWrappedNativeProto()] → Firefox 1.5.0.2 shutdown topcrash [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::`scalar deleting destructor''(unsigned int)] [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::~XPCWrappedNativeProto()]
Crash Signature: [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::`scalar deleting destructor''(unsigned int)] [@ nsCOMPtr_base::~nsCOMPtr_base() | XPCWrappedNativeProto::~XPCWrappedNativeProto()]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: