Closed Bug 49833 Opened 26 years ago Closed 26 years ago

[WORKS FOR ME]crash loading sample 5

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: rods)

References

()

Details

Attachments

(1 file)

mTextFrame is null, crashes on dereference of null pointer serious crash since it's on one of our own samples, part of my regression test suite. stack: nsFileControlFrame::Reflow() line 331 + 16 bytes nsLineLayout::ReflowFrame() line 941 nsInlineFrame::ReflowInlineFrame() line 563 + 26 bytes nsInlineFrame::ReflowFrames() line 412 + 28 bytes nsInlineFrame::Reflow() line 323 + 28 bytes nsLineLayout::ReflowFrame() line 941 nsBlockFrame::ReflowInlineFrame() line 4349 + 29 bytes nsBlockFrame::DoReflowInlineFrames() line 4233 + 28 bytes nsBlockFrame::DoReflowInlineFramesAuto() line 4169 + 42 bytes nsBlockFrame::ReflowInlineFrames() line 4114 + 32 bytes nsBlockFrame::ReflowLine() line 3247 + 29 bytes nsBlockFrame::ReflowDirtyLines() line 2936 + 27 bytes nsBlockFrame::Reflow() line 1729 + 15 bytes nsBlockReflowContext::DoReflowBlock() line 561 + 36 bytes nsBlockReflowContext::ReflowBlock() line 331 + 50 bytes nsBlockFrame::ReflowBlockFrame() line 3867 + 56 bytes nsBlockFrame::ReflowLine() line 3129 + 23 bytes nsBlockFrame::ReflowDirtyLines() line 2936 + 27 bytes nsBlockFrame::Reflow() line 1729 + 15 bytes nsBlockReflowContext::DoReflowBlock() line 561 + 36 bytes nsBlockReflowContext::ReflowBlock() line 331 + 50 bytes nsBlockFrame::ReflowBlockFrame() line 3867 + 56 bytes nsBlockFrame::ReflowLine() line 3129 + 23 bytes nsBlockFrame::ReflowDirtyLines() line 2936 + 27 bytes nsBlockFrame::Reflow() line 1729 + 15 bytes nsBlockReflowContext::DoReflowBlock() line 561 + 36 bytes nsBlockReflowContext::ReflowBlock() line 331 + 50 bytes nsBlockFrame::ReflowBlockFrame() line 3867 + 56 bytes nsBlockFrame::ReflowLine() line 3129 + 23 bytes nsBlockFrame::ReflowDirtyLines() line 2936 + 27 bytes nsBlockFrame::Reflow() line 1729 + 15 bytes nsContainerFrame::ReflowChild() line 693 + 31 bytes CanvasFrame::Reflow() line 306 nsBoxToBlockAdaptor::Reflow() line 813 nsBoxToBlockAdaptor::DoLayout() line 484 + 52 bytes nsBox::Layout() line 1002 nsScrollBoxFrame::DoLayout() line 377 nsBox::Layout() line 1002 nsContainerBox::LayoutChildAt() line 593 + 16 bytes nsGfxScrollFrameInner::LayoutBox() line 1063 + 17 bytes nsGfxScrollFrameInner::Layout() line 1180 nsGfxScrollFrame::DoLayout() line 1071 + 15 bytes nsBox::Layout() line 1002 nsBoxFrame::Reflow() line 728 nsGfxScrollFrame::Reflow() line 775 + 25 bytes nsContainerFrame::ReflowChild() line 693 + 31 bytes ViewportFrame::Reflow() line 546 nsHTMLReflowCommand::Dispatch() line 145 PresShell::ProcessReflowCommands() line 4239 PresShell::FlushPendingNotifications() line 3330 PresShell::DidCauseReflow() line 4189 PresShell::ContentAppended() line 3433 nsDocument::ContentAppended() line 1873 nsHTMLDocument::ContentAppended() line 1196 HTMLContentSink::NotifyAppend() line 4352 SinkContext::FlushTags() line 1990 HTMLContentSink::BeginContext() line 2539 CNavDTD::HandleSavedTokens() line 1860 CNavDTD::HandleOmittedTag() line 1345 + 24 bytes CNavDTD::HandleDefaultStartToken() line 1050 + 24 bytes CNavDTD::HandleStartToken() line 1562 + 22 bytes CNavDTD::HandleToken() line 770 + 12 bytes CNavDTD::BuildModel() line 499 + 20 bytes nsParser::BuildModel() line 1983 + 34 bytes nsParser::ResumeParse() line 1864 + 11 bytes nsParser::OnDataAvailable() line 2314 + 19 bytes nsDocumentOpenInfo::OnDataAvailable() line 251 + 46 bytes nsResChannel::OnDataAvailable() line 735 nsFileChannel::OnDataAvailable() line 658 + 49 bytes nsOnDataAvailableEvent::HandleEvent() line 400 + 47 bytes nsStreamListenerEvent::HandlePLEvent() line 97 + 12 bytes PL_HandleEvent() line 587 + 10 bytes PL_ProcessPendingEvents() line 528 + 9 bytes _md_EventReceiverProc() line 1043 + 9 bytes USER32! 77e71820()
nominating for nsbeta3. Important stability bug, also interferes with my regression tests.
Keywords: nsbeta3
Priority: P3 → P1
test 5 is a smaller test case than test 9, changing summary. Trying to minimize....
URL: viewer sample 9 → viewer sample 5
Summary: crash loading sample 9 → crash loading sample 5
Summary: crash loading sample 5 → [WORKS FOR ME]crash loading sample 5
I think this is fixed.
Status: NEW → ASSIGNED
My check in on 8/18 should have fixed this and the line # (331) is wrong per the current source.
Hi Rod: Kevin is seeing this also on a build that is a few days old. My build is also a few days old. Could this have been fixed very recently? Or could you have relevant code that isn't checked in? I'll see if anyone in QA can reproduce with today's daily build.
Attached file tiny test case —
yes, whatever you already checked in was the same thing. can you just dup this to your other bug?
I will marked this fixed. I was in the code and about to do a checkin and I fixed this problem. It was a simple change to heck to see if the pointer was valid, I just didn't see any reason to open a new bug, nominate it, etc. marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Doesnt Crash, dont see any problems. Marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: