Bug 332750

Summary: kontact crashes on notes migration
Product: [Applications] kontact Reporter: axel <exellent>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.12.95   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description axel 2014-03-28 19:26:42 UTC
Application: kontact (4.13 beta3)
KDE Platform Version: 4.12.95
Qt Version: 4.8.6
Operating System: Linux 3.13.0-19-generic i686
Distribution: Ubuntu Trusty Tahr (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
kontact autostarts with the session begin. it asks everytime to migrate notes to the new backend. this pop-up opens up up twice. on the first one started the migration. the second one i aborted. the kontact window appears with an empty kmail-layout.

- Unusual behavior I noticed:
every time kontact starts, it ask for mirgation of notes. and shows two dialagos for the migration.

- Custom settings of the application:
i have a windows setting rule that kontact only shows up on an fourth workspace. this rule gets ignored and it shows up on the workspace i usually start with, the first one.
When i close the appliction and start it again appears on the workspace on the right (fourth) workspace.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb14a3740 (LWP 1994))]

Thread 5 (Thread 0xae709b40 (LWP 2066)):
#0  0xb7794424 in __kernel_vsyscall ()
#1  0xb3214d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb611c8ec in __pthread_cond_wait (cond=0xb586dcb0, mutex=0xb586dc98) at forward.c:149
#3  0xb4ff594c in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb4ff599f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb3210f70 in start_thread (arg=0xae709b40) at pthread_create.c:312
#6  0xb610f70e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 4 (Thread 0xadde0b40 (LWP 2113)):
#0  0xb7794424 in __kernel_vsyscall ()
#1  0xb3214d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb611c8ec in __pthread_cond_wait (cond=0xade4e7dc, mutex=0xade4e7c4) at forward.c:149
#3  0xb5024993 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb4d00514 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb500b766 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb5024309 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb3210f70 in start_thread (arg=0xadde0b40) at pthread_create.c:312
#8  0xb610f70e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 3 (Thread 0xabf94b40 (LWP 2126)):
#0  0xb7794424 in __kernel_vsyscall ()
#1  0xb611d392 in __GI___clock_gettime (clock_id=1, tp=0xabf94078) at ../sysdeps/unix/clock_gettime.c:115
#2  0xb637d8cc in do_gettime (frac=0xabf94070, sec=0xabf94068) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0xb6465f31 in QTimerInfoList::updateCurrentTime (this=this@entry=0xab6028e4) at kernel/qeventdispatcher_unix.cpp:354
#5  0xb6464cbf in timerSourceCheckHelper (src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:157
#6  0xb312adff in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb312b37a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb312b528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb646495f in QEventDispatcherGlib::processEvents (this=0xab600468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#10 0xb6433823 in QEventLoop::processEvents (this=this@entry=0xabf94288, flags=...) at kernel/qeventloop.cpp:149
#11 0xb6433b49 in QEventLoop::exec (this=this@entry=0xabf94288, flags=...) at kernel/qeventloop.cpp:204
#12 0xb632023d in QThread::exec (this=this@entry=0x8a8e6f8) at thread/qthread.cpp:537
#13 0xb632038b in QThread::run (this=0x8a8e6f8) at thread/qthread.cpp:604
#14 0xb6322b6f in QThreadPrivate::start (arg=0x8a8e6f8) at thread/qthread_unix.cpp:349
#15 0xb3210f70 in start_thread (arg=0xabf94b40) at pthread_create.c:312
#16 0xb610f70e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 2 (Thread 0xa9418b40 (LWP 2317)):
#0  0xb7794424 in __kernel_vsyscall ()
#1  0xb611d392 in __GI___clock_gettime (clock_id=1, tp=0xa9417ff8) at ../sysdeps/unix/clock_gettime.c:115
#2  0xb637d8cc in do_gettime (frac=0xa9417ff0, sec=0xa9417fe8) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0xb64662a2 in updateCurrentTime (this=0x947aa74) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x947aa74, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0xb646482b in timerSourcePrepareHelper (src=<optimized out>, timeout=0xa94180ec) at kernel/qeventdispatcher_glib.cpp:143
#7  0xb64648bd in timerSourcePrepare (source=0x947aa40, timeout=0xa94180ec) at kernel/qeventdispatcher_glib.cpp:176
#8  0xb312a9b3 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb312b2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb312b528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0xb646495f in QEventDispatcherGlib::processEvents (this=0x8f848b8, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#12 0xb6433823 in QEventLoop::processEvents (this=this@entry=0xa9418258, flags=...) at kernel/qeventloop.cpp:149
#13 0xb6433b49 in QEventLoop::exec (this=this@entry=0xa9418258, flags=...) at kernel/qeventloop.cpp:204
#14 0xb632023d in QThread::exec (this=this@entry=0x8eb68c8) at thread/qthread.cpp:537
#15 0xb6413c44 in QInotifyFileSystemWatcherEngine::run (this=0x8eb68c8) at io/qfilesystemwatcher_inotify.cpp:265
#16 0xb6322b6f in QThreadPrivate::start (arg=0x8eb68c8) at thread/qthread_unix.cpp:349
#17 0xb3210f70 in start_thread (arg=0xa9418b40) at pthread_create.c:312
#18 0xb610f70e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb14a3740 (LWP 1994)):
[KCrash Handler]
#7  0xaa834cc4 in KMKernel::entityTreeModel (this=0x0) at ../../kmail/kmkernel.cpp:271
#8  0xaa832a3e in KMail::KMSystemTray::initListOfCollection (this=this@entry=0x95e7c88) at ../../kmail/kmsystemtray.cpp:362
#9  0xaa964474 in KMail::KMSystemTray::qt_static_metacall (_o=_o@entry=0x95e7c88, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff2c048) at moc_kmsystemtray.cpp:62
#10 0xb644a0f7 in QMetaObject::activate (sender=sender@entry=0x95adcf8, m=m@entry=0xb659fef8 <QSingleShotTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#11 0xb6453610 in timeout (this=0x95adcf8) at .moc/release-shared/qtimer.moc:96
#12 QSingleShotTimer::timerEvent (this=0x95adcf8) at kernel/qtimer.cpp:317
#13 0xb644e55c in QObject::event (this=0x95adcf8, e=0xbff2c3a0) at kernel/qobject.cpp:1156
#14 0xb69907f4 in QApplicationPrivate::notify_helper (this=0x88edd10, receiver=0x95adcf8, e=0xbff2c3a0) at kernel/qapplication.cpp:4567
#15 0xb69972d3 in QApplication::notify (this=0xbff2c678, receiver=receiver@entry=0x95adcf8, e=e@entry=0xbff2c3a0) at kernel/qapplication.cpp:4353
#16 0xb74e00a4 in KApplication::notify (this=0xbff2c678, receiver=0x95adcf8, event=0xbff2c3a0) at ../../kdeui/kernel/kapplication.cpp:311
#17 0xb6434e4a in QCoreApplication::notifyInternal (this=0xbff2c678, receiver=0x95adcf8, event=event@entry=0xbff2c3a0) at kernel/qcoreapplication.cpp:953
#18 0xb64677bb in sendEvent (event=0xbff2c3a0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QTimerInfoList::activateTimers (this=this@entry=0x88eed34) at kernel/qeventdispatcher_unix.cpp:621
#20 0xb6464788 in timerSourceDispatch (source=0x88eed00) at kernel/qeventdispatcher_glib.cpp:193
#21 0xb312b1e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#22 0xb312b468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#23 0xb312b528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0xb646493b in QEventDispatcherGlib::processEvents (this=this@entry=0x88bedb0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#25 0xb6a455de in QGuiEventDispatcherGlib::processEvents (this=0x88bedb0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#26 0xb6433823 in QEventLoop::processEvents (this=this@entry=0xbff2c5c8, flags=...) at kernel/qeventloop.cpp:149
#27 0xb6433b49 in QEventLoop::exec (this=this@entry=0xbff2c5c8, flags=...) at kernel/qeventloop.cpp:204
#28 0xb64398fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#29 0xb698ea24 in QApplication::exec () at kernel/qapplication.cpp:3828
#30 0x0804ab4c in main (argc=3, argv=0xbff2c754) at ../../../kontact/src/main.cpp:219

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:21:36 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 22:32:29 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.