Bug 239989

Summary: KHTML crash
Product: [Applications] kmail2 Reporter: Cyrille Dunant <cyrille.dunant>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cyrille Dunant 2010-05-29 17:25:42 UTC
Application: kmail (1.13.3)
KDE Platform Version: 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527)) "release 3"
Qt Version: 4.7.0
Operating System: Linux 2.6.31.12-0.2-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
  Launched kmail/konqueror crash on startup. This apeared with the opensuse 4.3.81 packages, and was not there for the 4.2.80.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0x00007f96d7fef79e in memcpy () from /lib64/libc.so.6
#7  0x00007f96d88af96e in QString::QString(QChar const*, int) () from /usr/lib64/libQtCore.so.4
#8  0x00007f96d49f0e09 in qString (ps=<value optimized out>) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssparser.h:85
#9  DOM::CSSParser::parseValue (ps=<value optimized out>) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssparser.cpp:550
#10 0x00007f96d4a15381 in cssyyparse (parser=0x7fff990e30c0) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/parser.cpp:3010
#11 0x00007f96d49e95d4 in DOM::CSSParser::runParser (this=0x7fff990e30c0) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssparser.cpp:151
#12 0x00007f96d49e9737 in DOM::CSSParser::parseSheet (this=0x7fff990e30c0, sheet=<value optimized out>, string=<value optimized out>)
    at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssparser.cpp:204
#13 0x00007f96d49d6958 in DOM::CSSStyleSheetImpl::parseString (this=0xf30da0, string=..., strict=<value optimized out>) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/css_stylesheetimpl.cpp:286
#14 0x00007f96d4a04b6a in khtml::CSSStyleSelector::loadDefaultStyle (s=<value optimized out>, doc=0xf15e30) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssstyleselector.cpp:417
#15 0x00007f96d4a05738 in khtml::CSSStyleSelector::init (this=0xf2a8e0, _settings=<value optimized out>, doc=<value optimized out>)
    at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssstyleselector.cpp:338
#16 0x00007f96d4a082de in khtml::CSSStyleSelector::CSSStyleSelector (this=0xf2a8e0, doc=0xf15e30, userStyleSheet=..., styleSheets=0xf162b0, url=..., _strictParsing=true)
    at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/css/cssstyleselector.cpp:237
#17 0x00007f96d48b17ac in DOM::DocumentImpl::attach (this=0xf15e30) at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/xml/dom_docimpl.cpp:1515
#18 0x00007f96d48684c9 in KHTMLPart::begin (this=0xbbd990, url=<value optimized out>, xOffset=<value optimized out>, yOffset=<value optimized out>)
    at /usr/src/debug/kdelibs-4.4.81svn1131245/khtml/khtml_part.cpp:1976
#19 0x00007f96da05cc46 in KMail::KHtmlPartHtmlWriter::begin (this=0x6c2f60, css=...) at /usr/src/debug/kdepim-4.4.3/kmail/khtmlparthtmlwriter.cpp:77
#20 0x00007f96d9eed0cc in KMReaderWin::updateReaderWin (this=0xbdecb0) at /usr/src/debug/kdepim-4.4.3/kmail/kmreaderwin.cpp:1484
#21 0x00007f96d9eed50c in KMReaderWin::setMsg (this=0xbdecb0, aMsg=0x0, force=true) at /usr/src/debug/kdepim-4.4.3/kmail/kmreaderwin.cpp:1283
#22 0x00007f96da0d2f9b in clear (force=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.4.3/kmail/kmreaderwin.h:188
#23 KMMainWidget::folderSelected (force=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.4.3/kmail/kmmainwidget.cpp:2877
#24 0x00007f96da0d46bc in KMMainWidget::qt_metacall (this=0xaa4780, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff990e3b20) at /usr/src/debug/kdepim-4.4.3/build/kmail/kmmainwidget.moc:518
#25 0x00007f96d89764f7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#26 0x00007f96d9e82c30 in KMail::FolderViewManager::folderActivated (this=0xf3147a, _t1=0xa159e0, _t2=false) at /usr/src/debug/kdepim-4.4.3/build/kmail/folderview.moc:95
#27 0x00007f96d9e8d1f7 in KMail::FolderView::activateItemInternal (this=0x6ccca0, fvi=0xbd4fe0, keepSelection=false, notifyManager=true, middleButton=5)
    at /usr/src/debug/kdepim-4.4.3/kmail/folderview.cpp:1016
#28 0x00007f96da0bf965 in KMMainWidget::slotShowStartupFolder (this=0xaa4780) at /usr/src/debug/kdepim-4.4.3/kmail/kmmainwidget.cpp:4488
#29 0x00007f96da0d49fd in KMMainWidget::qt_metacall (this=0xaa4780, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x660dc0) at /usr/src/debug/kdepim-4.4.3/build/kmail/kmmainwidget.moc:465
#30 0x00007f96d8970c4e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#31 0x00007f96d8ea86bf in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#32 0x00007f96d8e535ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#33 0x00007f96d8e589cd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#34 0x00007f96daf60236 in KApplication::notify (this=0x7fff990e49b0, receiver=0xaa4780, event=0xdeb0c0) at /usr/src/debug/kdelibs-4.4.81svn1131245/kdeui/kernel/kapplication.cpp:302
#35 0x00007f96d895e82c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#36 0x00007f96d8962612 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#37 0x00007f96d898adf3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQtCore.so.4
#38 0x00007f96cfe52a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f96cfe53270 in ?? () from /usr/lib64/libglib-2.0.so.0
#40 0x00007f96cfe53510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#41 0x00007f96d898a933 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#42 0x00007f96d8f02dfe in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtGui.so.4
#43 0x00007f96d895d562 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#44 0x00007f96d895d93c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#45 0x00007f96d89628a9 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#46 0x0000000000403462 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.4.3/kmail/main.cpp:156

Possible duplicates by query: bug 239956, bug 239851, bug 238705.

Reported using DrKonqi
Comment 1 Torgny Nyblom 2010-05-31 20:12:09 UTC
This was/is a bug in the gcc version used by openSUSE to generate kdelibs. All programs that uses khtml will crash. The latest factory version is generated using a different gcc version and works fine.

openSUSE: http://bugzilla.novell.com/show_bug.cgi?id=609955
GCC: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44258