Closed
Bug 57497
Opened 24 years ago
Closed 24 years ago
crash in RDFContentSinkImpl::GetNameSpaceURI -- [*debug-only/logging-only*]
Categories
(Core Graveyard :: RDF, defect, P3)
Core Graveyard
RDF
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9
People
(Reporter: jrgmorrison, Assigned: waterson)
Details
(Keywords: crash)
Attachments
(1 file)
25.18 KB,
text/plain
|
Details |
I turned on logging and hit a crash on start in RDF (set NSPR_LOG_MODULES=all:2). The crash happens in RDFContentSinkImpl::GetNameSpaceURI, in stuff that is running debug only. #ifdef PR_LOGGING if (PR_LOG_TEST(gLog, PR_LOG_ALWAYS)) { nsAutoString prefixStr; aPrefix->ToString(prefixStr); <-- boom! char* prefixCStr = prefixStr.ToNewCString(); PR_LOG(gLog, PR_LOG_ALWAYS, ("rdfxml: undeclared namespace prefix '%s'", prefixCStr)); nsCRT::free(prefixCStr); } #endif aPrefix is null because (as far as I could tell) the tagName was <open>, with no qualifying namespace. Perhaps this is obsolete logging code, or perhaps you just need to check the null pointer. I'll attach the localstore.rdf in case you really want to track this down (probably not, since this is just in error reporting).
Reporter | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
That's a bona fide bug; I think I wrote the logging code before we started "bending the rules" in localstore.rdf.
Assignee | ||
Comment 3•24 years ago
|
||
Heh, well whadyaknow. dougt fixed this with his necko landing! *kiss*
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•