Closed
Bug 765306
Opened 13 years ago
Closed 13 years ago
writing shutdown timestamp causes XPCOM warnings in debug builds
Categories
(Toolkit :: Startup and Profile System, defect)
Toolkit
Startup and Profile System
Tracking
()
RESOLVED
FIXED
People
(Reporter: froydnj, Assigned: espindola)
References
Details
From bug 753461, comment 26:
The static destructor is causing warnings from XPCOM memory management, at least on Thunderbird:
WARNING: XPCOM objects created/destroyed from static ctor/dtor: file .../comm-central/mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 140
The warning gets printed five or six times, it looks to me like it is once for each nsCString operation.
Here's an example backtrace:
#0 0x00000001039591b5 in AssertActivityIsLegal() at /Users/ireid/tbird/comm-central/mozilla/xpcom/base/nsTraceRefcntImpl.cpp:140
#1 0x0000000103958ebb in NS_LogAddRef_P at /Users/ireid/tbird/comm-central/mozilla/xpcom/base/nsTraceRefcntImpl.cpp:958
#2 0x000000010397cf75 in nsStringBuffer::Alloc(unsigned long) ()
#3 0x000000010397fc17 in nsACString_internal::MutatePrep(unsigned int, char**, unsigned int*) ()
#4 0x000000010397fdda in nsACString_internal::ReplacePrepInternal(unsigned int, unsigned int, unsigned int, unsigned int) ()
#5 0x000000010398256b in nsACString_internal::ReplacePrep(unsigned int, unsigned int, unsigned int) ()
#6 0x00000001039809b3 in nsACString_internal::Replace(unsigned int, unsigned int, char const*, unsigned int) ()
#7 0x0000000101250013 in nsACString_internal::Append(char const*, unsigned int) ()
#8 0x0000000101293b64 in nsACString_internal::operator+=(char const*) ()
#9 0x0000000102b69dba in RecordShutdownEndTimeStamp() at /Users/ireid/tbird/comm-central/mozilla/toolkit/components/startup/nsAppStartup.cpp:298
#10 0x0000000102b6a831 in RecordShutdownEndTimeStampHelper::~RecordShutdownEndTimeStampHelper() at /Users/ireid/tbird/comm-central/mozilla/toolkit/components/startup/nsAppStartup.cpp:323
#11 0x0000000102b6a055 in RecordShutdownEndTimeStampHelper::~RecordShutdownEndTimeStampHelper() at /Users/ireid/tbird/comm-central/mozilla/toolkit/components/startup/nsAppStartup.cpp:322
| Assignee | ||
Comment 1•13 years ago
|
||
I think the patch to fix bug 763361 will also fix this one.
Assignee: nobody → respindola
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•13 years ago
|
||
Is this fixed in 393a38baf9fc?
| Reporter | ||
Comment 3•13 years ago
|
||
I haven't seen these warnings in a while. Closing.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 4•13 years ago
|
||
(In reply to Rafael Ávila de Espíndola (:espindola) from comment #2)
> Is this fixed in 393a38baf9fc?
Yes, that made the warnings (and crashes) go away.
You need to log in
before you can comment on or make changes to this bug.
Description
•