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)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: jrgmorrison, Assigned: waterson)

Details

(Keywords: crash)

Attachments

(1 file)

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).
That's a bona fide bug; I think I wrote the logging code before we started 
"bending the rules" in localstore.rdf.
Status: NEW → ASSIGNED
Keywords: crash
Target Milestone: --- → mozilla0.9
Heh, well whadyaknow. dougt fixed this with his necko landing! *kiss*
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: