Bug 155017 - kmail printing crash in clearChildOfPageBreaks
Summary: kmail printing crash in clearChildOfPageBreaks
Status: RESOLVED DUPLICATE of bug 143281
Alias: None
Product: konqueror
Classification: Applications
Component: khtml printing (show other bugs)
Version: unspecified
Platform: Compiled Sources IRIX
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 12:53 UTC by dag
Modified: 2008-12-05 15:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for null pointer/object (1.03 KB, patch)
2008-01-03 16:59 UTC, dag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dag 2008-01-03 12:53:33 UTC
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
Comment 1 Tommi Tervo 2008-01-03 13:23:51 UTC
dupe of this?
http://bugs.kde.org/show_bug.cgi?id=143281
Comment 2 dag 2008-01-03 16:30:49 UTC
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.
Comment 3 dag 2008-01-03 16:56:11 UTC
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?
Comment 4 dag 2008-01-03 16:59:18 UTC
Created attachment 22824 [details]
Patch for null pointer/object
Comment 5 klaatu 2008-04-25 10:34:37 UTC
will return to this bug; need access to a printer.
Comment 6 Dario Andres 2008-12-05 15:31:25 UTC
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 ***