Bug 315601

Summary: Kmail crashed when exited.
Product: [Applications] kontact Reporter: Lester Petrie <petrielmjr>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: crglasoe, g.lacan, jessie, kde, me, saba
Priority: NOR    
Version: 4.9.5   
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
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Lester Petrie 2013-02-21 21:23:12 UTC
Application: kontact (4.9.5)
KDE Platform Version: 4.9.5
Qt Version: 4.8.4
Operating System: Linux 3.7.6-102.fc17.x86_64 x86_64
Distribution: "Fedora release 17 (Beefy Miracle)"

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

I was closing kmail, preparing to logoff.  It has been behaving inconsistently, sometimes not showing the folder list, or not showing any contacts.

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

Thread 4 (Thread 0x7f23c0ccf700 (LWP 5618)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x00000037fb416a5d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x37fbe00ce0) at wtf/FastMalloc.cpp:2495
#2  0x00000037fb416b69 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x000000351d207d14 in start_thread (arg=0x7f23c0ccf700) at pthread_create.c:309
#4  0x000000351c6f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f23b8bb6700 (LWP 5619)):
#0  0x000000351c6e8bdf in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003ca0247af4 in g_main_context_poll (n_fds=1, fds=0x7f23ac0029c0, timeout=7652, context=0x7f23ac0009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x7f23ac0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3141
#3  0x0000003ca0247c14 in g_main_context_iteration (context=0x7f23ac0009a0, may_block=1) at gmain.c:3207
#4  0x0000003eb33a5fe6 in QEventDispatcherGlib::processEvents (this=0x7f23ac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003eb33766ef in QEventLoop::processEvents (this=this@entry=0x7f23b8bb5d00, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003eb3376978 in QEventLoop::exec (this=0x7f23b8bb5d00, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003eb3278940 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x0000003eb327b91c in QThreadPrivate::start (arg=0x2843f40) at thread/qthread_unix.cpp:338
#9  0x000000351d207d14 in start_thread (arg=0x7f23b8bb6700) at pthread_create.c:309
#10 0x000000351c6f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f234bfff700 (LWP 17472)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003eb327bdd7 in wait (time=30000, this=0x35469a0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x3533c58, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003eb326f65f in QThreadPoolThread::run (this=0x28d12c0) at concurrent/qthreadpool.cpp:141
#4  0x0000003eb327b91c in QThreadPrivate::start (arg=0x28d12c0) at thread/qthread_unix.cpp:338
#5  0x000000351d207d14 in start_thread (arg=0x7f234bfff700) at pthread_create.c:309
#6  0x000000351c6f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f23cc366880 (LWP 5527)):
[KCrash Handler]
#6  isEmpty (this=this@entry=0xb1) at ../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0xb1, akey=...) at ../../src/corelib/tools/qhash.h:786
#8  0x0000003eb3372308 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x21, data=data@entry=0x3847710) at kernel/qabstractitemmodel.cpp:542
#9  0x0000003eb3372559 in QPersistentModelIndexData::destroy (data=0x3847710) at kernel/qabstractitemmodel.cpp:83
#10 0x0000003eb337268f in QPersistentModelIndex::~QPersistentModelIndex (this=0x43c3970, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
#11 0x00000037f32db17d in ~QItemSelectionRange (this=0x43c3970, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qitemselectionmodel.h:58
#12 node_destruct (to=0x45a2cf0, from=0x45a2ce8, this=<optimized out>) at ../../src/corelib/tools/qlist.h:431
#13 free (data=0x45a2cd0, this=<optimized out>) at ../../src/corelib/tools/qlist.h:757
#14 QList<QItemSelectionRange>::~QList (this=<optimized out>, __in_chrg=<optimized out>) at ../../src/corelib/tools/qlist.h:732
#15 0x00000037f332ac1b in ~QItemSelection (this=0x3514b90, __in_chrg=<optimized out>) at itemviews/qitemselectionmodel.h:231
#16 ~QItemSelectionModelPrivate (this=0x3514b00, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qitemselectionmodel_p.h:61
#17 QItemSelectionModelPrivate::~QItemSelectionModelPrivate (this=0x3514b00, __in_chrg=<optimized out>) at ../../src/gui/itemviews/qitemselectionmodel_p.h:61
#18 0x0000003eb338de5c in cleanup (pointer=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:62
#19 ~QScopedPointer (this=0x311d4b8, __in_chrg=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:100
#20 QObject::~QObject (this=0x311d4b0, __in_chrg=<optimized out>) at kernel/qobject.cpp:816
#21 0x00000037f3322419 in QItemSelectionModel::~QItemSelectionModel (this=0x311d4b0, __in_chrg=<optimized out>) at itemviews/qitemselectionmodel.cpp:974
#22 0x0000003eb3389fe2 in QObjectPrivate::deleteChildren (this=0x2f12460) at kernel/qobject.cpp:1907
#23 0x00000037f2e141a4 in QWidget::~QWidget (this=0x31e2350, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#24 0x0000003420d20899 in KMMainWidget::~KMMainWidget (this=0x31e2350, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kmail/kmmainwidget.cpp:354
#25 0x0000003eb3389fe2 in QObjectPrivate::deleteChildren (this=0x2863890) at kernel/qobject.cpp:1907
#26 0x00000037f2e141a4 in QWidget::~QWidget (this=0x3129330, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#27 0x00000037f2e144f9 in QWidget::~QWidget (this=0x3129330, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1705
#28 0x00000037f8025b53 in KParts::Part::~Part (this=0x2b80b80, __vtt_parm=0x7f23b0330810, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.9.5/kparts/part.cpp:209
#29 0x00007f23b012b78a in KMailPart::~KMailPart (this=this@entry=0x2b80b80, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kmail/kmail_part.cpp:131
#30 0x00007f23b012b859 in KMailPart::~KMailPart (this=0x2b80b80, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kmail/kmail_part.cpp:140
#31 0x00000038004116ee in KontactInterface::Plugin::~Plugin (this=0x29583a0, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.9.5/kontactinterface/plugin.cpp:90
#32 0x00007f236abfbd6f in KMailPlugin::~KMailPlugin (this=0x29583a0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kontact/plugins/kmail/kmail_plugin.cpp:159
#33 0x00007f236abfbd99 in KMailPlugin::~KMailPlugin (this=0x29583a0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kontact/plugins/kmail/kmail_plugin.cpp:163
#34 0x000000341ec1d866 in Kontact::MainWindow::~MainWindow (this=this@entry=0x2685af0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kontact/src/mainwindow.cpp:294
#35 0x000000341ec1d9c9 in Kontact::MainWindow::~MainWindow (this=0x2685af0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.9.5/kontact/src/mainwindow.cpp:296
#36 0x0000003eb338c2c8 in QObject::event (this=0x2685af0, e=<optimized out>) at kernel/qobject.cpp:1175
#37 0x00000037f2e1966a in QWidget::event (this=0x2685af0, event=0x3895a70) at kernel/qwidget.cpp:8845
#38 0x00000037f31ddc0b in QMainWindow::event (this=0x2685af0, event=0x3895a70) at widgets/qmainwindow.cpp:1478
#39 0x00000037f4138618 in KXmlGuiWindow::event (this=0x2685af0, ev=0x3895a70) at /usr/src/debug/kdelibs-4.9.5/kdeui/xmlgui/kxmlguiwindow.cpp:126
#40 0x00000037f2dca5ac in QApplicationPrivate::notify_helper (this=this@entry=0x2697110, receiver=receiver@entry=0x2685af0, e=e@entry=0x3895a70) at kernel/qapplication.cpp:4562
#41 0x00000037f2dcea2a in QApplication::notify (this=0x7fff3e7c64a0, receiver=0x2685af0, e=0x3895a70) at kernel/qapplication.cpp:4423
#42 0x00000037f40468c6 in KApplication::notify (this=0x7fff3e7c64a0, receiver=0x2685af0, event=0x3895a70) at /usr/src/debug/kdelibs-4.9.5/kdeui/kernel/kapplication.cpp:311
#43 0x0000003eb337799e in QCoreApplication::notifyInternal (this=0x7fff3e7c64a0, receiver=receiver@entry=0x2685af0, event=event@entry=0x3895a70) at kernel/qcoreapplication.cpp:946
#44 0x0000003eb337b451 in sendEvent (event=0x3895a70, receiver=0x2685af0) at kernel/qcoreapplication.h:231
#45 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x264c600) at kernel/qcoreapplication.cpp:1570
#46 0x0000003eb33a5e33 in sendPostedEvents () at kernel/qcoreapplication.h:236
#47 postEventSourceDispatch (s=s@entry=0x268bf20) at kernel/qeventdispatcher_glib.cpp:279
#48 0x0000003ca0247825 in g_main_dispatch (context=0x2688520) at gmain.c:2539
#49 g_main_context_dispatch (context=context@entry=0x2688520) at gmain.c:3075
#50 0x0000003ca0247b58 in g_main_context_iterate (context=context@entry=0x2688520, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#51 0x0000003ca0247c14 in g_main_context_iteration (context=0x2688520, may_block=1) at gmain.c:3207
#52 0x0000003eb33a5fc6 in QEventDispatcherGlib::processEvents (this=0x264dee0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#53 0x00000037f2e6a5ee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#54 0x0000003eb33766ef in QEventLoop::processEvents (this=this@entry=0x7fff3e7c6310, flags=...) at kernel/qeventloop.cpp:149
#55 0x0000003eb3376978 in QEventLoop::exec (this=0x7fff3e7c6310, flags=...) at kernel/qeventloop.cpp:204
#56 0x0000003eb337b768 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#57 0x00000000004033f9 in main (argc=1, argv=0x7fff3e7c65e8) at /usr/src/debug/kdepim-4.9.5/kontact/src/main.cpp:219

Possible duplicates by query: bug 314394.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-02-28 17:21:12 UTC
*** Bug 314394 has been marked as a duplicate of this bug. ***
Comment 2 Chris Samuel 2013-04-28 11:18:14 UTC
Created attachment 79510 [details]
New crash information added by DrKonqi

kontact (4.10.2) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:

Exiting Kontact.

Yet another backtrace from my always-crashing-on-exit experience of Kontact. :-(

-- 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  0x00007f2a5e383884 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x0, data=data@entry=0x2673280) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f2a5e383af9 in QPersistentModelIndexData::destroy (data=0x2673280) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f2a5e383c1f in QPersistentModelIndex::~QPersistentModelIndex (this=0xf1f2540, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 3 Nathan Wolf 2013-05-01 20:06:10 UTC
Created attachment 79612 [details]
New crash information added by DrKonqi

kontact (4.10.2) on KDE Platform 4.10.2 "release 556" using Qt 4.8.4

Foldiers started disappearing when using kmail.  Selected to refresh the mail sources and some folders disappeard while only the names of other folders disappeard.  I closed Kontact/Kmail and the program crashed.

-- Backtrace (Reduced):
#6  isEmpty (this=this@entry=0xb1) at ../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0xb1, akey=...) at ../../src/corelib/tools/qhash.h:786
#8  0x00007f9e73928608 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x21, data=data@entry=0x6449b60) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f9e73928859 in QPersistentModelIndexData::destroy (data=0x6449b60) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f9e7392898f in QPersistentModelIndex::~QPersistentModelIndex (this=0xa3e72c0, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 4 Rainer Sabelka 2013-05-12 20:30:03 UTC
Created attachment 79859 [details]
New crash information added by DrKonqi

kontact (4.10.2) on KDE Platform 4.10.2 "release 1" using Qt 4.8.4

- What I was doing when the application crashed:

I closed contact Kontact (after removing and re-adding a groupware account because it filed to sync).

-- Backtrace (Reduced):
#6  isEmpty (this=this@entry=0x9c) at ../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x9c, akey=...) at ../../src/corelib/tools/qhash.h:786
#8  0x00007f35bff1a608 in QAbstractItemModelPrivate::removePersistentIndexData (this=0xc, data=data@entry=0x20edb60) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f35bff1a859 in QPersistentModelIndexData::destroy (data=0x20edb60) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f35bff1a98f in QPersistentModelIndex::~QPersistentModelIndex (this=0x3ccd330, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 5 Jessie A. Morris 2013-05-30 21:59:02 UTC
Created attachment 80193 [details]
New crash information added by DrKonqi

kontact (4.10.2) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:
I noticed that one of my accounts disappeared from the accounts and favorites panes in Kontact. I then quit, which is when the crash occurred.

- Unusual behavior I noticed:
My accounts disappeared and my ownCloud folder appeared in the accounts pane, which isn't usually there.

-- Backtrace (Reduced):
#6  isEmpty (this=this@entry=0x95) at ../../include/QtCore/../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x95, akey=...) at ../../include/QtCore/../../src/corelib/tools/qhash.h:786
#8  0x00007f13f7517884 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x5, data=data@entry=0x82e3c90) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f13f7517af9 in QPersistentModelIndexData::destroy (data=0x82e3c90) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f13f7517c1f in QPersistentModelIndex::~QPersistentModelIndex (this=0x38e12a0, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 6 Guillaume LACAN 2013-07-01 19:46:48 UTC
Created attachment 80890 [details]
New crash information added by DrKonqi

kontact (4.10.4) on KDE Platform 4.10.4 using Qt 4.8.4

- What I was doing when the application crashed:

I pressed ctrl+q to close kontact, then it crashed ...

-- Backtrace (Reduced):
#6  isEmpty (this=0x1024bf0, this@entry=0x1024c80) at ../../include/QtCore/../../src/corelib/tools/qhash.h:297
#7  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x1024bf0, akey=...) at ../../include/QtCore/../../src/corelib/tools/qhash.h:786
#8  0x00007f97e457e884 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x1024b60, data=data@entry=0x1d06ff0) at kernel/qabstractitemmodel.cpp:542
#9  0x00007f97e457eaf9 in QPersistentModelIndexData::destroy (data=0x1d06ff0) at kernel/qabstractitemmodel.cpp:83
#10 0x00007f97e457ec1f in QPersistentModelIndex::~QPersistentModelIndex (this=0xc063150, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
Comment 7 Jekyll Wu 2014-02-04 21:59:47 UTC

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