Application: kmail (5.1) Qt Version: 5.5.1 Operating System: Linux 4.2.6-1-CHAKRA x86_64 Distribution: "Chakra" -- Information about the crash: After updating to 15.12 KMail crashes on exit with segmentation fault. The crash can be reproduced every time. -- Backtrace: Application: KMail (kmail), signal: Segmentation fault Using host libthread_db library "/usr/lib/libthread_db.so.1". [Current thread is 1 (Thread 0x7f9dbee8e840 (LWP 26611))] Thread 12 (Thread 0x7f9dbdca6700 (LWP 26680)): #0 0x00007f9dddf8118d in poll () at /usr/lib/libc.so.6 #1 0x00007f9dd1c98ae2 in () at /usr/lib/libxcb.so.1 #2 0x00007f9dd1c9a757 in xcb_wait_for_event () at /usr/lib/libxcb.so.1 #3 0x00007f9dbed9a329 in QXcbEventReader::run() (this=0x20c28a0) at qxcbconnection.cpp:1229 #4 0x00007f9dde882b7e in QThreadPrivate::start(void*) (arg=0x20c28a0) at thread/qthread_unix.cpp:331 #5 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #6 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 11 (Thread 0x7f9db7df9700 (LWP 26681)): #0 0x00007f9dddf96712 in __libc_disable_asynccancel () at /usr/lib/libc.so.6 #1 0x00007f9dddf81199 in poll () at /usr/lib/libc.so.6 #2 0x00007f9dd2e12ca4 in () at /usr/lib/libglib-2.0.so.0 #3 0x00007f9dd2e12dbc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #4 0x00007f9ddeaba5ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9db00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420 #5 0x00007f9ddea615ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9db7df8d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #6 0x00007f9dde87dbd4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503 #7 0x00007f9dde882b7e in QThreadPrivate::start(void*) (arg=0x2193b10) at thread/qthread_unix.cpp:331 #8 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #9 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 10 (Thread 0x7f9d9e36a700 (LWP 26824)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dcff0fdeb in () at /usr/lib/libQt5WebKit.so.5 #2 0x00007f9dcff0fe29 in () at /usr/lib/libQt5WebKit.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 9 (Thread 0x7f9d4fffd700 (LWP 27147)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dcfc1cbb4 in () at /usr/lib/libQt5WebKit.so.5 #2 0x00007f9dcff3fc61 in () at /usr/lib/libQt5WebKit.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 8 (Thread 0x7f9d4f7fc700 (LWP 27148)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dcfc1dbe3 in () at /usr/lib/libQt5WebKit.so.5 #2 0x00007f9dcff3fc61 in () at /usr/lib/libQt5WebKit.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 7 (Thread 0x7f9d4effb700 (LWP 27149)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dcfc1dbe3 in () at /usr/lib/libQt5WebKit.so.5 #2 0x00007f9dcff3fc61 in () at /usr/lib/libQt5WebKit.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 6 (Thread 0x7f9d4e7fa700 (LWP 27150)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dcfc1dbe3 in () at /usr/lib/libQt5WebKit.so.5 #2 0x00007f9dcff3fc61 in () at /usr/lib/libQt5WebKit.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 5 (Thread 0x7f9d4d1e6700 (LWP 27409)): #0 0x00007f9de07fa595 in __tls_get_addr () at /lib64/ld-linux-x86-64.so.2 #1 0x00007f9dde881ac2 in QThreadData::current(bool) () at thread/qthread_unix.cpp:181 #2 0x00007f9dde881ac2 in QThreadData::current(bool) (createIfNecessary=createIfNecessary@entry=true) at thread/qthread_unix.cpp:212 #3 0x00007f9ddeab9b0a in postEventSourcePrepare(GSource*, gint*) (s=0x7f9d2c0012d0, timeout=0x7f9d4d1e5bc4) at kernel/qeventdispatcher_glib.cpp:247 #4 0x00007f9dd2e1222d in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0 #5 0x00007f9dd2e12bcb in () at /usr/lib/libglib-2.0.so.0 #6 0x00007f9dd2e12dbc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #7 0x00007f9ddeaba5ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9d2c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420 #8 0x00007f9ddea615ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9d4d1e5d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #9 0x00007f9dde87dbd4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503 #10 0x00007f9dde882b7e in QThreadPrivate::start(void*) (arg=0x2851ca0) at thread/qthread_unix.cpp:331 #11 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #12 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 4 (Thread 0x7f9d27fff700 (LWP 27501)): #0 0x00007fff22997a38 in clock_gettime () #1 0x00007f9dddf96d26 in clock_gettime () at /usr/lib/libc.so.6 #2 0x00007f9dde933256 in qt_gettime() (ts=0x7f9d27ffeaf0, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:105 #3 0x00007f9dde933256 in qt_gettime() (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:156 #4 0x00007f9dde933256 in qt_gettime() () at tools/qelapsedtimer_unix.cpp:165 #5 0x00007f9ddeab8039 in QTimerInfoList::updateCurrentTime() (this=this@entry=0x7f9d200030d0) at kernel/qtimerinfo_unix.cpp:84 #6 0x00007f9ddeab85a5 in QTimerInfoList::timerWait(timespec&) (this=0x7f9d200030d0, tm=...) at kernel/qtimerinfo_unix.cpp:381 #7 0x00007f9ddeab998e in timerSourcePrepare(GSource*, gint*) (timeout=0x7f9d27ffebc4, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:127 #8 0x00007f9ddeab998e in timerSourcePrepare(GSource*, gint*) (source=<optimized out>, timeout=0x7f9d27ffebc4) at kernel/qeventdispatcher_glib.cpp:160 #9 0x00007f9dd2e1222d in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0 #10 0x00007f9dd2e12bcb in () at /usr/lib/libglib-2.0.so.0 #11 0x00007f9dd2e12dbc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #12 0x00007f9ddeaba5ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9d200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420 #13 0x00007f9ddea615ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9d27ffed80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #14 0x00007f9dde87dbd4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503 #15 0x00007f9dde882b7e in QThreadPrivate::start(void*) (arg=0x2a675d0) at thread/qthread_unix.cpp:331 #16 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #17 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 3 (Thread 0x7f9d271ba700 (LWP 27542)): #0 0x00007f9dddf8118d in poll () at /usr/lib/libc.so.6 #1 0x00007f9dd2e12ca4 in () at /usr/lib/libglib-2.0.so.0 #2 0x00007f9dd2e12dbc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #3 0x00007f9ddeaba5ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f9d180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420 #4 0x00007f9ddea615ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f9d271b9d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #5 0x00007f9dde87dbd4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503 #6 0x00007f9dde882b7e in QThreadPrivate::start(void*) (arg=0x28cb230) at thread/qthread_unix.cpp:331 #7 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #8 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 2 (Thread 0x7f9d25f70700 (LWP 30508)): #0 0x00007f9dd4b4903f in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007f9dc1e7ff64 in () at /usr/lib/libQt5Script.so.5 #2 0x00007f9dc1e7ffa9 in () at /usr/lib/libQt5Script.so.5 #3 0x00007f9dd4b43464 in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007f9dddf8a12d in clone () at /usr/lib/libc.so.6 Thread 1 (Thread 0x7f9dbee8e840 (LWP 26611)): [KCrash Handler] #6 0x0000000000000018 in () #7 0x00007f9dd889f31c in QtPrivate::QFunctorSlotObject<Akonadi::SessionPrivate::SessionPrivate(Akonadi::Session*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (__closure=<synthetic pointer>) at /chakra/desktop/kdepimlibs/src/kdepimlibs-15.12.0/akonadi/src/core/session.cpp:306 #8 0x00007f9dd889f31c in QtPrivate::QFunctorSlotObject<Akonadi::SessionPrivate::SessionPrivate(Akonadi::Session*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:495 #9 0x00007f9dd889f31c in QtPrivate::QFunctorSlotObject<Akonadi::SessionPrivate::SessionPrivate(Akonadi::Session*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:552 #10 0x00007f9dd889f31c in QtPrivate::QFunctorSlotObject<Akonadi::SessionPrivate::SessionPrivate(Akonadi::Session*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt5/QtCore/qobject_impl.h:192 #11 0x00007f9ddea921f7 in QMetaObject::activate(QObject*, int, int, void**) (a=0x7fff2283b990, r=0x7fff2283c060, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124 #12 0x00007f9ddea921f7 in QMetaObject::activate(QObject*, int, int, void**) (sender=0x7fff2283c060, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3698 #13 0x00007f9ddea92b67 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7f9ddecab520 <QCoreApplication::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3578 #14 0x00007f9ddeb11c50 in QCoreApplication::aboutToQuit(QCoreApplication::QPrivateSignal) (this=<optimized out>) at .moc/moc_qcoreapplication.cpp:242 #15 0x00007f9ddea695f3 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1234 #16 0x00007f9dded9bd2c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1527 #17 0x00007f9ddf82fdf5 in QApplication::exec() () at kernel/qapplication.cpp:2976 #18 0x0000000000404188 in main(int, char**) (argc=1, argv=0x7fff2283c298) at /chakra/desktop/kdepim/src/kdepim-15.12.0/kmail/main.cpp:151 Reported using DrKonqi
Fwiw, this commit should fix this issue: https://quickgit.kde.org/?p=kdepimlibs.git&a=commit&h=c6bf33a9018587e96a350bfd0b2bffde1859db27
*** Bug 356595 has been marked as a duplicate of this bug. ***
Same here (Arch Linux). KAddressbook (5.1), KOrganizer (5.1) and Kontact crash on exit, too.
KMail crashed here on exit, too. After I applied the patches from https://quickgit.kde.org/?p=kdepimlibs.git&a=commit&h=c6bf33a9018587e96a350bfd0b2bffde1859db27 and re-compiled the kdepimlibs I could exit KMail without a crash. Seems that it works for me (Arch Linux)
Same crash on Arch Linux with new version of kmail. Additionally sometimes I see crashes of akonadi resources for IMAP accounts when closing the system.
Has already been patched & fixed for Arch users.
Thanks for the heads up - I updated the system and it indeed works fine with the patches Arch maintainers applied.