Bug 322158

Summary: Kontact crashed upon exit
Product: [Applications] kontact Reporter: Tomas Babej <tomasbabej>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: diego.ml, dschis1000
Priority: NOR    
Version: 4.10.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Tomas Babej 2013-07-09 14:50:57 UTC
Application: kontact (4.10.4)
KDE Platform Version: 4.10.4
Qt Version: 4.8.4
Operating System: Linux 3.9.9-301.fc19.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

Running Kontact on Fedora 19. It crashed in several ways, this report probably refers to crash on exit.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fe9aa7838c0 (LWP 7747))]

Thread 4 (Thread 0x7fe99d25d700 (LWP 7748)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000034650c9abd in WTF::TCMalloc_PageHeap::scavengerThread (this=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:2571
#2  0x00000034650c9af9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:1767
#3  0x0000003440007c53 in start_thread (arg=0x7fe99d25d700) at pthread_create.c:308
#4  0x000000343fcf513d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fe95c741700 (LWP 7749)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003464e0b3fd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7fe99c9c7398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00000034650f9316 in WTF::wtfThreadEntryPoint (param=0x21300c0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x0000003440007c53 in start_thread (arg=0x7fe95c741700) at pthread_create.c:308
#4  0x000000343fcf513d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fe952c28700 (LWP 7755)):
#0  0x000000344000aa6c in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7fe944000a60) at pthread_mutex_unlock.c:52
#1  __GI___pthread_mutex_unlock (mutex=0x7fe944000a60) at pthread_mutex_unlock.c:297
#2  0x0000003442087281 in g_mutex_unlock (mutex=mutex@entry=0x7fe9440009a0) at gthread-posix.c:229
#3  0x0000003442047790 in g_main_context_prepare (context=context@entry=0x7fe9440009a0, priority=priority@entry=0x7fe952c27be8) at gmain.c:3326
#4  0x0000003442048013 in g_main_context_iterate (context=context@entry=0x7fe9440009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3681
#5  0x00000034420481fc in g_main_context_iteration (context=0x7fe9440009a0, may_block=1) at gmain.c:3762
#6  0x00000034485a6cd6 in QEventDispatcherGlib::processEvents (this=0x7fe9440008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x0000003448578bdf in QEventLoop::processEvents (this=this@entry=0x7fe952c27d20, flags=...) at kernel/qeventloop.cpp:149
#8  0x0000003448578ed5 in QEventLoop::exec (this=this@entry=0x7fe952c27d20, flags=...) at kernel/qeventloop.cpp:204
#9  0x000000344847862f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#10 0x000000344847accf in QThreadPrivate::start (arg=0x22e2d20) at thread/qthread_unix.cpp:338
#11 0x0000003440007c53 in start_thread (arg=0x7fe952c28700) at pthread_create.c:308
#12 0x000000343fcf513d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fe9aa7838c0 (LWP 7747)):
[KCrash Handler]
#6  isEmpty (this=0x90, this@entry=0x120) at ../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x90, akey=...) at ../../src/corelib/tools/qhash.h:786
#8  0x000000344856fb38 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x0, data=data@entry=0xa99c000) at kernel/qabstractitemmodel.cpp:542
#9  0x000000344856fec9 in QPersistentModelIndexData::destroy (data=0xa99c000) at kernel/qabstractitemmodel.cpp:83
#10 0x000000344856ff0f in QPersistentModelIndex::~QPersistentModelIndex (this=0x9b6e4f0, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
#11 0x000000344e28d6cc in node_destruct (this=<optimized out>, to=0x9b6e4f0, from=<optimized out>) at ../../src/corelib/tools/qlist.h:433
#12 free (this=<optimized out>, data=<optimized out>) at ../../src/corelib/tools/qlist.h:757
#13 QList<QPersistentModelIndex>::~QList (this=0x90, __in_chrg=<optimized out>) at ../../src/corelib/tools/qlist.h:732
#14 0x000000344e2d0789 in ~QHeaderViewPrivate (this=0x7627ae0, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qheaderview_p.h:66
#15 QHeaderViewPrivate::~QHeaderViewPrivate (this=0x7627ae0, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qheaderview_p.h:66
#16 0x0000003448592965 in cleanup (pointer=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:62
#17 ~QScopedPointer (this=0x76278d8, __in_chrg=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:100
#18 QObject::~QObject (this=0x76278d0, __in_chrg=<optimized out>) at kernel/qobject.cpp:816
#19 0x000000344de1415c in QWidget::~QWidget (this=0x76278d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1556
#20 0x000000344e2c30a9 in QHeaderView::~QHeaderView (this=0x76278d0, __in_chrg=<optimized out>) at itemviews/qheaderview.cpp:339
#21 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x7623040) at kernel/qobject.cpp:1907
#22 0x000000344de140c7 in QWidget::~QWidget (this=0x7622fd0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#23 0x0000003ceeb24839 in ~KOTodoViewView (this=0x7622fd0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/views/todoview/kotodoviewview.h:33
#24 KOTodoViewView::~KOTodoViewView (this=0x7622fd0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/views/todoview/kotodoviewview.h:33
#25 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x75f7a20) at kernel/qobject.cpp:1907
#26 0x000000344de140c7 in QWidget::~QWidget (this=0x75ee3a0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#27 0x0000003ceeb17529 in KOTodoView::~KOTodoView (this=0x75ee3a0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/views/todoview/kotodoview.cpp:447
#28 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x75a7270) at kernel/qobject.cpp:1907
#29 0x000000344de140c7 in QWidget::~QWidget (this=0x75a7240, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#30 0x000000344e209c39 in QStackedWidget::~QStackedWidget (this=0x75a7240, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:196
#31 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x759ee20) at kernel/qobject.cpp:1907
#32 0x000000344de140c7 in QWidget::~QWidget (this=0x759d550, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#33 0x000000344f52ab59 in KVBox::~KVBox (this=0x759d550, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.10.4/kdeui/widgets/kvbox.cpp:29
#34 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x7483530) at kernel/qobject.cpp:1907
#35 0x000000344de140c7 in QWidget::~QWidget (this=0x2e11900, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#36 0x000000344e2057f9 in QSplitter::~QSplitter (this=0x2e11900, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#37 0x0000003448590388 in QObjectPrivate::deleteChildren (this=0x7483210) at kernel/qobject.cpp:1907
#38 0x000000344de140c7 in QWidget::~QWidget (this=0x2e0a660, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#39 0x0000003ceea7a509 in CalendarView::~CalendarView (this=0x2e0a660, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/calendarview.cpp:273
#40 0x0000003ceea5f6ee in ActionManager::~ActionManager (this=0x75a97f0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/actionmanager.cpp:138
#41 0x0000003ceea5f7f9 in ActionManager::~ActionManager (this=0x75a97f0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/actionmanager.cpp:140
#42 0x00007fe95021810c in KOrganizerPart::~KOrganizerPart (this=0x2e089d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/korganizer_part.cpp:101
#43 0x00007fe9502181d9 in KOrganizerPart::~KOrganizerPart (this=0x2e089d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/korganizer/korganizer_part.cpp:107
#44 0x0000003cef21076e in KontactInterface::Plugin::~Plugin (this=0x2447ef0, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.10.4/kontactinterface/plugin.cpp:91
#45 0x00007fe95abc650a in KOrganizerPlugin::~KOrganizerPlugin (this=0x2447ef0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/kontact/plugins/korganizer/korganizerplugin.cpp:92
#46 0x00007fe95abc6549 in KOrganizerPlugin::~KOrganizerPlugin (this=0x2447ef0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/kontact/plugins/korganizer/korganizerplugin.cpp:94
#47 0x0000003cea61d95e in Kontact::MainWindow::~MainWindow (this=this@entry=0x20cebf0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/kontact/src/mainwindow.cpp:294
#48 0x0000003cea61dac9 in Kontact::MainWindow::~MainWindow (this=0x20cebf0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.10.4/kontact/src/mainwindow.cpp:296
#49 0x0000003448591e88 in QObject::event (this=0x20cebf0, e=<optimized out>) at kernel/qobject.cpp:1175
#50 0x000000344de1790b in QWidget::event (this=this@entry=0x20cebf0, event=event@entry=0x5d88dc0) at kernel/qwidget.cpp:8845
#51 0x000000344e1cb913 in QMainWindow::event (this=this@entry=0x20cebf0, event=event@entry=0x5d88dc0) at widgets/qmainwindow.cpp:1478
#52 0x000000344f4f7af1 in KMainWindow::event (this=this@entry=0x20cebf0, ev=ev@entry=0x5d88dc0) at /usr/src/debug/kdelibs-4.10.4/kdeui/widgets/kmainwindow.cpp:1084
#53 0x000000344f52f579 in KXmlGuiWindow::event (this=0x20cebf0, ev=0x5d88dc0) at /usr/src/debug/kdelibs-4.10.4/kdeui/xmlgui/kxmlguiwindow.cpp:126
#54 0x000000344ddc846c in QApplicationPrivate::notify_helper (this=0x1f41d30, receiver=0x20cebf0, e=0x5d88dc0) at kernel/qapplication.cpp:4562
#55 0x000000344ddcea30 in QApplication::notify (this=this@entry=0x7fff413ef190, receiver=receiver@entry=0x20cebf0, e=e@entry=0x5d88dc0) at kernel/qapplication.cpp:4348
#56 0x000000344f442f0a in KApplication::notify (this=0x7fff413ef190, receiver=0x20cebf0, event=0x5d88dc0) at /usr/src/debug/kdelibs-4.10.4/kdeui/kernel/kapplication.cpp:311
#57 0x0000003448579f7d in QCoreApplication::notifyInternal (this=0x7fff413ef190, receiver=receiver@entry=0x20cebf0, event=event@entry=0x5d88dc0) at kernel/qcoreapplication.cpp:949
#58 0x000000344857cd3f in sendEvent (event=0x5d88dc0, receiver=0x20cebf0) at kernel/qcoreapplication.h:231
#59 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1efe3e0) at kernel/qcoreapplication.cpp:1573
#60 0x000000344857d1e3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#61 0x00000034485a72d3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#62 postEventSourceDispatch (s=s@entry=0x1f488d0) at kernel/qeventdispatcher_glib.cpp:279
#63 0x0000003442047e06 in g_main_dispatch (context=0x1f3d920) at gmain.c:3054
#64 g_main_context_dispatch (context=context@entry=0x1f3d920) at gmain.c:3630
#65 0x0000003442048158 in g_main_context_iterate (context=context@entry=0x1f3d920, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#66 0x00000034420481fc in g_main_context_iteration (context=0x1f3d920, may_block=1) at gmain.c:3762
#67 0x00000034485a6cb5 in QEventDispatcherGlib::processEvents (this=0x1effcc0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#68 0x000000344de64d56 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#69 0x0000003448578bdf in QEventLoop::processEvents (this=this@entry=0x7fff413ef090, flags=...) at kernel/qeventloop.cpp:149
#70 0x0000003448578ed5 in QEventLoop::exec (this=this@entry=0x7fff413ef090, flags=...) at kernel/qeventloop.cpp:204
#71 0x000000344857dfbb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#72 0x000000344ddc6c2c in QApplication::exec () at kernel/qapplication.cpp:3823
#73 0x0000000000403750 in main (argc=1, argv=0x7fff413ef2d8) at /usr/src/debug/kdepim-4.10.4/kontact/src/main.cpp:219

Possible duplicates by query: bug 315601, bug 314394.

Reported using DrKonqi
Comment 1 Diego 2013-09-24 13:23:42 UTC
Created attachment 82476 [details]
New crash information added by DrKonqi

akonadiconsole (0.99) on KDE Platform 4.11.1 using Qt 4.8.5

- What I was doing when the application crashed:

I used Akonadi Console for a while with Debugger and JobTracker enabled. I disabled them, closed Akonadi Console and got this crash.

-- Backtrace (Reduced):
#5  QAbstractItemModelPrivate::removePersistentIndexData (this=0x168b7a0, data=data@entry=0x9190380) at kernel/qabstractitemmodel.cpp:550
#6  0x00007f9595c541b9 in QPersistentModelIndexData::destroy (data=0x9190380) at kernel/qabstractitemmodel.cpp:83
#7  0x00007f9595c541ff in QPersistentModelIndex::~QPersistentModelIndex (this=0x1694618, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
#8  0x00007f9597025602 in QAbstractItemViewPrivate::~QAbstractItemViewPrivate (this=0x1694330, __in_chrg=<optimized out>) at itemviews/qabstractitemview.cpp:115
#9  0x00007f959706f7c7 in ~QTreeViewPrivate (this=0x1694330, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qtreeview_p.h:96
Comment 2 David 2013-11-09 22:31:37 UTC
Created attachment 83460 [details]
New crash information added by DrKonqi

korganizer (4.10.5) on KDE Platform 4.10.5 using Qt 4.8.4

- Unusual behavior I noticed:
when I opened another calendar in korganizer, started acting slow and deleted all of the entries in the new calandar. I did attach an .odt to one entry.

-- Backtrace (Reduced):
#6  isEmpty (this=this@entry=0x90) at ../../include/QtCore/../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x90, akey=...) at ../../include/QtCore/../../src/corelib/tools/qhash.h:786
#8  0x00007f554e28e884 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x0, data=data@entry=0x5c4ae40) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f554e28eaf9 in QPersistentModelIndexData::destroy (data=0x5c4ae40) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f554e28ec1f in QPersistentModelIndex::~QPersistentModelIndex (this=0x6749418, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 3 Denis Kurz 2016-09-24 19:30:09 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 4 Denis Kurz 2017-01-07 22:41:57 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.