Bug 300220

Summary: Kmail nerver return after suspend & crash at exit
Product: [Applications] kmail2 Reporter: Bruno Friedmann <bruno>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: vkrevs
Priority: NOR    
Version: 4.8.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bruno Friedmann 2012-05-18 06:15:01 UTC
Application: kmail (4.8.3)
KDE Platform Version: 4.8.3 (4.8.3) "release 503"
Qt Version: 4.8.1
Operating System: Linux 3.1.10-1.9-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: I've worked all the day, and suspend the laptop at one place, then resume it at another network
(ipv4 on first place, ipv6 on the second place).

Emails are not accessible, click on one, show empty message panel with loading.
Closing by quit kmail give this crash

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f3c356b3780 (LWP 9569))]

Thread 3 (Thread 0x7f3c17405700 (LWP 9574)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3c26eafc12 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f3c2784e1a0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00007f3c26eafc49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00007f3c307fef05 in start_thread (arg=0x7f3c17405700) at pthread_create.c:301
#4  0x00007f3c329f910d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f3c16b04700 (LWP 9575)):
#0  0x00007f3c329efff3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f3c2abcba98 in g_main_context_poll (n_fds=1, fds=0x7f3c100013e0, timeout=9088, context=0x7f3c100009a0, priority=<optimized out>) at gmain.c:3386
#2  g_main_context_iterate (context=0x7f3c100009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00007f3c2abcbf59 in g_main_context_iteration (context=0x7f3c100009a0, may_block=1) at gmain.c:3136
#4  0x00007f3c340562e6 in QEventDispatcherGlib::processEvents (this=0x7f3c100008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f3c34026012 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f3c34026267 in QEventLoop::exec (this=0x7f3c16b03e00, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f3c33f26547 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f3c33f2956b in QThreadPrivate::start (arg=0xb660b0) at thread/qthread_unix.cpp:298
#9  0x00007f3c307fef05 in start_thread (arg=0x7f3c16b04700) at pthread_create.c:301
#10 0x00007f3c329f910d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f3c356b3780 (LWP 9569)):
[KCrash Handler]
#6  0x00007f3c32952d95 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3c329542ab in __GI_abort () at abort.c:93
#8  0x00007f3c33f1ec94 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2252
#9  0x00007f3c33f1ee4f in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f3c2f1483e0 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff648c79d8) at global/qglobal.cpp:2298
#10 0x00007f3c33f1eff4 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2481
#11 0x00007f3c2f037342 in operator-> (this=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.3/akonadi/control.cpp:74
#12 0x00007f3c2f0b7a80 in operator-> (this=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.3/akonadi/control.cpp:74
#13 Akonadi::Control::widgetNeedsAkonadi (widget=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.3/akonadi/control.cpp:252
#14 0x00007f3c344aef89 in KMMainWidget::KMMainWidget (this=0x18e80f0, parent=<optimized out>, aGUIClient=0x20630c0, actionCollection=<optimized out>, config=...) at /usr/src/debug/kdepim-4.8.3/kmail/kmmainwidget.cpp:241
#15 0x00007f3c34418975 in KMMainWin::KMMainWin (this=0x2063060, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.8.3/kmail/kmmainwin.cpp:65
#16 0x00007f3c34463067 in KMKernel::openReader (this=0x7fff648c93e0, onlyCheck=false) at /usr/src/debug/kdepim-4.8.3/kmail/kmkernel.cpp:561
#17 0x00007f3c34464348 in KMKernel::action (this=0x7fff648c93e0, mailto=<optimized out>, check=false, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=...) at /usr/src/debug/kdepim-4.8.3/kmail/kmkernel.cpp:1309
#18 0x00007f3c34464e3f in KMKernel::handleCommandLine (this=0x7fff648c93e0, noArgsOpensReader=true) at /usr/src/debug/kdepim-4.8.3/kmail/kmkernel.cpp:477
#19 0x0000000000403457 in KMailApplication::newInstance (this=0x7fff648c94b0) at /usr/src/debug/kdepim-4.8.3/kmail/main.cpp:85
#20 0x00007f3c350dc0b2 in KUniqueApplicationAdaptor::newInstance (this=0x8496d0, asn_id=<optimized out>, args=...) at /usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kuniqueapplication.cpp:442
#21 0x00007f3c350dc134 in qt_static_metacall (_a=0x7fff648c8640, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.8.3/build/kdeui/kuniqueapplication_p.moc:58
#22 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fff648c8640) at /usr/src/debug/kdelibs-4.8.3/build/kdeui/kuniqueapplication_p.moc:52
#23 0x00007f3c350dc27b in KUniqueApplicationAdaptor::qt_metacall (this=0x8496d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff648c8640) at /usr/src/debug/kdelibs-4.8.3/build/kdeui/kuniqueapplication_p.moc:102
#24 0x00007f3c30a38f6b in QDBusConnectionPrivate::deliverCall (this=0x653c30, object=0x8496d0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#25 0x00007f3c30a3a13d in QDBusConnectionPrivate::activateCall (this=0x653c30, object=0x8496d0, flags=337, msg=...) at qdbusintegrator.cpp:857
#26 0x00007f3c30a3aa9b in QDBusConnectionPrivate::activateObject (this=0x653c30, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#27 0x00007f3c30a3ab8b in QDBusActivateObjectEvent::placeMetaCall (this=0x6da530) at qdbusintegrator.cpp:1537
#28 0x00007f3c340402b6 in QObject::event (this=0x7fff648c94b0, e=<optimized out>) at kernel/qobject.cpp:1204
#29 0x00007f3c333affd4 in QApplication::event (this=0x7fff648c94b0, e=0x6da530) at kernel/qapplication.cpp:2536
#30 0x00007f3c333ac0d4 in notify_helper (e=0x6da530, receiver=0x7fff648c94b0, this=0x667f40) at kernel/qapplication.cpp:4554
#31 QApplicationPrivate::notify_helper (this=0x667f40, receiver=0x7fff648c94b0, e=0x6da530) at kernel/qapplication.cpp:4526
#32 0x00007f3c333b0f53 in QApplication::notify (this=0x7fff648c94b0, receiver=0x7fff648c94b0, e=0x6da530) at kernel/qapplication.cpp:4415
#33 0x00007f3c350d68f6 in KApplication::notify (this=0x7fff648c94b0, receiver=0x7fff648c94b0, event=0x6da530) at /usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#34 0x00007f3c3402722c in QCoreApplication::notifyInternal (this=0x7fff648c94b0, receiver=0x7fff648c94b0, event=0x6da530) at kernel/qcoreapplication.cpp:876
#35 0x00007f3c3402aaca in sendEvent (event=0x6da530, receiver=0x7fff648c94b0) at kernel/qcoreapplication.h:231
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60b740) at kernel/qcoreapplication.cpp:1500
#37 0x00007f3c34055e53 in sendPostedEvents () at kernel/qcoreapplication.h:236
#38 postEventSourceDispatch (s=0x675b40) at kernel/qeventdispatcher_glib.cpp:279
#39 0x00007f3c2abcb58d in g_main_dispatch (context=0x674930) at gmain.c:2425
#40 g_main_context_dispatch (context=0x674930) at gmain.c:2995
#41 0x00007f3c2abcbd88 in g_main_context_iterate (context=0x674930, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#42 0x00007f3c2abcbf59 in g_main_context_iteration (context=0x674930, may_block=1) at gmain.c:3136
#43 0x00007f3c3405627f in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#44 0x00007f3c3344f76e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007f3c34026012 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#46 0x00007f3c34026267 in QEventLoop::exec (this=0x7fff648c9340, flags=...) at kernel/qeventloop.cpp:204
#47 0x00007f3c34aec736 in KJob::exec (this=0xaf9330) at /usr/src/debug/kdelibs-4.8.3/kdecore/jobs/kjob.cpp:210
#48 0x00007f3c34466e68 in KMKernel::cleanup (this=0x7fff648c93e0) at /usr/src/debug/kdepim-4.8.3/kmail/kmkernel.cpp:1260
#49 0x0000000000402dff in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.8.3/kmail/main.cpp:147

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

Possible duplicates by query: bug 300059, bug 294752, bug 286605, bug 286172, bug 281038.

Reported using DrKonqi
Comment 1 Bruno Friedmann 2012-05-18 06:45:43 UTC
Found an interesting cause : logrotate crash rotating mysql log. and thus mysql was no more available for connections. 
Akanodi have the correct message in its log about Mysql disappear. But this time kmail didn't react like when you stop akonadi ...
Comment 2 Jekyll Wu 2012-10-14 18:56:43 UTC
*** Bug 308390 has been marked as a duplicate of this bug. ***
Comment 3 Denis Kurz 2016-09-24 17:58:59 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 4 Denis Kurz 2017-01-07 22:28:23 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.