Bug 222895

Summary: Crash on quitting Kontact after creating an event in KOrganizer
Product: [Applications] kontact Reporter: Sabine Faure <sabine>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: VERIFIED FIXED    
Severity: crash CC: montel
Priority: NOR    
Version: 4.4 rc1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sabine Faure 2010-01-15 21:21:17 UTC
Application: kontact (4.4 rc1)
KDE Platform Version: 4.3.90 (KDE 4.3.90 (KDE 4.4 RC1))
Qt Version: 4.6.0
Operating System: Linux 2.6.27-16-generic i686
Distribution: Ubuntu 8.10

-- Information about the crash:
- Launch Kontact and go to KOrganizer
- Click on 'New Event' button and create a new event
- Go to File menu/Quit

Kontact crashes (see backtrace log attached)

Akonadi-ports Branch, Svn Rev 1075014

The crash can be reproduced every time.

 -- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 0 (LWP 30013)]

Thread 2 (Thread 0xaedb6b90 (LWP 30016)):
#0  0xb80aa430 in __kernel_vsyscall ()
#1  0xb5f36075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xaf20a855 in WTF::TCMalloc_PageHeap::scavengerThread () from /d/qt/4/kde-qt/lib/libQtWebKit.so.4
#3  0xaf20a8bf in WTF::TCMalloc_PageHeap::runScavengerThread () from /d/qt/4/kde-qt/lib/libQtWebKit.so.4
#4  0xb5f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb537da0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3d326c0 (LWP 30013)):
[KCrash Handler]
#6  0xb80aa430 in __kernel_vsyscall ()
#7  0xb52c78a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb52c9268 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb52c072e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb0493d82 in KMKernel::config () at /d/kde/src/t/kdepim/kmail/kmkernel.cpp:1897
#11 0xb03b2ab5 in FolderCollection::writeConfig (this=0xadda668) at /d/kde/src/t/kdepim/kmail/foldercollection.cpp:200
#12 0xb03b46c4 in ~FolderCollection (this=0xadda668) at /d/kde/src/t/kdepim/kmail/foldercollection.cpp:80
#13 0xb0390b78 in QtSharedPointer::ExternalRefCount<FolderCollection>::internalDestroy (this=0x9b1c634) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:391
#14 0xb0390ba3 in QtSharedPointer::ExternalRefCount<FolderCollection>::deref (this=0x9b1c634) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:329
#15 0xb0390bd1 in ~ExternalRefCount (this=0x9b1c634) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:380
#16 0xb0390c23 in ~QSharedPointer (this=0x9b1c634) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:441
#17 0xb051ef08 in ~KMMainWidget (this=0x9b1c490) at /d/kde/src/t/kdepim/kmail/kmmainwidget.cpp:299
#18 0xb60eea0e in QObjectPrivate::deleteChildren (this=0x9b16758) at kernel/qobject.cpp:1998
#19 0xb571968b in ~QWidget (this=0x9b16738) at kernel/qwidget.cpp:1459
#20 0xb6c607e5 in ~Part (this=0x994a1a0, __vtt_parm=0xb079da08) at /d/kde/src/t/kdelibs/kparts/part.cpp:208
#21 0xb6c60a2d in ~ReadOnlyPart (this=0x994a1a0, __vtt_parm=0xb079da04) at /d/kde/src/t/kdelibs/kparts/part.cpp:459
#22 0xb07968b3 in ~KMailPart (this=0x994a1a0) at /d/kde/src/t/kdepim/kmail/kmail_part.cpp:148
#23 0xb7593cb9 in ~Plugin (this=0x9901150, __vtt_parm=0x753d) at /d/kde/src/t/kdepimlibs/kontactinterface/plugin.cpp:90
#24 0xb0e8864f in ~KMailPlugin (this=0x9901150) at /d/kde/src/t/kdepim/kontact/plugins/kmail/kmail_plugin.cpp:159
#25 0xb776d08e in ~MainWindow (this=0x96aa270) at /d/kde/src/t/kdepim/kontact/src/mainwindow.cpp:258
#26 0xb60edfd5 in qDeleteInEventHandler (o=0x96aa270) at kernel/qobject.cpp:4021
#27 0xb60f0d86 in QObject::event (this=0x96aa270, e=0xa6b6510) at kernel/qobject.cpp:1243
#28 0xb571fd8a in QWidget::event (this=0x96aa270, event=0xa6b6510) at kernel/qwidget.cpp:8428
#29 0xb5b6cc5a in QMainWindow::event (this=0x96aa270, event=0xa6b6510) at widgets/qmainwindow.cpp:1434
#30 0xb678c70c in KMainWindow::event (this=0x96aa270, ev=0xa6b6510) at /d/kde/src/t/kdelibs/kdeui/widgets/kmainwindow.cpp:1103
#31 0xb67d2675 in KXmlGuiWindow::event (this=0x96aa270, ev=0xa6b6510) at /d/kde/src/t/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#32 0xb56b4640 in QApplicationPrivate::notify_helper (this=0x9599608, receiver=0x96aa270, e=0xa6b6510) at kernel/qapplication.cpp:4242
#33 0xb56b6f95 in QApplication::notify (this=0xbfc05954, receiver=0x96aa270, e=0xa6b6510) at kernel/qapplication.cpp:4207
#34 0xb66996c3 in KApplication::notify (this=0xbfc05954, receiver=0x96aa270, event=0xa6b6510) at /d/kde/src/t/kdelibs/kdeui/kernel/kapplication.cpp:302
#35 0xb60dd65d in QCoreApplication::notifyInternal (this=0xbfc05954, receiver=0x96aa270, event=0xa6b6510) at kernel/qcoreapplication.cpp:704
#36 0xb72cfcbf in QCoreApplication::sendEvent () from /d/qt/4/kde-qt/lib/libQt3Support.so.4
#37 0xb60ddb45 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9579680) at kernel/qcoreapplication.cpp:1342
#38 0xb60ddd01 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#39 0xb735d118 in QCoreApplication::sendPostedEvents () from /d/qt/4/kde-qt/lib/libQt3Support.so.4
#40 0xb610f83f in postEventSourceDispatch (s=0x95a08e8) at kernel/qeventdispatcher_glib.cpp:276
#41 0xb431a718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0xb431ddc3 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0xb431df81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0xb610ea5a in QEventDispatcherGlib::processEvents (this=0x9597a18, flags={i = -1077913548}) at kernel/qeventdispatcher_glib.cpp:407
#45 0xb578204e in QGuiEventDispatcherGlib::processEvents (this=0x9597a18, flags={i = -1077913500}) at kernel/qguieventdispatcher_glib.cpp:202
#46 0xb60da34a in QEventLoop::processEvents (this=0xbfc058f0, flags={i = -1077913428}) at kernel/qeventloop.cpp:149
#47 0xb60da5bb in QEventLoop::exec (this=0xbfc058f0, flags={i = -1077913352}) at kernel/qeventloop.cpp:197
#48 0xb60dde35 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0xb56b6fd6 in QApplication::exec () at kernel/qapplication.cpp:3570
#50 0x0804ba07 in main (argc=) at /d/kde/src/t/kdepim/kontact/src/main.cpp:221

Reported using DrKonqi
Comment 1 Laurent Montel 2010-01-28 15:15:01 UTC
SVN commit 1081504 by mlaurent:

Fix crash when we close kontact
CCBUG: 222895


 M  +1 -0      kmmainwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1081504
Comment 2 Laurent Montel 2010-01-28 15:15:35 UTC
Fixed in svn
Comment 3 Sabine Faure 2010-02-03 20:16:30 UTC
It is corrected now.

I retested this today and there is no crash after quitting Kontact now.

Trunk, Svn Rev 1084694