Bug 350570

Summary: separation applications in Kontact
Product: [Applications] kontact Reporter: Piotrekw1 <piotrekw1>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: rasasi78, tom-kde.bugs
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Piotrekw1 2015-07-24 05:58:22 UTC
Application: kontact (4.14.6)
KDE Platform Version: 4.14.6 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 4.1.0-1-generic x86_64
Distribution: Ubuntu Wily Werewolf (development branch)

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

Kontact applications appear separately - select from the menu Kontact get the last of the open partial application (eg. Akregator)

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f77e1478880 (LWP 31723))]

Thread 6 (Thread 0x7f77bff27700 (LWP 31724)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f77dc1bc16f in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f77dc1bc1a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f77d87166aa in start_thread (arg=0x7f77bff27700) at pthread_create.c:333
#4  0x00007f77de9e7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f777f60c700 (LWP 31725)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f77dbede1b3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f77dc1ed9c6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f77d87166aa in start_thread (arg=0x7f777f60c700) at pthread_create.c:333
#4  0x00007f77de9e7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f776b8d8700 (LWP 31730)):
#0  0x00007f77de9dc8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f77d8230f7c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f77d823108c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f77df17286e in QEventDispatcherGlib::processEvents (this=0x7f77640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f77df141d11 in QEventLoop::processEvents (this=this@entry=0x7f776b8d7d50, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f77df142075 in QEventLoop::exec (this=this@entry=0x7f776b8d7d50, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f77df035e89 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f77df0386ff in QThreadPrivate::start (arg=0x22c7600) at thread/qthread_unix.cpp:349
#8  0x00007f77d87166aa in start_thread (arg=0x7f776b8d8700) at pthread_create.c:333
#9  0x00007f77de9e7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f7769c30700 (LWP 31735)):
#0  0x00007f77de9dc8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f77d8230f7c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f77d823108c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f77df17286e in QEventDispatcherGlib::processEvents (this=0x7f775c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f77df141d11 in QEventLoop::processEvents (this=this@entry=0x7f7769c2fd00, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f77df142075 in QEventLoop::exec (this=this@entry=0x7f7769c2fd00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f77df035e89 in QThread::exec (this=this@entry=0x3125280) at thread/qthread.cpp:538
#7  0x00007f77df122483 in QInotifyFileSystemWatcherEngine::run (this=0x3125280) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f77df0386ff in QThreadPrivate::start (arg=0x3125280) at thread/qthread_unix.cpp:349
#9  0x00007f77d87166aa in start_thread (arg=0x7f7769c30700) at pthread_create.c:333
#10 0x00007f77de9e7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f774ec31700 (LWP 31862)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7776553a7a in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f7776553aa9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f77d87166aa in start_thread (arg=0x7f774ec31700) at pthread_create.c:333
#4  0x00007f77de9e7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f77e1478880 (LWP 31723)):
[KCrash Handler]
#6  0x00007f77de916267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f77de917eca in __GI_abort () at abort.c:89
#8  0x00007f77df02da8a in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x8cd5fd8 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/kernel/mailkernel.cpp:58") at global/qglobal.cpp:2386
#9  0x00007f77df02ddf9 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7f777526a608 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fffe768f550) at global/qglobal.cpp:2432
#10 0x00007f77df02e6e1 in qFatal (msg=msg@entry=0x7f777526a608 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2615
#11 0x00007f77751adfff in operator-> (this=<optimized out>) at ../../mailcommon/kernel/mailkernel.cpp:58
#12 MailCommon::Kernel::self () at ../../mailcommon/kernel/mailkernel.cpp:75
#13 0x00007f77751f8a13 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x3495210) at ../../mailcommon/folder/foldercollection.cpp:218
#14 0x00007f77751f9232 in MailCommon::FolderCollection::~FolderCollection (this=0x3495210, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:84
#15 0x00007f77751f933f in ~FolderCollection (this=0x3495210, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:86
#16 deref (value=0x3495210, d=0x348a070) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#17 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#18 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#19 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#20 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x3475670, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#21 0x00007f77de91ad32 in __run_exit_handlers (status=255, listp=0x7f77deca5698 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#22 0x00007f77de91ad85 in __GI_exit (status=<optimized out>) at exit.c:104
#23 0x00007f77df5e8806 in KCmdLineArgs::isSet (this=this@entry=0xb7131b0, _opt=...) at ../../kdecore/kernel/kcmdlineargs.cpp:1520
#24 0x0000000000403dd7 in KontactApp::newInstance (this=0x7fffe7690610) at ../../../kontact/src/main.cpp:130
#25 0x00007f77e08b806a in KUniqueApplicationAdaptor::newInstance (this=0x227e230, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#26 0x00007f77e08b814d in KUniqueApplicationAdaptor::qt_static_metacall (_o=_o@entry=0x227e230, _id=_id@entry=0, _a=_a@entry=0x7fffe768fc30, _c=QMetaObject::InvokeMetaMethod) at ./kuniqueapplication_p.moc:57
#27 0x00007f77e08b8353 in qt_static_metacall (_a=0x7fffe768fc30, _id=0, _c=QMetaObject::InvokeMetaMethod, _o=0x227e230) at ./kuniqueapplication_p.moc:100
#28 KUniqueApplicationAdaptor::qt_metacall (this=0x227e230, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffe768fc30) at ./kuniqueapplication_p.moc:101
#29 0x00007f77ddd266a6 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x2119570, object=object@entry=0x227e230, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:951
#30 0x00007f77ddd278bb in QDBusConnectionPrivate::activateCall (this=this@entry=0x2119570, object=0x227e230, flags=flags@entry=337, msg=...) at qdbusintegrator.cpp:863
#31 0x00007f77ddd282b0 in QDBusConnectionPrivate::activateObject (this=0x2119570, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#32 0x00007f77ddd2843b in QDBusActivateObjectEvent::placeMetaCall (this=0xaccb390) at qdbusintegrator.cpp:1541
#33 0x00007f77df15c8d1 in QObject::event (this=this@entry=0x7fffe7690610, e=e@entry=0xaccb390) at kernel/qobject.cpp:1222
#34 0x00007f77df147a3c in QCoreApplication::event (this=this@entry=0x7fffe7690610, e=e@entry=0xaccb390) at kernel/qcoreapplication.cpp:1767
#35 0x00007f77dfb53cd3 in QApplication::event (this=0x7fffe7690610, e=0xaccb390) at kernel/qapplication.cpp:2549
#36 0x00007f77dfb4e9bc in QApplicationPrivate::notify_helper (this=this@entry=0x2139450, receiver=receiver@entry=0x7fffe7690610, e=e@entry=0xaccb390) at kernel/qapplication.cpp:4570
#37 0x00007f77dfb554d8 in QApplication::notify (this=this@entry=0x7fffe7690610, receiver=receiver@entry=0x7fffe7690610, e=e@entry=0xaccb390) at kernel/qapplication.cpp:4356
#38 0x00007f77e08b0b4a in KApplication::notify (this=0x7fffe7690610, receiver=0x7fffe7690610, event=0xaccb390) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f77df1431bd in QCoreApplication::notifyInternal (this=0x7fffe7690610, receiver=receiver@entry=0x7fffe7690610, event=event@entry=0xaccb390) at kernel/qcoreapplication.cpp:955
#40 0x00007f77df146a61 in sendEvent (event=0xaccb390, receiver=0x7fffe7690610) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x20b54e0) at kernel/qcoreapplication.cpp:1579
#42 0x00007f77df146ef3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#43 0x00007f77df1726de in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#44 postEventSourceDispatch (s=0x21432b0) at kernel/qeventdispatcher_glib.cpp:300
#45 0x00007f77d8230cfd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f77d8230fe0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f77d823108c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f77df17284e in QEventDispatcherGlib::processEvents (this=0x20821b0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#49 0x00007f77dfbf6c66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f77df141d11 in QEventLoop::processEvents (this=this@entry=0x7fffe7690520, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f77df142075 in QEventLoop::exec (this=this@entry=0x7fffe7690520, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f77df147af9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#53 0x00007f77dfb4cc1c in QApplication::exec () at kernel/qapplication.cpp:3828
#54 0x0000000000403509 in main (argc=1, argv=0x7fffe7690768) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 335225, bug 335224, bug 330850, bug 328224, bug 326104.

Reported using DrKonqi
Comment 1 Tom Mittelstädt 2015-09-02 07:23:18 UTC
Kontact crashes here too, however this backtrace is triggered from time to time after re-opening a "closed" instance.
eg: open Kontact, close it (Alt+F4), start it again after a mail notification, SIGABRT.
Comment 2 Denis Kurz 2017-06-23 20:21:01 UTC
This bug has never been confirmed for a Kontact version that is based on KDE Frameworks, except possibly a Technology Preview version 5.0.x. Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the opportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 3 Denis Kurz 2018-02-01 09:44:20 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.