Bug 214079

Summary: crash when closing kmail !
Product: [Applications] kontact Reporter: Thierry Chich <thierry.chich>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, konq-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thierry Chich 2009-11-11 09:47:59 UTC
Application that crashed: kontact
Version of the application: 4.3.2
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
All is in the title. As usual, it was impossible to synchronize with my imap account. Then I decided to close kmail and relaunch it. It crash when I was closing it.

 -- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0x7f02402cb750 (LWP 7743))]

Thread 2 (Thread 0x7f021d296910 (LWP 8292)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f023d8d2a93 in _L_lock_9264 () from /lib/libc.so.6
#2  0x00007f023d8d0701 in *__GI___libc_free (mem=0x7f023dbc0e40) at malloc.c:3714
#3  0x00007f02378934e3 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f023e042ce2 in ~QEventDispatcherGlib (this=0x34292d0, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:289
#5  0x00007f023df335fc in QThreadPrivate::finish (arg=<value optimized out>) at thread/qthread_unix.cpp:212
#6  0x00007f023df3344d in ~__pthread_cleanup_class (arg=0x8fd6c0) at /usr/include/pthread.h:535
#7  QThreadPrivate::start (arg=0x8fd6c0) at thread/qthread_unix.cpp:190
#8  0x00007f0237642a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f023d9357bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f02402cb750 (LWP 7743)):
[KCrash Handler]
#5  0x00007f023d8894b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f023d88cf50 in *__GI_abort () at abort.c:92
#7  0x00007f023d8c1c97 in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f023d8cbdd6 in malloc_printerr (action=3, str=0x7f023d98a73b "corrupted double-linked list", ptr=<value optimized out>) at malloc.c:6217
#9  0x00007f023d8cc1f2 in malloc_consolidate (av=<value optimized out>) at malloc.c:5103
#10 0x00007f023d8cd518 in _int_free (av=0x7f023dbc0e40, p=0x20a2d70) at malloc.c:4968
#11 0x00007f023d8d070c in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3716
#12 0x00007f023e9df3f5 in ~QImageData (this=0x1ef2f50, __in_chrg=<value optimized out>) at image/qimage.cpp:264
#13 0x00007f023e9df593 in ~QImage (this=0xc59138, __in_chrg=<value optimized out>) at image/qimage.cpp:1296
#14 0x00007f023cf36d49 in ~RawImagePlane (this=0xc59110, __in_chrg=<value optimized out>) at ../../khtml/imload/rawimageplane.h:51
#15 0x00007f023cf3b768 in ~PixmapPlane (this=0x201afa0, __in_chrg=<value optimized out>) at ../../khtml/imload/pixmapplane.h:64
#16 ~Image (this=0x201afa0, __in_chrg=<value optimized out>) at ../../khtml/imload/image.cpp:60
#17 0x00007f023ce422cd in khtml::CachedImage::clear (this=0x201abf0) at ../../khtml/misc/loader.cpp:836
#18 0x00007f023ce467b1 in ~CachedImage (this=0x1e3f, __in_chrg=<value optimized out>) at ../../khtml/misc/loader.cpp:438
#19 0x00007f023ce455f8 in qDeleteAll<QHash<QString, khtml::CachedObject*>::const_iterator> () at /usr/include/qt4/QtCore/qalgorithms.h:350
#20 qDeleteAll<QHash<QString, khtml::CachedObject*> > () at /usr/include/qt4/QtCore/qalgorithms.h:358
#21 khtml::Cache::clear () at ../../khtml/misc/loader.cpp:1673
#22 0x00007f023cc9c0cf in ~KHTMLGlobal (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../khtml/khtml_global.cpp:110
#23 0x00007f023cc9c15c in KHTMLGlobal::deref () at ../../khtml/khtml_global.cpp:144
#24 0x00007f023cc8866e in ~KHTMLPart (this=0xa72d20, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../khtml/khtml_part.cpp:625
#25 0x00007f023d62f526 in KParts::Part::slotWidgetDestroyed (this=0xa72d20) at ../../kparts/part.cpp:354
#26 0x00007f023d62f61c in KParts::Part::qt_metacall (this=0xa72d20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1a5cc400) at ./part.moc:76
#27 0x00007f023d62f675 in KParts::ReadOnlyPart::qt_metacall (this=0x1e3f, _c=7743, _id=6, _a=0xffffffffffffffff) at ./part.moc:154
#28 0x00007f023cc9143e in KHTMLPart::qt_metacall (this=0x1e3f, _c=7743, _id=6, _a=0xffffffffffffffff) at ./khtml_part.moc:246
#29 0x00007f023e02eddc in QMetaObject::activate (sender=0xacec90, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#30 0x00007f023e02f314 in QObject::destroyed (this=0x1e3f, _t1=0xacec90) at .moc/release-shared/moc_qobject.cpp:143
#31 0x00007f023e03017b in ~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:757
#32 0x00007f023e984628 in ~QWidget (this=0xacec90, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1380
#33 0x00007f023e027e5c in QObjectPrivate::deleteChildren (this=0xa727e0) at kernel/qobject.cpp:1847
#34 0x00007f023e984993 in ~QWidget (this=0xa6ef80, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#35 0x00007f023f629711 in ~KHBox (this=0x1e3f, __in_chrg=<value optimized out>) at ../../kdeui/widgets/khbox.cpp:51
#36 0x00007f023e027e5c in QObjectPrivate::deleteChildren (this=0xa71f40) at kernel/qobject.cpp:1847
#37 0x00007f023e984993 in ~QWidget (this=0xa6ea10, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#38 0x00007f023ed48be1 in ~QStackedWidget (this=0x1e3f, __in_chrg=<value optimized out>) at widgets/qstackedwidget.cpp:152
#39 0x00007f023e027e5c in QObjectPrivate::deleteChildren (this=0xa68a40) at kernel/qobject.cpp:1847
#40 0x00007f023e984993 in ~QWidget (this=0xa68a10, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#41 0x00007f023ed43728 in ~QSplitter (this=0xa68a10, __in_chrg=<value optimized out>) at widgets/qsplitter.cpp:1008
#42 0x00007f023e027e5c in QObjectPrivate::deleteChildren (this=0xa686b0) at kernel/qobject.cpp:1847
#43 0x00007f023e9844f3 in ~QWidget (this=0x9c2780, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#44 0x00007f023e027e5c in QObjectPrivate::deleteChildren (this=0x983270) at kernel/qobject.cpp:1847
#45 0x00007f023e984993 in ~QWidget (this=0x9083f0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#46 0x00007f023f642185 in ~KMainWindow (this=0x9083f0, __in_chrg=<value optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:467
#47 0x00007f023fee0ec5 in Kontact::MainWindow::~MainWindow() () from /usr/lib/libkontactprivate.so.4
#48 0x00007f023e02911d in QObject::event (this=0x9083f0, e=0x1e3f) at kernel/qobject.cpp:1094
#49 0x00007f023e98815f in QWidget::event (this=0x9083f0, event=0x1e4e300) at kernel/qwidget.cpp:7946
#50 0x00007f023ecfe9db in QMainWindow::event (this=0x9083f0, event=0x1e4e300) at widgets/qmainwindow.cpp:1399
#51 0x00007f023f67c773 in KXmlGuiWindow::event (this=0x1e3f, ev=0x1e3f) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#52 0x00007f023e939efc in QApplicationPrivate::notify_helper (this=0x906a80, receiver=0x9083f0, e=0x1e4e300) at kernel/qapplication.cpp:4056
#53 0x00007f023e9411ce in QApplication::notify (this=0x7fff1a5cd5c0, receiver=0x9083f0, e=0x1e4e300) at kernel/qapplication.cpp:4021
#54 0x00007f023f570ab6 in KApplication::notify (this=0x7fff1a5cd5c0, receiver=0x9083f0, event=0x1e4e300) at ../../kdeui/kernel/kapplication.cpp:302
#55 0x00007f023e019c2c in QCoreApplication::notifyInternal (this=0x7fff1a5cd5c0, receiver=0x9083f0, event=0x1e4e300) at kernel/qcoreapplication.cpp:610
#56 0x00007f023e01a80a in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x8d2080) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#57 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x8d2080) at kernel/qcoreapplication.cpp:1247
#58 0x00007f023e042533 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#59 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:210
#60 0x00007f0237893bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#61 0x00007f0237897588 in ?? () from /lib/libglib-2.0.so.0
#62 0x00007f02378976b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#63 0x00007f023e0421a6 in QEventDispatcherGlib::processEvents (this=0x8d1cb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#64 0x00007f023e9ce4be in QGuiEventDispatcherGlib::processEvents (this=0x1e3f, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#65 0x00007f023e018532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#66 0x00007f023e018904 in QEventLoop::exec (this=0x7fff1a5cd500, flags=) at kernel/qeventloop.cpp:201
#67 0x00007f023e01aab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#68 0x0000000000403f47 in _start ()
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Thierry Chich 2009-11-11 13:48:21 UTC
The crash occur when I click (even right-click) on the icon of kmail in the tray. It is not systematic however.
Comment 2 Dario Andres 2009-12-19 16:40:25 UTC
"malloc_printer" could be related to bug 196207.
If you can reproduce this crash all the times, can you try running KMail using the command "MALLOC_CHECK=   kmail" from Konsole and checking if it also crashes ? 
Thanks
Comment 3 Thierry Chich 2009-12-19 18:16:21 UTC
I am sorry, but there is some time since I saw this bug. I have done some upgrade since this time. It occurs not so frequently now. I am not sure I can do what you are asking.