Version: (using KDE KDE 3.5.8) Installed from: Compiled From Sources Compiler: gcc 4.1.1 OS: Irix Printing a booking confirmation from airline causes a kmail crash. Extract from stack trace: #9 khtml::RenderBlock::clearChildOfPageBreaks (this=0x884c978, child=0x884caac, pageBreakInfo=@0xbfc3c140, marginInfo=@0xbfc3c134) at render_block.cpp:1516 #10 0xb72e8743 in khtml::RenderBlock::layoutBlockChildren (this=0x884c978, relayoutChildren=true) at render_block.cpp:1453 #11 0xb72e8e6d in khtml::RenderBlock::layoutBlock (this=0x884c978, relayoutChildren=true) at render_block.cpp:710 #12 0xb733ea33 in khtml::RenderCanvas::layout (this=0x884c978) at render_canvas.cpp:183 #13 0xb720bd7c in KHTMLView::print (this=0x891c770, quick=false) at render_object.h:439 #14 0xb720da73 in KHTMLView::print (this=0x891c770) at khtmlview.cpp:2738 #15 0xb7c20952 in KMReaderWin::printMsg () from /usr/local/kde3/lib/libkmailprivate.so #16 0xb7d55ed5 in KMPrintCommand::execute () from /usr/local/kde3/lib/libkmailprivate.so #17 0xb7d56779 in KMCommand::slotPostTransfer () from /usr/local/kde3/lib/libkmailprivate.so #18 0xb7d5ee46 in KMCommand::qt_invoke () from /usr/local/kde3/lib/libkmailprivate.so #19 0xb7d5f41b in KMPrintCommand::qt_invoke () from /usr/local/kde3/lib/libkmailprivate.so #20 0xb6028769 in QObject::activate_signal () from /usr/local/qt-3.3.8/lib/libqt-mt.so.3
dupe of this? http://bugs.kde.org/show_bug.cgi?id=143281
Could well be. Except from me running this with a nonstripped binary and gettin linenumbers. Did some more investigation and the problem seems to be the RenderBlock::parent() returning something strange.
Yep, parent() returns 0 in my case, maening that the line: if(parent()->canClear(this, (m_avoidPageBreak) ? PageBreakHarder : PageBreakNormal )) { breaks. I patched by testing for a zero condition, but as I don't understand exactly what is going on here it would be nice if the original creator took a look at it. There is also one more place with the same test. Does it need the same patch?
Created attachment 22824 [details] Patch for null pointer/object
will return to this bug; need access to a printer.
As stated in bug 143281: "Closing this bug as WORKSFORME as we won't fix KDE 3.5 anymore." I'm marking this as a duplicate of that bug. *** This bug has been marked as a duplicate of bug 143281 ***