Bug 322760

Summary: Kontact crashes upon shutdown when knode was enabled
Product: [Applications] kontact Reporter: Christian Reiner <foss>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash    
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Reiner 2013-07-24 10:29:51 UTC
Application: kontact (4.10.5)
KDE Platform Version: 4.10.5 "release 4"
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:
Every time I shutdown the kontact shell I get a KCrash handler after a while (often 1-2 minutes after the shutdown). 

- Custom settings of the application:
I have the impression that this crash only happens, when knode had been enabled (used) inside that kontact session. 

This issue has been around for a few years now (if I remember correctly). Here I am referring to the dependency that knode has to be enabled to produce a crash. I failed to find prior reports for this although I remember I made one myself. Maybe they got removed because of being older?

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f14fa1d07c0 (LWP 9321))]

Thread 5 (Thread 0x7f14ddabc700 (LWP 9322)):
#0  0x00007f14f193a964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f14f69522f0 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f14f6952329 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f14f1936e0f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f14f77327dd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f14dd1bb700 (LWP 9323)):
#0  0x00007f14f193a964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f14f66d0157 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f14f697981e in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f14f1936e0f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f14f77327dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f148b209700 (LWP 9334)):
#0  0x00007fff7f7ff847 in clock_gettime ()
#1  0x00007f14f774453d in clock_gettime () from /lib64/libc.so.6
#2  0x00007f14f8a8bd94 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f14f8b60bed in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f14f8b60f33 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007f14f8b5f99c in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f14f8b5fa45 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f14f092a338 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f14f092a9cb in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f14f092abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f14f8b602e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#11 0x00007f14f8b30adf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007f14f8b30d68 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#13 0x00007f14f8a330f0 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#14 0x00007f14f8a360cc in ?? () from /usr/lib64/libQtCore.so.4
#15 0x00007f14f1936e0f in start_thread () from /lib64/libpthread.so.0
#16 0x00007f14f77327dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f148ba0a700 (LWP 17576)):
#0  0x00007fff7f7ff847 in clock_gettime ()
#1  0x00007f14f774453d in clock_gettime () from /lib64/libc.so.6
#2  0x00007f14f8a8bd94 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f14f8b60bed in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f14f8b60f33 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007f14f8b5f99c in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f14f8b5fa45 in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007f14f092a338 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f14f092a9cb in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f14f092abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f14f8b602e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#11 0x00007f14f8b30adf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007f14f8b30d68 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#13 0x00007f14f8a330f0 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#14 0x00007f14f44caa4e in KIO::NameLookUpThread::run (this=0x46bdb20) at /usr/src/debug/kdelibs-4.10.5/kio/kio/hostinfo.cpp:226
#15 0x00007f14f8a360cc in ?? () from /usr/lib64/libQtCore.so.4
#16 0x00007f14f1936e0f in start_thread () from /lib64/libpthread.so.0
#17 0x00007f14f77327dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f14fa1d07c0 (LWP 9321)):
[KCrash Handler]
#6  0x00007f14f7f194fc in QWidget::window() const () from /usr/lib64/libQtGui.so.4
#7  0x00007f147789c3c5 in topLevelWidget (this=<optimized out>) at /usr/include/QtGui/qwidget.h:325
#8  KNAccountManager::wallet () at /usr/src/debug/kdepim-4.10.5/knode/knaccountmanager.cpp:250
#9  0x00007f14778a124f in KNServerInfo::readPassword (this=this@entry=0x9cd6b60) at /usr/src/debug/kdepim-4.10.5/knode/knserverinfo.cpp:167
#10 0x00007f14778a18d8 in KNServerInfo::readConf (this=0x9cd6b60, conf=...) at /usr/src/debug/kdepim-4.10.5/knode/knserverinfo.cpp:66
#11 0x00007f14778a2831 in KNNntpAccount::readInfo (this=0x9cd6b30, confPath=...) at /usr/src/debug/kdepim-4.10.5/knode/knnntpaccount.cpp:110
#12 0x00007f147789d83a in KNAccountManager::loadAccounts (this=this@entry=0x8595060) at /usr/src/debug/kdepim-4.10.5/knode/knaccountmanager.cpp:73
#13 0x00007f147789df67 in KNAccountManager::KNAccountManager (this=0x8595060, gm=0x521c500, parent=<optimized out>) at /usr/src/debug/kdepim-4.10.5/knode/knaccountmanager.cpp:40
#14 0x00007f14779377aa in KNGlobals::accountManager (this=0x563ea30) at /usr/src/debug/kdepim-4.10.5/knode/knglobals.cpp:113
#15 0x00007f14778a75fd in KNGroupManager::checkAll (this=0x521c500, id=1, silent=true) at /usr/src/debug/kdepim-4.10.5/knode/kngroupmanager.cpp:587
#16 0x00007f14f8b4729f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#17 0x00007f14f8b465ac in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#18 0x00007f14f7edb86c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007f14f7edfceb in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007f14f95967f6 in KApplication::notify (this=0x7fff7f713790, receiver=0x574e000, event=0x7fff7f713380) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#21 0x00007f14f8b31d8e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#22 0x00007f14f8b62b61 in ?? () from /usr/lib64/libQtCore.so.4
#23 0x00007f14f8b5fc54 in ?? () from /usr/lib64/libQtCore.so.4
#24 0x00007f14f8b5fc71 in ?? () from /usr/lib64/libQtCore.so.4
#25 0x00007f14f092a7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f14f092ab08 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f14f092abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f14f8b602c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#29 0x00007f14f7f7bc1e in ?? () from /usr/lib64/libQtGui.so.4
#30 0x00007f14f8b30adf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#31 0x00007f14f8b30d68 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#32 0x00007f14f8b35a08 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#33 0x0000000000403679 in ?? ()
#34 0x00007f14f766ba15 in __libc_start_main () from /lib64/libc.so.6
#35 0x0000000000403be1 in _start ()

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:19:28 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 kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 21:24:26 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.