Closed Bug 306580 Opened 19 years ago Closed 19 years ago

Crash when refreshing view source [@ nsDocShell::GetRootSHEntry ]

Categories

(Core :: DOM: Navigation, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta4

People

(Reporter: joe, Assigned: bzbarsky)

References

Details

(Keywords: crash, verified1.8)

Crash Data

Attachments

(1 file)

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050831 Firefox/1.0+

View source on any page, then press Ctrl+R to refresh. Firefox crashes.

I've submitted a couple of talkback incidents on this, but they're not available
in the public queue yet.
See the same crash on WinXP: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8b4) Gecko/20050831 Firefox/1.0+.  Seemed to be fine in 20050829 build. 
Talkback ID from my crash is TB8899853Z.
Confirming Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4)
Gecko/20050831 Firefox/1.0+ ID:2005083104

Talkback ID: TB8900111Z
Flags: blocking1.8b4?
Keywords: crash
OS: Linux → All
Hardware: PC → All
Triage team: this looks like a pretty serious cash regression from something we
took in the last two days. 

Stack Trace:

0x00000000
GetRootSHEntry 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 7744]
nsDocShell::SetHistoryEntry 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 7765]
nsDocShell::InternalLoad 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 6436]
nsDocShell::LoadHistoryEntry 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 7518]
nsDocShell::Reload 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 3119]
XPTC_InvokeByIndex 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp,
line 102]
XPCWrappedNative::CallMethod 
[c:/builds/tinderbox/Fx-Mozilla1.8/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp,
line 2134]

Summary: Crash when refreshing view source → Crash when refreshing view source [crash @ nsDocShell::GetRootSHEntry ]
The only change I see to nsDocshell over the regression window was for Bug
305129 but that doesn't look related.
Bz - can you take a look?
Assignee: nobody → bzbarsky
Flags: blocking1.8b4? → blocking1.8b4+
This was exposed by the fix for bug 305959.  The real problem was presumably
checked in sometime between August 16 (which is when bug 289933 was fixed) and
when bug 305959 was fixed...
This crash was introduced by Bug 305959. Backing out that change to jsapi.c
makes the crash go away in Firefox.
Assignee: bzbarsky → mrbkap
Blocks: 305959
Scott, see comment 6.  Bug 305959 just reenabled a codepath that had started
crashing sometime before it was checked in; it did not cause the crash.
Assignee: mrbkap → nobody
No longer blocks: 305959
sorry I didn't see the bugzilla comment on your insight.

This change looked interesting: Bug 305167 which went into the branch and trunk
during the target window. I'll look through the rest of the list too.




This was caused by the fix for bug 300533; verified via local backout.
Blocks: 300533
Component: View Source → History: Session
Product: Firefox → Core
QA Contact: view.source → history.session
Version: 1.5 Branch → Trunk
Attached patch FixSplinter Review
The comment pretty much describes what's going on.

Asking for 1.8b4 approval too -- this is a very safe fix to just prevent an
object from dying while we're working with it.
Attachment #194507 - Flags: superreview?(bryner)
Attachment #194507 - Flags: approval1.8b4?
Attachment #194507 - Flags: superreview?(bryner) → superreview+
Attachment #194507 - Flags: review+
Comment on attachment 194507 [details] [diff] [review]
Fix

this looks like a very straight forward crash fix with little risk.

approving for the 1.8 branch
Attachment #194507 - Flags: approval1.8b4? → approval1.8b4+
Assignee: nobody → bzbarsky
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta4
Fixed trunk and branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Comment on attachment 194507 [details] [diff] [review]
Fix

Nit: blank line around that added paragraph?

/be
Summary: Crash when refreshing view source [crash @ nsDocShell::GetRootSHEntry ] → Crash when refreshing view source [@ nsDocShell::GetRootSHEntry ]
no crash firefox 1.5 rc2 winxp/linux
Keywords: fixed1.8verified1.8
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
Crash Signature: [@ nsDocShell::GetRootSHEntry ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: