Closed Bug 40074 Opened 26 years ago Closed 24 years ago

Global destructors shouldn't fire after xpcom is unloaded

Categories

(Core :: XPCOM, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED INVALID
mozilla1.1alpha

People

(Reporter: samir_bugzilla, Assigned: dougt)

References

Details

(Keywords: topembed+)

This bug is best explained by example: The linux installer loads xpistub which in turn is linked into xpcom and requisite libs. After working with xpistub (libxpistub.so on Unix), the installer unloads it which in turn causes xpcom and the linked libs to unload too. When the standalone installer app quits, the global destructors fire but the xpcom dll is no longer around so we core dump. The bug to fix here is to make sure we don't have global classes upon which destructors fire on exit. Per dp: XPCOM wasn't intended to be used by loading and unloading it manually. Hence we were lax about creating classes globally. This would be something we should fix for XPCOM 1.0.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Blocks: 38671
Target Milestone: M18 → M20
Edward: Welcome to xpcom!
Status: ASSIGNED → NEW
QA Contact: leger → rayw
Target Milestone: M20 → mozilla1.0
Once again... attempting to reassign from Ray to Edward.
Assignee: rayw → kandrot
Status: NEW → ASSIGNED
QA Contact: rayw → scc
Target Milestone: mozilla1.0 → Future
reassign all kandrot xpcom bug.
Assignee: kandrot → dougt
Status: ASSIGNED → NEW
Target Milestone: Future → ---
Blocks: 98283
Target Milestone: --- → mozilla1.1
shouldn't fire global destructors? there is nothing we can do. when C++ objects go out of scope, they fire. The real problem is that we have static global data. Marking invalid.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Keywords: topembed+
You need to log in before you can comment on or make changes to this bug.