Closed Bug 21123 Opened 25 years ago Closed 25 years ago

[DOGFOOD] nsString crash when trying to view source

Categories

(Core :: XPCOM, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 20691

People

(Reporter: mscott, Assigned: rickg)

Details

This symptom was initially used to re-open Bug #20700. I decided to open another
bug to track this.

Rick, on linux, if I bring up mozilla.org and then try to view source I crash in
nsStr::Truncate.

The code that causes the nsString to be called is in nsWebshell and it looks
like the following:

mURL = urlSpec;

mURL is an nsCString. urlSpec is an nsXPIDLCString.

urlSpec = "chrome://related/content/related-panel.xul"
the stack trace looks like:
nsString::Assign ("chrome://...", -1)
nsStr::Truncate ( , offfset = 0)
AddNullTerminator
and we crash on the call to AddNullTerminator

Marking this as dogfood since the bug it came from was a PDT / dogfood bug.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Sorry Rick, I see you already have a bug with this same stack trace and it now
belongs to rick potts. I'll mark this as a duplicate.

*** This bug has been marked as a duplicate of 20691 ***
Status: RESOLVED → VERIFIED
Verified as dupe of 20691
 View source just opens toolbar-less window with the HTML rendering
You need to log in before you can comment on or make changes to this bug.