Bug 346257

Summary: KMail fails to retrieve IMAP messages, then crashes when restarting
Product: [Applications] kmail2 Reporter: johannes.willkomm
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andysem, kdenis
Priority: NOR Keywords: drkonqi
Version: 4.14.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description johannes.willkomm 2015-04-16 11:12:10 UTC
Application: kmail (4.14.1)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-4-amd64 x86_64
Distribution: Debian GNU/Linux 8.0 (jessie)

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

KMail failed to synchronize with IMAP servers and retrieve new messages.
Then, when I close KMail, do a killall kmail and restart KMail, it crashed

- Unusual behavior I noticed:

Since an update to a new kdepim-runtime package in my Debian Testing in last autumn, I experience this problem

This happens sometimes but relatively often. In the other cases, Kmail starts up but still does not retrieve the new messages. The only thing that helps is stopping and restarting Akonadi

The crash can be reproduced sometimes.

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

Thread 4 (Thread 0x7f15fbb95700 (LWP 19013)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f1616e9e06f in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f1616e9e0a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f16203aa0a4 in start_thread (arg=0x7f15fbb95700) at pthread_create.c:309
#4  0x00007f1622af504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f15fa366700 (LWP 19014)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f1616bc0973 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f1616ecd7f6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f16203aa0a4 in start_thread (arg=0x7f15fa366700) at pthread_create.c:309
#4  0x00007f1622af504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f15f965d700 (LWP 19021)):
#0  0x00007f1622aec50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f161a7d6ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f161a7d6ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f162348ed37 in QEventDispatcherGlib::processEvents (this=0x7f15a40008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f162345e271 in QEventLoop::processEvents (this=this@entry=0x7f15f965cdd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f162345e5d5 in QEventLoop::exec (this=this@entry=0x7f15f965cdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f1623352e99 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f162335570f in QThreadPrivate::start (arg=0x22aff20) at thread/qthread_unix.cpp:349
#8  0x00007f16203aa0a4 in start_thread (arg=0x7f15f965d700) at pthread_create.c:309
#9  0x00007f1622af504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f1625879800 (LWP 18766)):
[KCrash Handler]
#6  QString::operator== (this=0x2522e08, other=...) at tools/qstring.cpp:2192
#7  0x00007f16253b18cc in KStatusNotifierItem::setToolTipSubTitle (this=this@entry=0x2522d50, subTitle=...) at ../../kdeui/notifications/kstatusnotifieritem.cpp:419
#8  0x00007f162456363e in KMail::KMSystemTray::unreadMail (this=this@entry=0x2522d50, model=model@entry=0x1e69520, parentIndex=...) at ../../kmail/kmsystemtray.cpp:415
#9  0x00007f162456351d in KMail::KMSystemTray::unreadMail (this=this@entry=0x2522d50, model=model@entry=0x1e69520, parentIndex=...) at ../../kmail/kmsystemtray.cpp:408
#10 0x00007f162456351d in KMail::KMSystemTray::unreadMail (this=this@entry=0x2522d50, model=model@entry=0x1e69520, parentIndex=...) at ../../kmail/kmsystemtray.cpp:408
#11 0x00007f1624563825 in KMail::KMSystemTray::initListOfCollection (this=0x2522d50) at ../../kmail/kmsystemtray.cpp:375
#12 0x00007f1624563eff in updateSystemTray (this=<optimized out>) at ../../kmail/kmsystemtray.cpp:437
#13 KMail::KMSystemTray::setShowUnreadCount (this=<optimized out>, showUnreadCount=<optimized out>) at ../../kmail/kmsystemtray.cpp:154
#14 0x00007f162456c9bd in KMKernel::toggleSystemTray (this=0x7fff901c2f20) at ../../kmail/kmkernel.cpp:2060
#15 0x00007f162459f63f in KMMainWidget::readConfig (this=this@entry=0x22963e0) at ../../kmail/kmmainwidget.cpp:875
#16 0x00007f16245ade81 in KMMainWidget::KMMainWidget (this=0x22963e0, parent=<optimized out>, aGUIClient=0x2613660, actionCollection=<optimized out>, config=...) at ../../kmail/kmmainwidget.cpp:271
#17 0x00007f162455a854 in KMMainWin::KMMainWin (this=0x2613600, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmmainwin.cpp:67
#18 0x00007f162456b527 in KMKernel::openReader (this=this@entry=0x7fff901c2f20, onlyCheck=onlyCheck@entry=false) at ../../kmail/kmkernel.cpp:532
#19 0x00007f162456fb94 in KMKernel::action (this=this@entry=0x7fff901c2f20, mailto=mailto@entry=false, check=check@entry=false, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=..., replyTo=..., inReplyTo=...) at ../../kmail/kmkernel.cpp:1363
#20 0x00007f1624570b17 in KMKernel::handleCommandLine (this=0x7fff901c2f20, noArgsOpensReader=noArgsOpensReader@entry=true) at ../../kmail/kmkernel.cpp:441
#21 0x000000000040345b in KMailApplication::newInstance (this=0x7fff901c2ef0) at ../../kmail/main.cpp:87
#22 0x00007f162528e6ca in KUniqueApplicationAdaptor::newInstance (this=0x1e6b470, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#23 0x00007f162528e7ad in KUniqueApplicationAdaptor::qt_static_metacall (_o=_o@entry=0x1e6b470, _id=_id@entry=0, _a=_a@entry=0x7fff901c2240, _c=QMetaObject::InvokeMetaMethod) at ./kuniqueapplication_p.moc:57
#24 0x00007f162528e9b3 in qt_static_metacall (_a=0x7fff901c2240, _id=0, _c=QMetaObject::InvokeMetaMethod, _o=0x1e6b470) at ./kuniqueapplication_p.moc:100
#25 KUniqueApplicationAdaptor::qt_metacall (this=0x1e6b470, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff901c2240) at ./kuniqueapplication_p.moc:101
#26 0x00007f1620f326c6 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x1caa250, object=object@entry=0x1e6b470, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:951
#27 0x00007f1620f338db in QDBusConnectionPrivate::activateCall (this=this@entry=0x1caa250, object=0x1e6b470, flags=flags@entry=337, msg=...) at qdbusintegrator.cpp:863
#28 0x00007f1620f342f0 in QDBusConnectionPrivate::activateObject (this=0x1caa250, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#29 0x00007f1620f3447b in QDBusActivateObjectEvent::placeMetaCall (this=0x2618a90) at qdbusintegrator.cpp:1541
#30 0x00007f1623478e11 in QObject::event (this=this@entry=0x7fff901c2ef0, e=e@entry=0x2618a90) at kernel/qobject.cpp:1222
#31 0x00007f1623463f9c in QCoreApplication::event (this=this@entry=0x7fff901c2ef0, e=e@entry=0x2618a90) at kernel/qcoreapplication.cpp:1767
#32 0x00007f16239947a3 in QApplication::event (this=0x7fff901c2ef0, e=0x2618a90) at kernel/qapplication.cpp:2549
#33 0x00007f162398f48c in QApplicationPrivate::notify_helper (this=this@entry=0x1cc2aa0, receiver=receiver@entry=0x7fff901c2ef0, e=e@entry=0x2618a90) at kernel/qapplication.cpp:4570
#34 0x00007f1623995fa8 in QApplication::notify (this=this@entry=0x7fff901c2ef0, receiver=receiver@entry=0x7fff901c2ef0, e=e@entry=0x2618a90) at kernel/qapplication.cpp:4356
#35 0x00007f16252871aa in KApplication::notify (this=0x7fff901c2ef0, receiver=0x7fff901c2ef0, event=0x2618a90) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007f162345f71d in QCoreApplication::notifyInternal (this=0x7fff901c2ef0, receiver=receiver@entry=0x7fff901c2ef0, event=event@entry=0x2618a90) at kernel/qcoreapplication.cpp:955
#37 0x00007f1623462fc1 in sendEvent (event=0x2618a90, receiver=0x7fff901c2ef0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1bd7220) at kernel/qcoreapplication.cpp:1579
#39 0x00007f1623463453 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#40 0x00007f162348ebd3 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#41 postEventSourceDispatch (s=0x1cc1760) at kernel/qeventdispatcher_glib.cpp:280
#42 0x00007f161a7d6c5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f161a7d6f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f161a7d6ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f162348ed1d in QEventDispatcherGlib::processEvents (this=0x1bd8b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#46 0x00007f1623a33f96 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007f162345e271 in QEventLoop::processEvents (this=this@entry=0x7fff901c2b30, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007f162345e5d5 in QEventLoop::exec (this=this@entry=0x7fff901c2b30, flags=...) at kernel/qeventloop.cpp:204
#49 0x00007f1623464059 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#50 0x00007f162398d92c in QApplication::exec () at kernel/qapplication.cpp:3828
#51 0x0000000000402d9b in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:146

Possible duplicates by query: bug 342329, bug 341938, bug 340014.

Reported using DrKonqi
Comment 1 Lastique 2015-06-07 23:46:27 UTC
Created attachment 93064 [details]
New crash information added by DrKonqi

kmail (4.14.7) on KDE Platform 4.14.8 using Qt 4.8.6

- What I was doing when the application crashed:

I started kmail and it crashed immediately.

-- Backtrace (Reduced):
#6  QString::operator== (this=0x7365636f72703013, other=...) at tools/qstring.cpp:2192
#7  0x00007fc56d11bdac in KStatusNotifierItem::setToolTipSubTitle (this=this@entry=0x17c83c0, subTitle=...) at ../../kdeui/notifications/kstatusnotifieritem.cpp:419
#8  0x00007fc56c2eb91e in KMail::KMSystemTray::unreadMail (this=this@entry=0x17c83c0, model=model@entry=0x110d470, parentIndex=...) at ../../kmail/kmsystemtray.cpp:420
#9  0x00007fc56c2eb7fd in KMail::KMSystemTray::unreadMail (this=this@entry=0x17c83c0, model=model@entry=0x110d470, parentIndex=...) at ../../kmail/kmsystemtray.cpp:413
#10 0x00007fc56c2eb7fd in KMail::KMSystemTray::unreadMail (this=this@entry=0x17c83c0, model=model@entry=0x110d470, parentIndex=...) at ../../kmail/kmsystemtray.cpp:413
Comment 2 Denis Kurz 2017-01-20 21:47:35 UTC

*** This bug has been marked as a duplicate of bug 340014 ***