Bug 284777 - Kmail crashes when opening HTML mail
Summary: Kmail crashes when opening HTML mail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 287980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-23 12:40 UTC by Ctibor Brančík
Modified: 2017-01-07 22:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ctibor Brančík 2011-10-23 12:40:20 UTC
Application: kmail (4.7.2)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 2.6.38.4-zen x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
When I try to open HTML mail on IMAP account, kmail crashes. Happens with different messages.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Illegal instruction
[Current thread is 1 (Thread 0x7f4785638760 (LWP 6623))]

Thread 5 (Thread 0x7f476a631700 (LWP 6649)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f477720f4fd in WTF::TCMalloc_PageHeap::scavengerThread (this=<value optimized out>) at wtf/FastMalloc.cpp:2378
#2  0x00007f477720f609 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f47779c2f34) at wtf/FastMalloc.cpp:1497
#3  0x00007f47807cbdba in start_thread (arg=<value optimized out>) at pthread_create.c:301
#4  0x00007f478295902d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f4769d30700 (LWP 6650)):
#0  0x00007f477b10799d in next_valid_source (context=0x2ba3440, priority=<value optimized out>) at gmain.c:2495
#1  g_main_context_prepare (context=0x2ba3440, priority=<value optimized out>) at gmain.c:2795
#2  0x00007f477b107d58 in g_main_context_iterate (context=0x2ba3440, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3072
#3  0x00007f477b10831e in g_main_context_iteration (context=0x2ba3440, may_block=1) at gmain.c:3155
#4  0x00007f47832aebce in QEventDispatcherGlib::processEvents (this=0x2b8d530, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f4783281732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f4783281afd in QEventLoop::exec (this=0x7f4769d2fe20, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f478318ed92 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:498
#8  0x00007f4783191d45 in QThreadPrivate::start (arg=0x2ceed80) at thread/qthread_unix.cpp:331
#9  0x00007f47807cbdba in start_thread (arg=<value optimized out>) at pthread_create.c:301
#10 0x00007f478295902d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f4761721700 (LWP 31508)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f478319283d in wait (this=<value optimized out>, mutex=0x430e720, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x430e720, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f4783186311 in QThreadPoolThread::run (this=0x348f240) at concurrent/qthreadpool.cpp:140
#4  0x00007f4783191d45 in QThreadPrivate::start (arg=0x348f240) at thread/qthread_unix.cpp:331
#5  0x00007f47807cbdba in start_thread (arg=<value optimized out>) at pthread_create.c:301
#6  0x00007f478295902d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f4760f20700 (LWP 31509)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f478319283d in wait (this=<value optimized out>, mutex=0x430e720, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x430e720, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f4783186311 in QThreadPoolThread::run (this=0x7f476400a3b0) at concurrent/qthreadpool.cpp:140
#4  0x00007f4783191d45 in QThreadPrivate::start (arg=0x7f476400a3b0) at thread/qthread_unix.cpp:331
#5  0x00007f47807cbdba in start_thread (arg=<value optimized out>) at pthread_create.c:301
#6  0x00007f478295902d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f4785638760 (LWP 6623)):
[KCrash Handler]
#6  0x00007f477718de52 in markedCells (this=0x7f4769d90230) at ./wtf/StdLibExtras.h:76
#7  JSC::Heap::resizeBlocks (this=0x7f4769d90230) at runtime/Collector.cpp:411
#8  0x00007f4777190bb8 in reset (this=0x7f4769d90230, s=<value optimized out>) at runtime/Collector.cpp:1230
#9  JSC::Heap::allocate (this=0x7f4769d90230, s=<value optimized out>) at runtime/Collector.cpp:403
#10 0x00007f47771a5ca3 in operator new (this=0x7f476887fd40, globalData=0x7f4769d8ea00, structure=<value optimized out>, name=...) at runtime/JSCell.h:165
#11 jsString (this=0x7f476887fd40, globalData=0x7f4769d8ea00, structure=<value optimized out>, name=...) at runtime/JSString.h:411
#12 JSC::InternalFunction::InternalFunction (this=0x7f476887fd40, globalData=0x7f4769d8ea00, structure=<value optimized out>, name=...) at runtime/InternalFunction.cpp:43
#13 0x00007f47771b06d8 in JSC::JSFunction::JSFunction (this=0x7f4769d90230, exec=0x7f47640115e8, structure=<value optimized out>, length=1, name=..., func=0x1) at runtime/JSFunction.cpp:62
#14 0x00007f47771d2dca in JSC::setUpStaticFunctionSlot (exec=0x7f47640115e8, entry=0x7f4769d815c8, thisObj=0x7f4768854a00, propertyName=..., slot=...) at runtime/Lookup.cpp:73
#15 0x00007f4776785790 in getStaticFunctionDescriptor<JSC::JSObject> (this=0x7f4768854a00, exec=0x7f47640115e8, propertyName=..., descriptor=...) at ../JavaScriptCore/runtime/Lookup.h:242
#16 WebCore::JSCSSStyleSheetPrototype::getOwnPropertyDescriptor (this=0x7f4768854a00, exec=0x7f47640115e8, propertyName=..., descriptor=...) at generated/JSCSSStyleSheet.cpp:136
#17 0x00007f47771c0a50 in JSC::JSObject::propertyIsEnumerable (this=0x7f4769d90230, exec=0x1, propertyName=...) at runtime/JSObject.cpp:410
#18 0x00007f4776f42b91 in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=69333512, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:347
#19 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=QMetaType::QVariantMap, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#20 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=69333032, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#21 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=85946952, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#22 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=94555496, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#23 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=77168808, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#24 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=85414744, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#25 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=86928184, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#26 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=QMetaType::QVariantMap, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#27 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=61560264, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#28 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=QMetaType::QVariantMap, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#29 0x00007f4776f42bdb in JSC::Bindings::convertValueToQVariant (exec=<value optimized out>, value=..., hint=69404072, distance=<value optimized out>, visitedObjects=<value optimized out>, recursionLimit=<value optimized out>) at bridge/qt/qt_runtime.cpp:349
#30 0x00007f4776f45a72 in JSC::Bindings::convertValueToQVariant (exec=0x1, value=..., hint=2883295616, distance=0x7fffabdb99b8) at bridge/qt/qt_runtime.cpp:784
#31 0x00007f4776f8f559 in QWebFrame::evaluateJavaScript (this=0x55deed0, scriptSource=<value optimized out>) at ../WebKit/qt/Api/qwebframe.cpp:1537
#32 0x00007f477bcf3e0a in MessageViewer::HTMLQuoteColorer::process (this=<value optimized out>, htmlSource=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/htmlquotecolorer.cpp:127
#33 0x00007f477bd0dd53 in MessageViewer::ObjectTreeParser::processTextHtmlSubtype (this=0x7fffabdbfb30, curNode=0x40307a0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/objecttreeparser.cpp:1161
#34 0x00007f477bd18c6e in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=0x7fffabdbfb30, node=0x40307a0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/objecttreeparser.cpp:335
#35 0x00007f477bd4ec0b in MessageViewer::ViewerPrivate::parseContent (this=0x2cd3e60, content=0x40307a0) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/viewer_p.cpp:839
#36 0x00007f477bd51882 in MessageViewer::ViewerPrivate::displayMessage (this=0x2cd3e60) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/viewer_p.cpp:711
#37 0x00007f477bd51f3d in MessageViewer::ViewerPrivate::updateReaderWin (this=0x2cd3e60) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/viewer_p.cpp:1927
#38 0x00007f477bd312e8 in (anonymous namespace)::KMailProtocolURLHandler::handleClick (this=<value optimized out>, url=..., w=0x2cd3e60) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/urlhandlermanager.cpp:436
#39 0x00007f477bd32195 in MessageViewer::URLHandlerManager::handleClick (this=0x2e0ca90, url=..., w=0x2cd3e60) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/urlhandlermanager.cpp:369
#40 0x00007f477bd42889 in MessageViewer::ViewerPrivate::slotUrlOpen (this=0x2cd3e60, url=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2/messageviewer/viewer_p.cpp:1771
#41 0x00007f477bd54ec1 in MessageViewer::ViewerPrivate::qt_metacall (this=0x2cd3e60, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x36b2220) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.2/work/kdepim-common-libs-4.7.2_build/messageviewer/viewer_p.moc:212
#42 0x00007f47832948ae in QObject::event (this=0x2cd3e60, e=0x7f4769d90230) at kernel/qobject.cpp:1217
#43 0x00007f478378324c in QApplicationPrivate::notify_helper (this=0x2430180, receiver=0x2cd3e60, e=0x3881ca0) at kernel/qapplication.cpp:4481
#44 0x00007f47837886ed in QApplication::notify (this=0x7fffabdc0d10, receiver=0x2cd3e60, e=0x3881ca0) at kernel/qapplication.cpp:4360
#45 0x00007f478503d528 in KApplication::notify (this=0x7fffabdc0d10, receiver=0x2cd3e60, event=0x3881ca0) at /var/tmp/portage/kde-base/kdelibs-4.7.2/work/kdelibs-4.7.2/kdeui/kernel/kapplication.cpp:311
#46 0x00007f47832829eb in QCoreApplication::notifyInternal (this=0x7fffabdc0d10, receiver=0x2cd3e60, event=0x3881ca0) at kernel/qcoreapplication.cpp:787
#47 0x00007f4783285969 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x213d6f0) at kernel/qcoreapplication.h:215
#48 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x213d6f0) at kernel/qcoreapplication.cpp:1428
#49 0x00007f47832af093 in sendPostedEvents (s=0x2433a00) at kernel/qcoreapplication.h:220
#50 postEventSourceDispatch (s=0x2433a00) at kernel/qeventdispatcher_glib.cpp:277
#51 0x00007f477b103c39 in g_main_dispatch (context=0x24328e0) at gmain.c:2441
#52 g_main_context_dispatch (context=0x24328e0) at gmain.c:3014
#53 0x00007f477b108178 in g_main_context_iterate (context=0x24328e0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3092
#54 0x00007f477b10831e in g_main_context_iteration (context=0x24328e0, may_block=1) at gmain.c:3155
#55 0x00007f47832aeb7e in QEventDispatcherGlib::processEvents (this=0x213ced0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#56 0x00007f4783835d26 in QGuiEventDispatcherGlib::processEvents (this=0x7f4769d90230, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#57 0x00007f4783281732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#58 0x00007f4783281afd in QEventLoop::exec (this=0x7fffabdc0bd0, flags=) at kernel/qeventloop.cpp:201
#59 0x00007f4783285b7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#60 0x00000000004033d2 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.7.2/work/kmail-4.7.2/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Laurent Montel 2011-10-23 14:33:57 UTC
could you send me in private a mail which crash.
Can't reproduce it.
Thanks
Comment 2 Laurent Montel 2011-10-23 20:54:17 UTC
For the moment I don't know why it crashs for you.
I can't reproduce your crash with your email.
Comment 3 Christophe Marin 2011-12-04 15:25:57 UTC
Laurent, you use Qt 4.8 already ?
Comment 4 Myriam Schweingruber 2011-12-08 09:31:24 UTC
*** Bug 287980 has been marked as a duplicate of this bug. ***
Comment 5 Myriam Schweingruber 2011-12-08 09:32:06 UTC
Confirmed by duplicate. The duplicate one useses 4.8 beta 1
Comment 6 Torgny Nyblom 2011-12-08 10:13:56 UTC
This is a crash in the JavaScript part of QWebKit and not in any KDE code.

I propose to close this as UPSTREAM and potentially create a new issue in the webkit tracker.
Comment 7 jmaldrich 2012-02-05 15:42:10 UTC
I am having this issue as well, but only if KMail2 has been open for awhile. If it crashes and I kill all remaining KMail-related processes and start again, it's fine.
I would love to see this resolved! Is there any work-around, such as changing what app is used to render the HTML messages?
Comment 8 Sergio Martins 2012-02-05 20:03:42 UTC
please attach valgrind output
Comment 9 Ctibor Brančík 2012-05-03 18:11:52 UTC
I can't reproduce the bug myself anymore. I think it can be closed.
Comment 10 jmaldrich 2012-06-11 10:46:35 UTC
This just happened to me (again) in Fedora 17.(KMAIL/KDE 4.8.3) updated from Fedora 16. It does not happen as often as it used to, but it still happens. FWIW, this is a 64-bit installation. Not sure if it makes any difference, but I can see that it might.
Comment 11 Christophe Marin 2013-04-01 18:36:51 UTC
I think I can reliably reproduce that with emails marked as spam by spamassassin.

Once marked, spamassassin adds some text before the html message. Clicking on the "clicking here" link to enable html produces this:

#28 0x00007f5715d9d922 in QWebFrame::evaluateJavaScript(QString const&) () from /usr/lib64/libQtWebKit.so.4
#29 0x00007f571b13dfad in MessageViewer::HTMLQuoteColorer::process (this=0x7ffff3a80a60, htmlSource=
    "<HTML>\n<HEAD>\n<META http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">\n<style>\n\t\t\tA:active {COLOR: #006699}\n\t\t\tA:link {COLOR: #006699}\n\t\t\tA:visited {COLOR: #006699}\n\t\t\t.tdlien {font-"..., extraHead="")
    at /kde/src/pim/kdepim/messageviewer/htmlquotecolorer.cpp:133
#30 0x00007f571b161606 in MessageViewer::ObjectTreeParser::processTextHtmlSubtype (this=0x7ffff3a80d80, curNode=0x4d73560)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1220
#31 0x00007f571b10bc81 in (anonymous namespace)::TextHtmlBodyPartFormatter::process (this=0x479e8f0, otp=0x7ffff3a80d80, node=0x4d73560, result=...)
    at /kde/src/pim/kdepim/messageviewer/bodypartformatter.cpp:112
#32 0x00007f571b15b7f4 in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=0x7ffff3a80d80, node=0x4d73560)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:353
#33 0x00007f571b1631f6 in MessageViewer::ObjectTreeParser::stdChildHandling (this=0x7ffff3a810c0, child=0x4d73560)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1453
#34 0x00007f571b1634b1 in MessageViewer::ObjectTreeParser::processMultiPartMixedSubtype (this=0x7ffff3a810c0, node=0x4dc64f0)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1486
---Type <return> to continue, or q <return> to quit---
#35 0x00007f571b10bfa1 in (anonymous namespace)::MultiPartMixedBodyPartFormatter::process (this=0x330d280, otp=0x7ffff3a810c0, node=0x4dc64f0, result=
    ...) at /kde/src/pim/kdepim/messageviewer/bodypartformatter.cpp:122
#36 0x00007f571b15b7f4 in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=0x7ffff3a810c0, node=0x4dc64f0)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:353
#37 0x00007f571b164e58 in MessageViewer::ObjectTreeParser::processMessageRfc822Subtype (this=0x7ffff3a813d0, node=0x4ba4d30)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1790
#38 0x00007f571b10bf01 in (anonymous namespace)::MessageRfc822BodyPartFormatter::process (this=0x341c6a0, otp=0x7ffff3a813d0, node=0x4ba4d30, result=...)
    at /kde/src/pim/kdepim/messageviewer/bodypartformatter.cpp:120
#39 0x00007f571b15b7f4 in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=0x7ffff3a813d0, node=0x4ba4d30)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:353
#40 0x00007f571b1631f6 in MessageViewer::ObjectTreeParser::stdChildHandling (this=0x7ffff3a816b0, child=0x4db1e80)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1453
#41 0x00007f571b1634b1 in MessageViewer::ObjectTreeParser::processMultiPartMixedSubtype (this=0x7ffff3a816b0, node=0x4a65d90)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:1486
#42 0x00007f571b10bfa1 in (anonymous namespace)::MultiPartMixedBodyPartFormatter::process (this=0x330d280, otp=0x7ffff3a816b0, node=0x4a65d90, result=
    ...) at /kde/src/pim/kdepim/messageviewer/bodypartformatter.cpp:122
#43 0x00007f571b15b7f4 in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=0x7ffff3a816b0, node=0x4a65d90)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:353
#44 0x00007f571b15b07b in MessageViewer::ObjectTreeParser::parseObjectTree (this=0x7ffff3a816b0, node=0x4a65d90)
    at /kde/src/pim/kdepim/messageviewer/objecttreeparser.cpp:266
#45 0x00007f571b19b77d in MessageViewer::ViewerPrivate::parseContent (this=0x295f300, content=0x4a65d90)
    at /kde/src/pim/kdepim/messageviewer/viewer_p.cpp:1009
#46 0x00007f571b19a9b0 in MessageViewer::ViewerPrivate::displayMessage (this=0x295f300) at /kde/src/pim/kdepim/messageviewer/viewer_p.cpp:881
#47 0x00007f571b1a5f92 in MessageViewer::ViewerPrivate::updateReaderWin (this=0x295f300) at /kde/src/pim/kdepim/messageviewer/viewer_p.cpp:2266
---Type <return> to continue, or q <return> to quit---
#48 0x00007f571b1a502d in MessageViewer::ViewerPrivate::update (this=0x295f300, updateMode=MessageViewer::Viewer::Force)
    at /kde/src/pim/kdepim/messageviewer/viewer_p.cpp:2072
#49 0x00007f571b18374b in (anonymous namespace)::KMailProtocolURLHandler::handleClick (this=0x334e8b0, url=..., w=0x295f300)
    at /kde/src/pim/kdepim/messageviewer/urlhandlermanager.cpp:445
#50 0x00007f571b18323c in MessageViewer::URLHandlerManager::handleClick (this=0x283d430, url=..., w=0x295f300)
    at /kde/src/pim/kdepim/messageviewer/urlhandlermanager.cpp:373
#51 0x00007f571b1a50e8 in MessageViewer::ViewerPrivate::slotUrlOpen (this=0x295f300, url="kmail:showHTML" = {...})
    at /kde/src/pim/kdepim/messageviewer/viewer_p.cpp:2090
#52 0x00007f571b1ac7ab in MessageViewer::ViewerPrivate::qt_static_metacall (_o=0x295f300, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0x4bd36c0)
    at /kde/build/pim/kdepim/messageviewer/viewer_p.moc:230
Comment 12 Laurent Montel 2013-04-02 05:50:12 UTC
I need an example.
Could you send me in private email which crash (after tagged with spamassassin) ? (saved as mbox)
Comment 13 Laurent Montel 2013-04-02 08:28:18 UTC
I can't reproduce crash with your mail.
Which qt version ?
which kdepim version ?
Comment 14 Christophe Marin 2013-04-02 08:36:18 UTC
master with Qt 4.8.4
Comment 15 Laurent Montel 2013-04-02 08:37:59 UTC
qtwebkit from qt ? or qtwebkit-2.3 for example ?
Comment 16 Christophe Marin 2013-04-02 09:18:05 UTC
this is upstream 2.3. Now that you mention it, the issue doesn't look related to kmail:

kmail2(6124)/kdewebkit KWebPage::acceptNavigationRequest: url:  QUrl( "file:///" )  , type: 5 , frame: QWebFrame(0x17bb020)
kmail2(6124)/kdewebkit KWebPage::acceptNavigationRequest: url:  QUrl( "kmail:showHTML" )  , type: 0 , frame: QWebFrame(0x17bb020)
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
(kmail:6124): GStreamer-CRITICAL **: gst_object_ref: assertion `object != NULL' failed
(kmail:6124): GStreamer-CRITICAL **: gst_allocator_register: assertion `allocator != NULL' failed
(kmail:6124): GStreamer-CRITICAL **: gst_object_ref: assertion `object != NULL' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid>'
(kmail:6124): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
(kmail:6124): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
(kmail:6124): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
(kmail:6124): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
*** KMail got signal 11 (Exiting)

trying to export QT_NO_GLIB=1 before starting KMail didn't help (yet)
Comment 17 Laurent Montel 2013-04-02 10:14:41 UTC
Ok so bug about qtwebkit2.3
Comment 18 jmaldrich 2013-04-02 10:18:16 UTC
Quoting Laurent Montel <montel@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=284777
>
> --- Comment #12 from Laurent Montel <montel@kde.org> ---
> I need an example.
> Could you send me in private email which crash (after tagged with   
> spamassassin)
> ? (saved as mbox)
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>

Unfortunately, due to a bug that appears to be in LibAkonadi, I can't  
open KMail right now. :( (See Bug 317293)
Comment 19 Denis Kurz 2016-09-24 18:18:24 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 20 Denis Kurz 2017-01-07 22:49:02 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.