Bug 299923

Summary: KMail crashes when deleting email
Product: [Applications] kmail2 Reporter: Paul Worrall <p.r.worrall>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: fb1, montel
Priority: NOR    
Version: 4.8.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi

Description Paul Worrall 2012-05-13 07:04:01 UTC
Application: kmail (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic-pae i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
Select an email in the message list (it appears in the preview pane) and click the delete button on the toolbar.  Kmail crashes.  This happens with plain text and html emails. I am using an IMAP account but another user on the same machine gets the same with a POP3 account.

The crash can be reproduced some of the time.

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

Thread 4 (Thread 0xaea6fb40 (LWP 18117)):
#0  0xb7715424 in __kernel_vsyscall ()
#1  0xb581896b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb5e803dc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb382c263 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb382c37f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb5814d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb5e72ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xae146b40 (LWP 18118)):
#0  0xb7715424 in __kernel_vsyscall ()
#1  0xb5e64380 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb4495a3b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb448806e in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb44881c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb61e08e7 in QEventDispatcherGlib::processEvents (this=0xad800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb61ac50d in QEventLoop::processEvents (this=0xae146270, flags=...) at kernel/qeventloop.cpp:149
#7  0xb61ac7a9 in QEventLoop::exec (this=0xae146270, flags=...) at kernel/qeventloop.cpp:204
#8  0xb609594c in QThread::exec (this=0x93bced0) at thread/qthread.cpp:501
#9  0xb6095a3b in QThread::run (this=0x93bced0) at thread/qthread.cpp:568
#10 0xb6098de0 in QThreadPrivate::start (arg=0x93bced0) at thread/qthread_unix.cpp:298
#11 0xb5814d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb5e72ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xac832b40 (LWP 18121)):
#0  0xb5817c64 in __pthread_mutex_unlock_usercnt () from /lib/i386-linux-gnu/libpthread.so.0
#1  0xb5e80634 in pthread_mutex_unlock () from /lib/i386-linux-gnu/libc.so.6
#2  0xb44c73d0 in g_mutex_unlock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4487755 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4487f6f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb44881c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb61e08e7 in QEventDispatcherGlib::processEvents (this=0x92da438, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb61ac50d in QEventLoop::processEvents (this=0xac832240, flags=...) at kernel/qeventloop.cpp:149
#8  0xb61ac7a9 in QEventLoop::exec (this=0xac832240, flags=...) at kernel/qeventloop.cpp:204
#9  0xb609594c in QThread::exec (this=0x92dd400) at thread/qthread.cpp:501
#10 0xb6189b5d in QInotifyFileSystemWatcherEngine::run (this=0x92dd400) at io/qfilesystemwatcher_inotify.cpp:248
#11 0xb6098de0 in QThreadPrivate::start (arg=0x92dd400) at thread/qthread_unix.cpp:298
#12 0xb5814d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#13 0xb5e72ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb144a740 (LWP 18113)):
[KCrash Handler]
#7  0xb0838b56 in icudt48_dat () from /usr/lib/libicudata.so.48
#8  0xb5a1c254 in QNetworkAccessHttpBackend::replyDownloadMetaData (this=0xa5ccf58, hm=..., sc=-1079083976, rp=..., pu=40, db=..., contentLength=-1247043140) at access/qnetworkaccesshttpbackend.cpp:827
#9  0xb5ab337d in QNetworkAccessHttpBackend::qt_static_metacall (_o=0xa5ccf58, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xad830368) at .moc/release-shared/moc_qnetworkaccesshttpbackend_p.cpp:91
#10 0xb61bfc01 in QMetaCallEvent::placeMetaCall (this=0xad830318, object=0xa5ccf58) at kernel/qobject.cpp:525
#11 0xb61c8c7b in QObject::event (this=0xa5ccf58, e=0xad830318) at kernel/qobject.cpp:1195
#12 0xb6448ed4 in notify_helper (e=0xad830318, receiver=0xa5ccf58, this=0x8fb6810) at kernel/qapplication.cpp:4559
#13 QApplicationPrivate::notify_helper (this=0x8fb6810, receiver=0xa5ccf58, e=0xad830318) at kernel/qapplication.cpp:4531
#14 0xb644e30d in QApplication::notify (this=0xad830318, receiver=0xa5ccf58, e=0xad830318) at kernel/qapplication.cpp:4288
#15 0xb74a5b21 in KApplication::notify (this=0xbfae84ec, receiver=0xa5ccf58, event=0xad830318) at ../../kdeui/kernel/kapplication.cpp:311
#16 0xb61ad97e in QCoreApplication::notifyInternal (this=0xbfae84ec, receiver=0xa5ccf58, event=0xad830318) at kernel/qcoreapplication.cpp:876
#17 0xb61b1ad8 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#18 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8f6c150) at kernel/qcoreapplication.cpp:1500
#19 0xb61b1e0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#20 0xb61e0494 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#21 postEventSourceDispatch (s=0x8fb0138) at kernel/qeventdispatcher_glib.cpp:279
#22 0xb4487cda in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#23 0xb44880e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0xb44881c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0xb61e0887 in QEventDispatcherGlib::processEvents (this=0x8f6cec0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0xb6501aaa in QGuiEventDispatcherGlib::processEvents (this=0x8f6cec0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0xb61ac50d in QEventLoop::processEvents (this=0xbfae8414, flags=...) at kernel/qeventloop.cpp:149
#28 0xb61ac7a9 in QEventLoop::exec (this=0xbfae8414, flags=...) at kernel/qeventloop.cpp:204
#29 0xb61b1eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#30 0xb6446a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#31 0x0804a266 in main (argc=<error reading variable: Cannot access memory at address 0x0>, argv=<error reading variable: Cannot access memory at address 0x4>) at ../../kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Laurent Montel 2012-05-14 07:34:02 UTC

*** This bug has been marked as a duplicate of bug 286307 ***
Comment 2 Bigey 2012-06-21 15:43:19 UTC
Created attachment 72019 [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:
Cick delete on a message then kmail crashed

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