Closed Bug 16649 Opened 27 years ago Closed 27 years ago

[DOGFOOD] Linux printing crashes on www.mozilla.org

Categories

(Core :: Layout: Tables, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: slogan, Assigned: troy)

References

Details

(Whiteboard: [PDT+])

Start apprunner. After mozilla.org loads, File->Print. Hit OK. You will crash (or assert sometimes) with the following stack. If you get an assert, it will be on line 445 of nsContainerFrame.cpp, and apprunner will exit to shell. I have been unable to crash when printing text files, e.g., open up the MPL license in apprunner and print it. #0 0x40369620 in ?? () from /lib/libc.so.6 #1 0x40dc8662 in nsContainerFrame::ReflowChild (this=0x87cdbb0, aKidFrame=0x8badbd8, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd420, aReflowState=@0xbfffd380, aStatus=@0xbfffd5d0) at nsContainerFrame.cpp:405 #2 0x40f59028 in nsTableCellFrame::Reflow (this=0x87cdbb0, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd680, aReflowState=@0xbfffd5d4, aStatus=@0xbfffd5d0) at nsTableCellFrame.cpp:644 #3 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x8957d90, aKidFrame=0x87cdbb0, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd680, aReflowState=@0xbfffd5d4, aStatus=@0xbfffd5d0) at nsContainerFrame.cpp:372 #4 0x40f6cd85 in nsTableRowFrame::ResizeReflow (this=0x8957d90, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd960, aReflowState=@0xbfffd804, aStatus=@0xbfffe588, aDirtyOnly=0) at nsTableRowFrame.cpp:899 #5 0x40f6e27e in nsTableRowFrame::Reflow (this=0x8957d90, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd960, aReflowState=@0xbfffd8bc, aStatus=@0xbfffe588) at nsTableRowFrame.cpp:1487 #6 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x8d31dc0, aKidFrame=0x8957d90, aPresContext=@0x89566c0, aDesiredSize=@0xbfffd960, aReflowState=@0xbfffd8bc, aStatus=@0xbfffe588) at nsContainerFrame.cpp:372 #7 0x40f6f600 in nsTableRowGroupFrame::ReflowMappedChildren (this=0x8d31dc0, aPresContext=@0x89566c0, aDesiredSize=@0xbfffdbf4, aReflowState=@0xbfffda40, aStatus=@0xbfffe588, aStartFrame=0x0, aReason=eReflowReason_Resize, aDoSiblings=1, aDirtyOnly=0) at nsTableRowGroupFrame.cpp:449 #8 0x40f70ada in nsTableRowGroupFrame::Reflow (this=0x8d31dc0, aPresContext=@0x89566c0, aDesiredSize=@0xbfffdbf4, aReflowState=@0xbfffdb2c, aStatus=@0xbfffe588) at nsTableRowGroupFrame.cpp:1031 #9 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x8d1c4c8, aKidFrame=0x8d31dc0, aPresContext=@0x89566c0, aDesiredSize=@0xbfffdbf4, aReflowState=@0xbfffdb2c, aStatus=@0xbfffe588) at nsContainerFrame.cpp:372 #10 0x40f64372 in nsTableFrame::ReflowMappedChildren (this=0x8d1c4c8, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe024, aReflowState=@0xbfffdc80, aStatus=@0xbfffe588) at nsTableFrame.cpp:3614 #11 0x40f6201c in nsTableFrame::ResizeReflowPass2 (this=0x8d1c4c8, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe024, aReflowState=@0xbfffdd6c, aStatus=@0xbfffe588) at nsTableFrame.cpp:2603 #12 0x40f616ae in nsTableFrame::Reflow (this=0x8d1c4c8, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe024, aReflowState=@0xbfffdf80, aStatus=@0xbfffe588) at nsTableFrame.cpp:2318 #13 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x8d1c468, aKidFrame=0x8d1c4c8, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe024, aReflowState=@0xbfffdf80, aStatus=@0xbfffe588) at nsContainerFrame.cpp:372 #14 0x40f69af8 in nsTableOuterFrame::IR_InnerTableReflow (this=0x8d1c468, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe5dc, aReflowState=@0xbfffe314, aStatus=@0xbfffe588) at nsTableOuterFrame.cpp:573 #15 0x40f6936c in nsTableOuterFrame::IR_TargetIsInnerTableFrame ( ---Type <return> to continue, or q <return> to quit---q this=0x8d1c468,Quit ) at nsTableOuterFrame.cpp:368 #16 0x40f69254 in nsTableOuterFrame::IR_TargetIsChild (this=0x8d1c468, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe5dc, aReflowState=@0xbfffe314, aStatus=@0xbfffe588, aNextFrame=0x8d1c4c8) at nsTableOuterFrame.cpp:341 #17 0x40f691ec in nsTableOuterFrame::IncrementalReflow (this=0x8d1c468, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe5dc, aReflowState=@0xbfffe314, aStatus=@0xbfffe588) at nsTableOuterFrame.cpp:324 #18 0x40f6a55c in nsTableOuterFrame::Reflow (this=0x8d1c468, aPresContext=@0x89566c0, aDesiredSize=@0xbfffe5dc, aReflowState=@0xbfffe390, aStatus=@0xbfffe588) at nsTableOuterFrame.cpp:853 q#19 0x40dc4cb8 in nsBlockReflowContext::ReflowBlock (this=0xbfffe59c, aFrame=0x8d1c468, aSpace=@0xbfffe4dc, aApplyTopMargin=0, aPrevBottomMargin=0, aIsAdjacentWithTop=1, aComputedOffsets=@0xbfffe4ec, aFrameReflowStatus=@0xbfffe588) at nsBlockReflowContext.cpp:229 #20 0x40dbecb1 in nsBlockFrame::ReflowBlockFrame (this=0x8d1c5c0, aState=@0xbfffe77c, aLine=0x8d1c598, aKeepReflowGoing=0xbfffe714) at nsBlockFrame.cpp:3136 #21 0x40dbd8ae in nsBlockFrame::ReflowLine (this=0x8d1c5c0, aState=@0xbfffe77c, aLine=0x8d1c598, aKeepReflowGoing=0xbfffe714, aDamageDirtyArea=1) at nsBlockFrame.cpp:2509 #22 0x40dbd1ae in nsBlockFrame::ReflowDirtyLines (this=0x8d1c5c0, aState=@0xbfffe77c) at nsBlockFrame.cpp:2320 #23 0x40dbb90d in nsBlockFrame::Reflow (this=0x8d1c5c0, aPresContext=@0x89566c0, aMetrics=@0xbfffebe0, aReflowState=@0xbfffe994, aStatus=@0xbfffeb8c) at nsBlockFrame.cpp:1415 #24 0x40dc4cb8 in nsBlockReflowContext::ReflowBlock (this=0xbfffeba0, aFrame=0x8d1c5c0, aSpace=@0xbfffeae0, aApplyTopMargin=0, aPrevBottomMargin=0, aIsAdjacentWithTop=1, aComputedOffsets=@0xbfffeaf0, aFrameReflowStatus=@0xbfffeb8c) at nsBlockReflowContext.cpp:229 #25 0x40dbecb1 in nsBlockFrame::ReflowBlockFrame (this=0x8d1c6b0, aState=@0xbfffed80, aLine=0x8d1c620, aKeepReflowGoing=0xbfffed18) at nsBlockFrame.cpp:3136 #26 0x40dbd8ae in nsBlockFrame::ReflowLine (this=0x8d1c6b0, aState=@0xbfffed80, aLine=0x8d1c620, aKeepReflowGoing=0xbfffed18, aDamageDirtyArea=1) at nsBlockFrame.cpp:2509 #27 0x40dbd1ae in nsBlockFrame::ReflowDirtyLines (this=0x8d1c6b0, aState=@0xbfffed80) at nsBlockFrame.cpp:2320 #28 0x40dbb90d in nsBlockFrame::Reflow (this=0x8d1c6b0, aPresContext=@0x89566c0, aMetrics=@0xbffff248, aReflowState=@0xbffff038, aStatus=@0xbffff244) at nsBlockFrame.cpp:1415 #29 0x40db8a4c in nsAreaFrame::Reflow (this=0x8d1c6b0, aPresContext=@0x89566c0, aDesiredSize=@0xbffff248, aReflowState=@0xbffff038, aStatus=@0xbffff244) at nsAreaFrame.cpp:285 #30 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x8b9de80, aKidFrame=0x8d1c6b0, aPresContext=@0x89566c0, aDesiredSize=@0xbffff248, aReflowState=@0xbffff038, aStatus=@0xbffff244) at nsContainerFrame.cpp:372 #31 0x40df5f3f in nsPageFrame::Reflow (this=0x8b9de80, ---Type <return> to continue, or q <return> to quit---q aPresContext=@0x89566c0, Quit ) at nsPageFrame.cpp:79 #32 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x89bea98, aKidFrame=0x8b9de80, aPresContext=@0x89566c0, aDesiredSize=@0xbffff248, aReflowState=@0xbffff270, aStatus=@0xbffff244) at nsContainerFrame.cpp:372 #33 0x40dfe4a6 in nsSimplePageSequenceFrame::IncrementalReflow ( this=0x89bea98, aPresContext=@0x89566c0, aReflowState=@0xbffff4cc, aPageSize=@0xbffff44c, aX=360, aY=@0xbffff440) at nsSimplePageSequence.cpp:125 #34 0x40dfe88c in nsSimplePageSequenceFrame::Reflow (this=0x89bea98, aPresContext=@0x89566c0, aDesiredSize=@0xbffff574, aReflowState=@0xbffff4cc, aStatus=@0xbffff604) at nsSimplePageSequence.cpp:226 #35 0x40dc85b0 in nsContainerFrame::ReflowChild (this=0x895a938, aKidFrame=0x89bea98, aPresContext=@0x89566c0, aDesiredSize=@0xbffff574, aReflowState=@0xbffff4cc, aStatus=@0xbffff604) at nsContainerFrame.cpp:372 #36 0x40e0c949 in ViewportFrame::Reflow (this=0x895a938, aPresContext=@0x89566c0, aDesiredSize=@0xbffff724, aReflowState=@0xbffff608, aStatus=@0xbffff604) at nsViewportFrame.cpp:514 #37 0x40dddf53 in nsHTMLReflowCommand::Dispatch (this=0x8a853b8, aPresContext=@0x89566c0, aDesiredSize=@0xbffff724, aMaxSize=@0xbffff70c, aRendContext=@0x8b8e840) at nsHTMLReflowCommand.cpp:137 #38 0x40df9cf6 in PresShell::ProcessReflowCommands (this=0x87ef9d0) at nsPresShell.cpp:1373 #39 0x40dd2a7c in FrameManager::HandlePLEvent (aEvent=0x8a9fbe0) at nsFrameManager.cpp:698 #40 0x401982bb in ?? () from /opt/raptor/mozilla/dist/bin/libplds3.so #41 0x401981cc in ?? () from /opt/raptor/mozilla/dist/bin/libplds3.so #42 0x4015891d in ?? () from /opt/raptor/mozilla/dist/bin/libxpcom.so #43 0x40528796 in ?? () from /opt/raptor/mozilla/dist/bin/libwidget_gtk.so #44 0x4068f789 in ?? () from /usr/lib/libgdk-1.2.so.0 #45 0x406b8d6a in ?? () from /usr/lib/libglib-1.2.so.0 #46 0x406ba2c6 in ?? () from /usr/lib/libglib-1.2.so.0 #47 0x406ba801 in ?? () from /usr/lib/libglib-1.2.so.0 #48 0x406ba979 in ?? () from /usr/lib/libglib-1.2.so.0 #49 0x405ecf3a in ?? () from /usr/lib/libgtk-1.2.so.0 #50 0x40528f69 in ?? () from /opt/raptor/mozilla/dist/bin/libwidget_gtk.so #51 0x4039c381 in ?? () from /opt/raptor/mozilla/dist/bin/libnsappshell.so #52 0x804b697 in main1 (argc=1, argv=0xbffffad4) at nsAppRunner.cpp:593 #53 0x804b919 in main (argc=1, argv=0xbffffad4) at nsAppRunner.cpp:703 #54 0x40298cb3 in ?? () from /lib/libc.so.6
Status: NEW → ASSIGNED
It's not failing for me (on NT), but that doens't mean very much. Looking at the stack trace it looks like we were processing an incremental reflow command. That suggests a page mode regression in the table incremental reflow code
Component: Layout → HTMLTables
Depends on: 9235
Chris, it seems we have a regression in the table code that is now horking pagination Don, marking this as depending on #9235, because it would be much easier to test pagination if print preview works. Then we can resize the print preview window and catch these sort of things, and have images without width/height tags, ...
Whiteboard: [PDT+]
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
Restored some table row group frame that was broken by revision 3.153
Status: RESOLVED → VERIFIED
Fixed in the Nov 12th build (1999111208).
You need to log in before you can comment on or make changes to this bug.