Closed Bug 583056 Opened 14 years ago Closed 14 years ago

XPCOM-enabled child processes spew "WARNING: XPCOM objects created/destroyed from static ctor/dtor" on shutdown

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: cjones, Assigned: cjones)

Details

Attachments

(1 file)

It's something dumb, patch will be self-explanatory.
I have another patch to turn these warnings into RUNTIMEABORT() if an env var is set, so I've definitely confirmed the patch fixes the problem ;).
Attachment #461316 - Flags: review?(bent.mozilla)
Attachment #461316 - Flags: review?(bent.mozilla) → review+
This patch moves the MessageLoopUI in child process's into its own lexical scope, so that after we exit the loop (when we're ready to shutdown), the MessageLoopUI is destroyed before we call LogTerm().  Previously, LogTerm() happened before ~MessageLoop, and the XPCOM-y things destroyed in ~MessageLoop (in content processes) triggered spurious XPCOM-dtor-from-static-context warnings.  IMHO this patch has zero risk, it just fixes spurious warnings.
Attachment #461316 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/836c1ab26030
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
See Also: → 918234
See Also: 918234
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: