Bug 323399 - Closing kmail does not exit, crash on new start
Summary: Closing kmail does not exit, crash on new start
Status: RESOLVED DUPLICATE of bug 319574
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.10.5
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-08-12 06:24 UTC by Volker Kuhlmann
Modified: 2014-02-12 18:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Kuhlmann 2013-08-12 06:24:14 UTC
Application: kmail (4.10.5)
KDE Platform Version: 4.10.5 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.16-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

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

Exited kmail with ^Q intentionally, but the process didn't exit.

Then I noticed I still had a composition window open - oops. I finished that email and sent it - the notice in the Notifications was that it was successfully sent. I was then expecting the kmail process to exit.

When it didn't, I started another kmail, and got drkon

It appears the newly started kmail crashed.

user   23353  6.0  0.7 1688232 117092 ?      Tl   18:01   1:13 /usr/bin/kmail -caption KMail
user   24919  0.0  0.1 405536 29148 ?	     S    18:16   0:00 /usr/bin/kmail -caption KMail
user   24924  2.7  0.3 335268 51108 ?	     Sl   18:16   0:08 /usr/lib64/kde4/libexec/drkonqi -display :0 --appname kmail --apppath /usr/bin --signal 11 --pid 23353 --appversion 4.10.5 --programname KMail --bugaddress submit@bugs.kde.org --startupid tui.site;1376288213;714460;2768_TIME14982720
user   24925  0.0  0.0      0	  0 ?	     Z    18:16   0:00 [kmail] <defunct>

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

Thread 4 (Thread 0x2ae1626e9700 (LWP 23356)):
#0  0x00002ae147f05964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002ae1531a27c7 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/libQtWebKit.so.4
#2  0x00002ae1531a27f9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#3  0x00002ae147f01e0f in start_thread () from /lib64/libpthread.so.0
#4  0x00002ae145d5b7dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x2ae162a02700 (LWP 23357)):
#0  0x00007fff36fff743 in clock_gettime ()
#1  0x00002ae145d6d53d in clock_gettime () from /lib64/libc.so.6
#2  0x00002ae145350d94 in do_gettime (frac=0x2ae162a01b58, sec=0x2ae162a01b50) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00002ae145425bed in QTimerInfoList::updateCurrentTime (this=this@entry=0x2469ba0) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00002ae145425f33 in QTimerInfoList::timerWait (this=0x2469ba0, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x00002ae14542499c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x2ae162a01c44) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00002ae145424a45 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00002ae14da75338 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00002ae14da759cb in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00002ae14da75bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00002ae1454252e6 in QEventDispatcherGlib::processEvents (this=0x23345e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00002ae1453f5adf in QEventLoop::processEvents (this=this@entry=0x2ae162a01e00, flags=...) at kernel/qeventloop.cpp:149
#13 0x00002ae1453f5d68 in QEventLoop::exec (this=0x2ae162a01e00, flags=...) at kernel/qeventloop.cpp:204
#14 0x00002ae1452f80f0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00002ae1452fb0cc in QThreadPrivate::start (arg=0x257e550) at thread/qthread_unix.cpp:338
#16 0x00002ae147f01e0f in start_thread () from /lib64/libpthread.so.0
#17 0x00002ae145d5b7dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x2ae1a6b87700 (LWP 24312)):
#0  0x00002ae14dab2810 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00002ae14dab2a69 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00002ae14da75343 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00002ae14da759cb in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00002ae14da75bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00002ae1454252e6 in QEventDispatcherGlib::processEvents (this=0x4811180, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00002ae1453f5adf in QEventLoop::processEvents (this=this@entry=0x2ae1a6b86dd0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00002ae1453f5d68 in QEventLoop::exec (this=0x2ae1a6b86dd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00002ae1452f80f0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00002ae1453d629f in QInotifyFileSystemWatcherEngine::run (this=0x5530fd0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00002ae1452fb0cc in QThreadPrivate::start (arg=0x5530fd0) at thread/qthread_unix.cpp:338
#11 0x00002ae147f01e0f in start_thread () from /lib64/libpthread.so.0
#12 0x00002ae145d5b7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x2ae15bd2ac00 (LWP 23353)):
[KCrash Handler]
#6  0x00002ae14533fd76 in QString::operator== (this=0x562da70, other=...) at tools/qstring.cpp:2192
#7  0x00002ae1437a26f4 in KStatusNotifierItem::setToolTipSubTitle (this=0x245ca20, subTitle=...) at /usr/src/debug/kdelibs-4.10.5/kdeui/notifications/kstatusnotifieritem.cpp:419
#8  0x00002ae14427242f in KMail::KMSystemTray::unreadMail (this=this@entry=0x245ca20, model=model@entry=0x20dd4d0, parentIndex=...) at /usr/src/debug/kdepim-4.10.5/kmail/kmsystemtray.cpp:395
#9  0x00002ae1442722c0 in KMail::KMSystemTray::unreadMail (this=this@entry=0x245ca20, model=model@entry=0x20dd4d0, parentIndex=...) at /usr/src/debug/kdepim-4.10.5/kmail/kmsystemtray.cpp:388
#10 0x00002ae1442722c0 in KMail::KMSystemTray::unreadMail (this=this@entry=0x245ca20, model=model@entry=0x20dd4d0, parentIndex=...) at /usr/src/debug/kdepim-4.10.5/kmail/kmsystemtray.cpp:388
#11 0x00002ae144272603 in KMail::KMSystemTray::initListOfCollection (this=0x245ca20) at /usr/src/debug/kdepim-4.10.5/kmail/kmsystemtray.cpp:354
#12 0x00002ae14427f0e0 in KMKernel::toggleSystemTray (this=0x7fff36f62040) at /usr/src/debug/kdepim-4.10.5/kmail/kmkernel.cpp:2063
#13 0x00002ae1442d0bd7 in KMMainWidget::readConfig (this=this@entry=0x4491b30) at /usr/src/debug/kdepim-4.10.5/kmail/kmmainwidget.cpp:980
#14 0x00002ae1442d10e1 in KMMainWidget::KMMainWidget (this=0x4491b30, parent=<optimized out>, aGUIClient=0x254e330, actionCollection=<optimized out>, config=...) at /usr/src/debug/kdepim-4.10.5/kmail/kmmainwidget.cpp:267
#15 0x00002ae14423225b in KMMainWin::KMMainWin (this=0x254e2d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.5/kmail/kmmainwin.cpp:67
#16 0x00002ae1442825ff in KMKernel::openReader (this=0x7fff36f62040, onlyCheck=onlyCheck@entry=false) at /usr/src/debug/kdepim-4.10.5/kmail/kmkernel.cpp:578
#17 0x00002ae144282800 in KMKernel::action (this=this@entry=0x7fff36f62040, mailto=mailto@entry=false, check=check@entry=false, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=...) at /usr/src/debug/kdepim-4.10.5/kmail/kmkernel.cpp:1372
#18 0x00002ae144283157 in KMKernel::handleCommandLine (this=0x7fff36f62040, noArgsOpensReader=true) at /usr/src/debug/kdepim-4.10.5/kmail/kmkernel.cpp:494
#19 0x00000000004034e7 in KMailApplication::newInstance (this=0x7fff36f62010) at /usr/src/debug/kdepim-4.10.5/kmail/main.cpp:87
#20 0x00002ae143690ad2 in KUniqueApplicationAdaptor::newInstance (this=0x1e60800, asn_id=..., args=...) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kuniqueapplication.cpp:442
#21 0x00002ae143690b54 in qt_static_metacall (_a=0x7fff36f61060, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.10.5/build/kdeui/kuniqueapplication_p.moc:58
#22 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fff36f61060) at /usr/src/debug/kdelibs-4.10.5/build/kdeui/kuniqueapplication_p.moc:52
#23 0x00002ae143690c8b in KUniqueApplicationAdaptor::qt_metacall (this=0x1e60800, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff36f61060) at /usr/src/debug/kdelibs-4.10.5/build/kdeui/kuniqueapplication_p.moc:102
#24 0x00002ae147ca0d8a in QDBusConnectionPrivate::deliverCall (this=this@entry=0x1cc86e0, object=object@entry=0x1e60800, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:951
#25 0x00002ae147ca1f05 in QDBusConnectionPrivate::activateCall (this=this@entry=0x1cc86e0, object=0x1e60800, flags=flags@entry=337, msg=...) at qdbusintegrator.cpp:863
#26 0x00002ae147ca2876 in QDBusConnectionPrivate::activateObject (this=0x1cc86e0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#27 0x00002ae147ca296b in QDBusActivateObjectEvent::placeMetaCall (this=0x3db8ec0) at qdbusintegrator.cpp:1541
#28 0x00002ae14540b77e in QObject::event (this=0x7fff36f62010, e=<optimized out>) at kernel/qobject.cpp:1203
#29 0x00002ae1447a2974 in QApplication::event (this=0x7fff36f62010, e=0x3db8ec0) at kernel/qapplication.cpp:2544
#30 0x00002ae1447a086c in QApplicationPrivate::notify_helper (this=this@entry=0x1ce3f60, receiver=receiver@entry=0x7fff36f62010, e=e@entry=0x3db8ec0) at kernel/qapplication.cpp:4562
#31 0x00002ae1447a4ceb in QApplication::notify (this=0x7fff36f62010, receiver=0x7fff36f62010, e=0x3db8ec0) at kernel/qapplication.cpp:4423
#32 0x00002ae14368a7f6 in KApplication::notify (this=0x7fff36f62010, receiver=0x7fff36f62010, event=0x3db8ec0) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#33 0x00002ae1453f6d8e in QCoreApplication::notifyInternal (this=0x7fff36f62010, receiver=receiver@entry=0x7fff36f62010, event=event@entry=0x3db8ec0) at kernel/qcoreapplication.cpp:946
#34 0x00002ae1453fa6f1 in sendEvent (event=0x3db8ec0, receiver=0x7fff36f62010) at kernel/qcoreapplication.h:231
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c7b210) at kernel/qcoreapplication.cpp:1570
#36 0x00002ae145425133 in sendPostedEvents () at kernel/qcoreapplication.h:236
#37 postEventSourceDispatch (s=0x1ce5540) at kernel/qeventdispatcher_glib.cpp:279
#38 0x00002ae14da757d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#39 0x00002ae14da75b08 in ?? () from /usr/lib64/libglib-2.0.so.0
#40 0x00002ae14da75bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#41 0x00002ae1454252c6 in QEventDispatcherGlib::processEvents (this=0x1cce2e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#42 0x00002ae144840c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00002ae1453f5adf in QEventLoop::processEvents (this=this@entry=0x7fff36f61c90, flags=...) at kernel/qeventloop.cpp:149
#44 0x00002ae1453f5d68 in QEventLoop::exec (this=0x7fff36f61c90, flags=...) at kernel/qeventloop.cpp:204
#45 0x00002ae1453faa08 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#46 0x0000000000402e8d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.10.5/kmail/main.cpp:146

Possible duplicates by query: bug 319574.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-08-12 07:24:54 UTC

*** This bug has been marked as a duplicate of bug 319574 ***
Comment 2 Eugene Shalygin 2014-02-12 18:30:28 UTC
I have the same problem: KMail does not terminate its process when I close it. Also Kontact with KMail does not terminate too. If I attach with GDB to such a kmail, it shows the following:
(gdb) info threads
  Id   Target Id         Frame 
  5    Thread 0x7f475b682700 (LWP 11958) "QProcessManager" 0x00007f477ac5fb33 in select () from /lib64/libc.so.6
  4    Thread 0x7f475ab1d700 (LWP 11961) "kmail" 0x00007f4778c9310c in pthread_cond_wait () from /lib64/libpthread.so.0
  3    Thread 0x7f475a21c700 (LWP 11963) "QThread" 0x00007f477ac5d64d in poll () from /lib64/libc.so.6
  2    Thread 0x7f470362b700 (LWP 12004) "Thread (pooled)" 0x00007f4778c934de in pthread_cond_timedwait () from /lib64/libpthread.so.0
* 1    Thread 0x7f477d8f8780 (LWP 11925) "kmail" 0x00007f477ac5d64d in poll () from /lib64/libc.so.6

KMail 4.12.2
Comment 3 Eugene Shalygin 2014-02-12 18:44:24 UTC
I believe that the cause of the problem is here, but not in the bug 319574, i.e. that KMail does not terminate correctly