KHTML/KMail crash displaying CSS InfoBackground

Will Stephenson will at stevello.free-online.co.uk
Fri May 7 14:26:22 BST 2004


Hi

I'm experiencing a crash in KHTML (cvs 11/04/2004) in KMail when rendering a 
header that contains the CSS colour 'InfoBackground'.   The crash is a bit 
hard to pin down - it happens on some headers but not others, and if I extract 
the header and CSS from KMail, it doesn't crash KHTML in Konq)  

The common factor is if I replace InfoBackground in the CSS with Yellow, 
there's no crash.

What else can I do to help debug this?  Please CC me as I'm not subscribed.

cheers

Will

header (with html <head> added to make it render, the working header is within 
the outermost <div> tags) and CSS attached.

last debug output:
kmail: Unknown codec "7BIT" requested!
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
kmail: KMReaderWin  -  finished parsing and displaying of message.
kmail: /home/will/projects/kde/src/kdelibs/khtml/xml/dom_nodeimpl.cpp:886: 
virtual void DOM::NodeImpl::attach(): Assertion `!attached()' failed

backtrace:
[New Thread 16384 (LWP 22283)]
[KCrash handler]
#4  0x42370b71 in kill () from /lib/i686/libc.so.6
#5  0x421e4cf1 in pthread_kill () from /lib/i686/libpthread.so.0
#6  0x421e500b in raise () from /lib/i686/libpthread.so.0
#7  0x42370904 in raise () from /lib/i686/libc.so.6
#8  0x42371e8c in abort () from /lib/i686/libc.so.6
#9  0x42369e84 in __assert_fail () from /lib/i686/libc.so.6
#10 0x4061cb3c in DOM::NodeImpl::attach() (this=0x884cf10)
    at /home/will/projects/kde/src/kdelibs/khtml/xml/dom_nodeimpl.cpp:886
#11 0x4061e285 in DOM::NodeBaseImpl::attach() (this=0x884cf10)
    at /home/will/projects/kde/src/kdelibs/khtml/xml/dom_nodeimpl.cpp:1429
#12 0x40623949 in DOM::ElementImpl::attach() (this=0x884cf10)
    at /home/will/projects/kde/src/kdelibs/khtml/xml/dom_elementimpl.cpp:455
#13 0x406356da in khtml::KHTMLParser::insertNode(DOM::NodeImpl*, bool) (
    this=0x874e830, n=0x884cf10, flat=false)
    at /home/will/projects/kde/src/kdelibs/khtml/html/htmlparser.cpp:321
#14 0x406355d9 in khtml::KHTMLParser::parseToken(khtml::Token*) (
    this=0x874e830, t=0x87b867c)
    at /home/will/projects/kde/src/kdelibs/khtml/html/htmlparser.cpp:279
#15 0x4063da32 in khtml::HTMLTokenizer::processToken() (this=0x87b8648)
    at /home/will/projects/kde/src/kdelibs/khtml/html/htmltokenizer.cpp:1577
#16 0x4063c401 in khtml::HTMLTokenizer::parseTag(khtml::DOMStringIt&) (
    this=0x87b8648, src=@0x87b875c)
    at /home/will/projects/kde/src/kdelibs/khtml/html/htmltokenizer.cpp:1090
#17 0x4063cdda in khtml::HTMLTokenizer::write(QString const&, bool) (
    this=0x87b8648, str=@0x8753fa0, appendData=true)
    at /home/will/projects/kde/src/kdelibs/khtml/html/htmltokenizer.cpp:1345
#18 0x405d27bc in KHTMLPart::write(QString const&) (this=0x821bd48, 
    str=@0x8753fa0)
    at /home/will/projects/kde/src/kdelibs/khtml/khtml_part.cpp:1748
#19 0x40347344 in KMail::KHtmlPartHtmlWriter::slotWriteNextHtmlChunk() (
    this=0x820d1c8)
    at /home/will/projects/kde/src/kdepim/kmail/khtmlparthtmlwriter.cpp:115
#20 0x403474d8 in KMail::KHtmlPartHtmlWriter::qt_invoke(int, QUObject*) (
    this=0x820d1c8, _id=2, _o=0xbfffe950) at khtmlparthtmlwriter.moc:84
#21 0x41b0bfeb in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x41b0bdb4 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x41e4eaf9 in QTimer::timeout() () from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x41b2e783 in QTimer::event(QEvent*) () 
from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x41aaac26 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x41aa9f4e in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x4160a227 in KApplication::notify(QObject*, QEvent*) (this=0xbffff050, 
    receiver=0x820d1fc, event=0xbfffed10)
    at /home/will/projects/kde/src/kdelibs/kdecore/kapplication.cpp:507
#28 0x41a97373 in QEventLoop::activateTimers() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x41a50167 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x41abd6e0 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x41abd5d6 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x41aaaebf in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x0804aa77 in main (argc=1, argv=0xbffff1c4)
    at /home/will/projects/kde/src/kdepim/kmail/main.cpp:108

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040507/053ce98a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: header.css
Type: text/css
Size: 4073 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040507/053ce98a/attachment.css>


More information about the kfm-devel mailing list