Bug 296440

Summary: kmail crashes when reading html e-mail
Product: [Applications] kmail2 Reporter: Geerten Schram <geerten>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: montel, x.splinter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Geerten Schram 2012-03-20 16:04:49 UTC
Application: kmail (4.8.1)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.2.10-3.fc16.i686 i686
Distribution: "Fedora release 16 (Verne)"

-- Information about the crash:
- What I was doing when the application crashed:

selecting new e-mail with html content. This happened with kde 4.7 and still with kde-4.8

- Custom settings of the application:

html mail and online content enabled

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xb7788780 (LWP 2234))]

Thread 9 (Thread 0xb682fb40 (LWP 2238)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e085c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
#2  0x47f2a9a3 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x4864ffe0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#3  0x47f2aac0 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x4864ffe0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#4  0x428dccd3 in start_thread (arg=0xb682fb40) at pthread_create.c:309
#5  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 8 (Thread 0xb5f06b40 (LWP 2239)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x4280f1a0 in __GI___poll (fds=0xb5600de8, nfds=1, timeout=8011) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x429de83c in g_poll (fds=0xb5600de8, nfds=1, timeout=8011) at gpoll.c:132
#3  0x429cfc76 in g_main_context_poll (n_fds=1, fds=0xb5600de8, priority=<optimized out>, timeout=<optimized out>, context=0xb56004e0) at gmain.c:3402
#4  g_main_context_iterate (context=0xb56004e0, block=1117644816, dispatch=1, self=0xb5600d70) at gmain.c:3084
#5  0x429d001f in g_main_context_iteration (context=0xb56004e0, may_block=1) at gmain.c:3152
#6  0x4372c317 in QEventDispatcherGlib::processEvents (this=0xb5600468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x436f84ee in QEventLoop::processEvents (this=0xb5f06230, flags=...) at kernel/qeventloop.cpp:149
#8  0x436f8799 in QEventLoop::exec (this=0xb5f06230, flags=...) at kernel/qeventloop.cpp:204
#9  0x435e0b2c in QThread::exec (this=0x988f7b8) at thread/qthread.cpp:501
#10 0x435e0c1c in QThread::run (this=0x988f7b8) at thread/qthread.cpp:568
#11 0x435e40b1 in QThreadPrivate::start (arg=0x988f7b8) at thread/qthread_unix.cpp:298
#12 0x428dccd3 in start_thread (arg=0xb5f06b40) at pthread_create.c:309
#13 0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 7 (Thread 0xb39c3b40 (LWP 2312)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x9a2e978) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9a2fd50, mutex=0x9a2fd4c, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0x9a44498) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0x9a44498) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xb39c3b40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0xb51efb40 (LWP 2313)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x98fa5e0) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x98fa588, mutex=0x98fa584, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0x99057e0) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0x99057e0) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xb51efb40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0xb1069b40 (LWP 2315)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x9b59a70) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9b59a40, mutex=0x9b59a3c, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0x9b42dd8) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0x9b42dd8) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xb1069b40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xb0868b40 (LWP 2316)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x9b59a70) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9b59a40, mutex=0x9b59a3c, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0xb3e09340) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0xb3e09340) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xb0868b40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xafe86b40 (LWP 2339)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x9b59a70) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9b59a40, mutex=0x9b59a3c, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0xb3e0abe0) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0xb3e0abe0) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xafe86b40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xaf685b40 (LWP 2340)):
#0  0x00871416 in __kernel_vsyscall ()
#1  0x428e0c04 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
#2  0x435e45b0 in wait (time=30000, this=0x9b59a70) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9b59a40, mutex=0x9b59a3c, time=30000) at thread/qwaitcondition_unix.cpp:158
#4  0x435d684c in QThreadPoolThread::run (this=0xb3e0d110) at concurrent/qthreadpool.cpp:141
#5  0x435e40b1 in QThreadPrivate::start (arg=0xb3e0d110) at thread/qthread_unix.cpp:298
#6  0x428dccd3 in start_thread (arg=0xaf685b40) at pthread_create.c:309
#7  0x42819a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb7788780 (LWP 2234)):
[KCrash Handler]
#7  QNetworkAccessHttpBackend::replyDownloadMetaData (this=0x9f820b8, hm=) at access/qnetworkaccesshttpbackend.cpp:827
#8  0x439932ad in QNetworkAccessHttpBackend::qt_static_metacall (_o=0x9f820b8, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xb3e06b98) at .moc/release-shared/moc_qnetworkaccesshttpbackend_p.cpp:91
#9  0x4370b752 in QMetaCallEvent::placeMetaCall (this=0xb3e06b30, object=0x9f820b8) at kernel/qobject.cpp:525
#10 0x4371442b in QObject::event (this=0x9f820b8, e=0xb3e06b30) at kernel/qobject.cpp:1195
#11 0x43c2c134 in notify_helper (e=0xb3e06b30, receiver=0x9f820b8, this=0x956f0e8) at kernel/qapplication.cpp:4550
#12 QApplicationPrivate::notify_helper (this=0x956f0e8, receiver=0x9f820b8, e=0xb3e06b30) at kernel/qapplication.cpp:4522
#13 0x43c315d3 in QApplication::notify (this=0xb3e06b30, receiver=0x9f820b8, e=0xb3e06b30) at kernel/qapplication.cpp:4279
#14 0x413f50d2 in KApplication::notify (this=0xbfe43d0c, receiver=0x9f820b8, event=0xb3e06b30) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#15 0x436f95fe in QCoreApplication::notifyInternal (this=0xbfe43d0c, receiver=0x9f820b8, event=0xb3e06b30) at kernel/qcoreapplication.cpp:876
#16 0x436fd558 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x950d130) at kernel/qcoreapplication.cpp:1500
#18 0x436fd88d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#19 0x4372beb5 in sendPostedEvents () at kernel/qcoreapplication.h:236
#20 postEventSourceDispatch (s=0x9550c90) at kernel/qeventdispatcher_glib.cpp:279
#21 0x429cf62f in g_main_dispatch (context=0x9550c00) at gmain.c:2441
#22 g_main_context_dispatch (context=0x9550c00) at gmain.c:3011
#23 0x429cfd70 in g_main_context_iterate (context=0x9550c00, block=1117644816, dispatch=1, self=0x954a640) at gmain.c:3089
#24 0x429d001f in g_main_context_iteration (context=0x9550c00, may_block=1) at gmain.c:3152
#25 0x4372c2b8 in QEventDispatcherGlib::processEvents (this=0x9545148, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0x43ce0a9b in QGuiEventDispatcherGlib::processEvents (this=0x9545148, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#27 0x436f84ee in QEventLoop::processEvents (this=0xbfe43c34, flags=...) at kernel/qeventloop.cpp:149
#28 0x436f8799 in QEventLoop::exec (this=0xbfe43c34, flags=...) at kernel/qeventloop.cpp:204
#29 0x436fd93b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#30 0x43c29f35 in QApplication::exec () at kernel/qapplication.cpp:3811
#31 0x0804a3d2 in main (argc=3, argv=0xbfe43eb4) at /usr/src/debug/kdepim-4.8.1/kmail/main.cpp:145

This bug may be a duplicate of or related to bug 286307.

Possible duplicates by query: bug 296145, bug 295746, bug 295225, bug 294828, bug 293172.

Reported using DrKonqi
Comment 1 Laurent Montel 2012-03-20 18:57:53 UTC

*** This bug has been marked as a duplicate of bug 286307 ***
Comment 2 X_Splinter 2012-06-14 11:15:17 UTC
Created attachment 71826 [details]
New crash information added by DrKonqi

kmail (4.8.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1

- What I was doing when the application crashed:

I open a HTML e-mail, when open a second HTML e-mail Kmail always crash.

Other info:

If in security settings If I disable to prefer HTML, the Kmail requires to enable HMTL in every single email, this way Kmail wont crash.

If the setting is set to prefer HTML, Kmail open email with HTML automatic this way the second e-mail I read will make Kmail crash everytime.

Only happen with this new KDE (4.8.3) I had no issues with KDE 4.7

-- Backtrace (Reduced):
#6  QNetworkAccessHttpBackend::replyDownloadMetaData (this=0x4f34910, hm=..., sc=<optimized out>, rp=..., pu=<optimized out>, db=..., contentLength=-1) at access/qnetworkaccesshttpbackend.cpp:827
#7  0x00007f376bdd8709 in QNetworkAccessHttpBackend::qt_static_metacall (_o=0x4f34910, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qnetworkaccesshttpbackend_p.cpp:91
#8  0x00007f376d718446 in QObject::event (this=0x4f34910, e=<optimized out>) at kernel/qobject.cpp:1195
#9  0x00007f376dc21894 in notify_helper (e=0x7f36ec008750, receiver=0x4f34910, this=0x2545bb0) at kernel/qapplication.cpp:4559
#10 QApplicationPrivate::notify_helper (this=0x2545bb0, receiver=0x4f34910, e=0x7f36ec008750) at kernel/qapplication.cpp:4531