Bug 324568

Summary: kmail crashed when closing it from systray icon
Product: [Applications] kmail2 Reporter: sanjay_lim <sanjaylmbr>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: bou.gui, dvratil
Priority: NOR Keywords: drkonqi
Version: 4.10.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sanjay_lim 2013-09-05 19:43:09 UTC
Application: kmail (4.10.5)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-29-generic i686
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed: I was trying to recover mails, but long time couldn't. so try to quit application from system tray by right click.

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

Thread 5 (Thread 0xade0cb40 (LWP 2356)):
#0  0xb77d4424 in __kernel_vsyscall ()
#1  0xb58c284b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb5f15d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb3559ae5 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb3559b1f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb58bed78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb5f083de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xad44eb40 (LWP 2357)):
#0  0xb448aa57 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb448ad28 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb4446d2b in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb44475cf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4447831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb627dc3f in QEventDispatcherGlib::processEvents (this=0xacb00468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb624a3ec in QEventLoop::processEvents (this=this@entry=0xad44e228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb624a6e1 in QEventLoop::exec (this=this@entry=0xad44e228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb6135fec in QThread::exec (this=this@entry=0x92f3470) at thread/qthread.cpp:542
#9  0xb6229f2d in QInotifyFileSystemWatcherEngine::run (this=0x92f3470) at io/qfilesystemwatcher_inotify.cpp:256
#10 0xb6138b18 in QThreadPrivate::start (arg=0x92f3470) at thread/qthread_unix.cpp:338
#11 0xb58bed78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb5f083de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xacad3b40 (LWP 2358)):
#0  0xb77d4424 in __kernel_vsyscall ()
#1  0xb58c284b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb5f15d7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb358af63 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb3269b1b in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb356f982 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb358ab12 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb58bed78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb5f083de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xabcffb40 (LWP 2359)):
#0  0xb58c0de3 in pthread_mutex_lock () from /lib/i386-linux-gnu/libpthread.so.0
#1  0xb5f15f84 in pthread_mutex_lock () from /lib/i386-linux-gnu/libc.so.6
#2  0xb448ad30 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4446d2b in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb44475cf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb4447831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb627dc3f in QEventDispatcherGlib::processEvents (this=0xab300468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb624a3ec in QEventLoop::processEvents (this=this@entry=0xabcff258, flags=...) at kernel/qeventloop.cpp:149
#8  0xb624a6e1 in QEventLoop::exec (this=this@entry=0xabcff258, flags=...) at kernel/qeventloop.cpp:204
#9  0xb6135fec in QThread::exec (this=this@entry=0x92c08f0) at thread/qthread.cpp:542
#10 0xb613614b in QThread::run (this=0x92c08f0) at thread/qthread.cpp:609
#11 0xb6138b18 in QThreadPrivate::start (arg=0x92c08f0) at thread/qthread_unix.cpp:338
#12 0xb58bed78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#13 0xb5f083de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb0818a00 (LWP 2221)):
[KCrash Handler]
#7  0xb77d4424 in __kernel_vsyscall ()
#8  0xb5e45b1f in raise () from /lib/i386-linux-gnu/libc.so.6
#9  0xb5e490b3 in abort () from /lib/i386-linux-gnu/libc.so.6
#10 0xb612d7fc in qt_message_output (msgType=QtFatalMsg, buf=0x92d28f8 "Fatal Error: Accessed global static 'Internal::StaticControl *s_instance()' after destruction. Defined at ../../akonadi/control.cpp:74") at global/qglobal.cpp:2347
#11 0xb612dc09 in qt_message (msgType=QtFatalMsg, msg=0xb54bd588 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0xbffde6b4 "\363OL\265\350OL\265\316OL\265J") at global/qglobal.cpp:2393
#12 0xb612dd28 in qFatal (msg=msg@entry=0xb54bd588 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2576
#13 0xb53c452c in operator-> (this=<optimized out>) at ../../akonadi/control.cpp:74
#14 Akonadi::Control::widgetNeedsAkonadi (widget=0x90d19d0) at ../../akonadi/control.cpp:263
#15 0xb6fa7ce3 in KMMainWidget::KMMainWidget (this=0x90d19d0, parent=0x0, aGUIClient=0x0, actionCollection=0x0, config=...) at ../../kmail/kmmainwidget.cpp:252
#16 0xb6ef5f9f in KMMainWin::KMMainWin (this=0x95bbac8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmmainwin.cpp:67
#17 0xb6f4b806 in KMKernel::openReader (this=0xbffdf79c, onlyCheck=false) at ../../kmail/kmkernel.cpp:578
#18 0xb6f53015 in KMKernel::action (this=0xbffdf79c, mailto=false, check=false, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=...) at ../../kmail/kmkernel.cpp:1372
#19 0xb6f53846 in KMKernel::handleCommandLine (this=0xbffdf79c, noArgsOpensReader=true) at ../../kmail/kmkernel.cpp:494
#20 0x0804aa81 in KMailApplication::newInstance (this=0xbffdf784) at ../../kmail/main.cpp:87
#21 0xb7569d67 in KUniqueApplicationAdaptor::newInstance (this=this@entry=0x8fb6808, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#22 0xb7569e16 in qt_static_metacall (_a=0xbffdecec, _id=0, _o=0x8fb6808, _c=<optimized out>) at ./kuniqueapplication_p.moc:58
#23 KUniqueApplicationAdaptor::qt_static_metacall (_o=0x8fb6808, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbffdecec) at ./kuniqueapplication_p.moc:52
#24 0xb7569f9c in KUniqueApplicationAdaptor::qt_metacall (this=0x8fb6808, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbffdecec) at ./kuniqueapplication_p.moc:102
#25 0xb59887be in QDBusConnectionPrivate::deliverCall (this=0x8e6b970, object=0x8fb6808, msg=..., metaTypes=..., slotIdx=6) at qdbusintegrator.cpp:951
#26 0xb5989104 in QDBusConnectionPrivate::activateCall (this=0x8e6b970, object=0x8fb6808, flags=337, msg=...) at qdbusintegrator.cpp:863
#27 0xb59897e2 in QDBusConnectionPrivate::activateObject (this=0x8e6b970, node=..., msg=..., pathStartPos=149492481) at qdbusintegrator.cpp:1427
#28 0xb5989bd8 in QDBusActivateObjectEvent::placeMetaCall (this=0xbd4f0f8) at qdbusintegrator.cpp:1541
#29 0xb626748b in QObject::event (this=this@entry=0xbffdf784, e=e@entry=0xbd4f0f8) at kernel/qobject.cpp:1194
#30 0xb62506da in QCoreApplication::event (this=this@entry=0xbffdf784, e=e@entry=0xbd4f0f8) at kernel/qcoreapplication.cpp:1758
#31 0xb64fc3cd in QApplication::event (this=0xbffdf784, e=0xbd4f0f8) at kernel/qapplication.cpp:2549
#32 0xb64f3c7c in QApplicationPrivate::notify_helper (this=0x8e964e0, receiver=0xbffdf784, e=0xbd4f0f8) at kernel/qapplication.cpp:4567
#33 0xb64f6b94 in QApplication::notify (this=0xbd4f0f8, receiver=0xbffdf784, e=0xbd4f0f8) at kernel/qapplication.cpp:3949
#34 0xb7566491 in KApplication::notify (this=0xbffdf784, receiver=0xbffdf784, event=0xbd4f0f8) at ../../kdeui/kernel/kapplication.cpp:311
#35 0xb624b90e in QCoreApplication::notifyInternal (this=0xbffdf784, receiver=0xbffdf784, event=0xbd4f0f8) at kernel/qcoreapplication.cpp:946
#36 0xb624f721 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8e30150) at kernel/qcoreapplication.cpp:1570
#38 0xb624fa8c in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#39 0xb627daa4 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#40 postEventSourceDispatch (s=0x8e87c10) at kernel/qeventdispatcher_glib.cpp:279
#41 0xb44473b3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#42 0xb4447750 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#43 0xb4447831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#44 0xb627dc21 in QEventDispatcherGlib::processEvents (this=this@entry=0x8e30ec8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#45 0xb65aaa5a in QGuiEventDispatcherGlib::processEvents (this=0x8e30ec8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0xb624a3ec in QEventLoop::processEvents (this=this@entry=0xbffdf618, flags=...) at kernel/qeventloop.cpp:149
#47 0xb624a6e1 in QEventLoop::exec (this=0xbffdf618, flags=...) at kernel/qeventloop.cpp:204
#48 0xb71c5e7b in KJob::exec (this=0x93bf5e0) at ../../kdecore/jobs/kjob.cpp:210
#49 0xb6f4b15c in KMKernel::cleanup (this=0xbffdf79c) at ../../kmail/kmkernel.cpp:1322
#50 0x0804a40c in main (argc=3, argv=0xbffdf8d4) at ../../kmail/main.cpp:148

Possible duplicates by query: bug 322491, bug 308390.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-09-06 23:34:46 UTC
*** Bug 322491 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-24 18:24:30 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 3 Denis Kurz 2017-01-07 22:11:55 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.