Bug 286097

Summary: kmail2 crashes deleting attachements
Product: [Applications] kontact Reporter: e-post <e-post>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: winter
Priority: NOR    
Version: 4.7.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.4
Sentry Crash Report:

Description e-post 2011-11-08 11:24:36 UTC
Application: kontact (4.7.2)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
while deleting e-mail attachements kmail2 crashes

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f0328d077a0 (LWP 4310))]

Thread 4 (Thread 0x7f030eb46700 (LWP 4311)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0325564c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f0325564d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f0320963efc in start_thread (arg=0x7f030eb46700) at pthread_create.c:304
#4  0x00007f032627289d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f030e22d700 (LWP 4312)):
#0  0xffffffffff60014c in ?? ()
#1  0x00007f030e22cb20 in ?? ()
#2  0x00007fff3c9ff7e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f02bec4f700 (LWP 4331)):
#0  0x00007f0326266773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f031fe95f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f031fe96429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f03276adf3e in QEventDispatcherGlib::processEvents (this=0x17c02f0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f0327681cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0327681ef7 in QEventLoop::exec (this=0x7f02bec4edb0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f032759927f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f0327664cbf in QInotifyFileSystemWatcherEngine::run (this=0x1982c10) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f032759bd05 in QThreadPrivate::start (arg=0x1982c10) at thread/qthread_unix.cpp:331
#9  0x00007f0320963efc in start_thread (arg=0x7f02bec4f700) at pthread_create.c:304
#10 0x00007f032627289d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0328d077a0 (LWP 4310)):
[KCrash Handler]
#6  begin (this=0x40) at /usr/include/qt4/QtCore/qlist.h:861
#7  QList<KMime::Content*>::contains (this=0x40, t=@0x7fff3c994248) at /usr/include/qt4/QtCore/qlist.h:863
#8  0x00007f031d56143c in KMime::Content::removeContent (this=0x195edc0, c=0x15db2f0, del=true) at ../../kmime/kmime_content.cpp:566
#9  0x00007f02c3efd23b in MessageViewer::ViewerPrivate::deleteAttachment (this=0x146a220, node=0x15db2f0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f02c3f0a0f7 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x146a220) at ../../messageviewer/viewer_p.cpp:2320
#11 0x00007f02c3f0d34d in MessageViewer::ViewerPrivate::qt_metacall (this=0x146a220, _c=QMetaObject::InvokeMetaMethod, _id=55, _a=0x7fff3c994570) at ./viewer_p.moc:248
#12 0x00007f0327695eba in QMetaObject::activate (sender=0x10d1870, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff3c994570) at kernel/qobject.cpp:3278
#13 0x00007f0326a2cb62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#14 0x00007f0326a2cd4f in QAction::activate (this=0x10d1870, event=<optimized out>) at kernel/qaction.cpp:1257
#15 0x00007f0326e67609 in QMenuPrivate::activateCausedStack (this=0x1539a50, causedStack=..., action=0x10d1870, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1005
#16 0x00007f0326e6d252 in QMenuPrivate::activateAction (this=0x1539a50, action=0x10d1870, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1097
#17 0x00007f0328179cb0 in KMenu::mouseReleaseEvent (this=0x7fff3c995be0, e=0x7fff3c994f80) at ../../kdeui/widgets/kmenu.cpp:464
#18 0x00007f0326a83c9a in QWidget::event (this=0x7fff3c995be0, event=0x7fff3c994f80) at kernel/qwidget.cpp:8295
#19 0x00007f0326e6e7fb in QMenu::event (this=0x7fff3c995be0, e=0x7fff3c994f80) at widgets/qmenu.cpp:2405
#20 0x00007f0326a33424 in notify_helper (e=0x7fff3c994f80, receiver=0x7fff3c995be0, this=0x74a650) at kernel/qapplication.cpp:4486
#21 QApplicationPrivate::notify_helper (this=0x74a650, receiver=0x7fff3c995be0, e=0x7fff3c994f80) at kernel/qapplication.cpp:4458
#22 0x00007f0326a38c6b in QApplication::notify (this=<optimized out>, receiver=0x7fff3c995be0, e=0x7fff3c994f80) at kernel/qapplication.cpp:4047
#23 0x00007f03280b8126 in KApplication::notify (this=0x7fff3c997720, receiver=0x7fff3c995be0, event=0x7fff3c994f80) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f0327682afc in QCoreApplication::notifyInternal (this=0x7fff3c997720, receiver=0x7fff3c995be0, event=0x7fff3c994f80) at kernel/qcoreapplication.cpp:787
#25 0x00007f0326a343f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x7fff3c995be0, event=0x7fff3c994f80, alienWidget=0x0, nativeWidget=0x7fff3c995be0, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#27 0x00007f0326ab4001 in QETWidget::translateMouseEvent (this=0x7fff3c995be0, event=<optimized out>) at kernel/qapplication_x11.cpp:4502
#28 0x00007f0326ab28be in QApplication::x11ProcessEvent (this=0x7fff3c997720, event=0x7fff3c9957a0) at kernel/qapplication_x11.cpp:3690
#29 0x00007f0326adb412 in x11EventSourceDispatch (s=0x74d670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f031fe95a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f031fe96258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f031fe96429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f03276aded6 in QEventDispatcherGlib::processEvents (this=0x71dfd0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#34 0x00007f0326adb07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f0327681cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f0327681ef7 in QEventLoop::exec (this=0x7fff3c995b70, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007f0326e6a711 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2049
#38 0x00007f02c3ef9c29 in MessageViewer::ViewerPrivate::showContextMenu (this=0x146a220, content=0x15db2f0, pos=...) at ../../messageviewer/viewer_p.cpp:1600
#39 0x00007f02c3efaf90 in MessageViewer::ViewerPrivate::slotMimeTreeContextMenuRequested (this=0x146a220, pos=...) at ../../messageviewer/viewer_p.cpp:2204
#40 0x00007f02c3f0d2d1 in MessageViewer::ViewerPrivate::qt_metacall (this=0x146a220, _c=QMetaObject::InvokeMetaMethod, _id=47, _a=0x7fff3c9960e0) at ./viewer_p.moc:240
#41 0x00007f0327695eba in QMetaObject::activate (sender=0x146a1f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff3c9960e0) at kernel/qobject.cpp:3278
#42 0x00007f0326a7a372 in QWidget::customContextMenuRequested (this=<optimized out>, _t1=<optimized out>) at .moc/release-shared/moc_qwidget.cpp:360
#43 0x00007f0326a84631 in QWidget::event (this=0x146a1f0, event=0x7fff3c996af0) at kernel/qwidget.cpp:8465
#44 0x00007f0326e2c4f6 in QFrame::event (this=0x146a1f0, e=0x7fff3c996af0) at widgets/qframe.cpp:557
#45 0x00007f0326f3d19b in QAbstractItemView::viewportEvent (this=0x146a1f0, event=0x7fff3c996af0) at itemviews/qabstractitemview.cpp:1628
#46 0x00007f0326f81d35 in QTreeView::viewportEvent (this=0x146a1f0, event=0x7fff3c996af0) at itemviews/qtreeview.cpp:1256
#47 0x00007f0327682c88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x146b0b0, event=0x7fff3c996af0) at kernel/qcoreapplication.cpp:902
#48 0x00007f0326a333ef in notify_helper (e=0x7fff3c996af0, receiver=0x146b0b0, this=0x74a650) at kernel/qapplication.cpp:4482
#49 QApplicationPrivate::notify_helper (this=0x74a650, receiver=0x146b0b0, e=0x7fff3c996af0) at kernel/qapplication.cpp:4458
#50 0x00007f0326a38779 in QApplication::notify (this=<optimized out>, receiver=0x146b0b0, e=0x7fff3c996af0) at kernel/qapplication.cpp:4126
#51 0x00007f03280b8126 in KApplication::notify (this=0x7fff3c997720, receiver=0x146b0b0, event=0x7fff3c996af0) at ../../kdeui/kernel/kapplication.cpp:311
#52 0x00007f0327682afc in QCoreApplication::notifyInternal (this=0x7fff3c997720, receiver=0x146b0b0, event=0x7fff3c996af0) at kernel/qcoreapplication.cpp:787
#53 0x00007f0326ab39aa in sendSpontaneousEvent (event=0x7fff3c996af0, receiver=0x146b0b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#54 QETWidget::translateMouseEvent (this=0x139b070, event=<optimized out>) at kernel/qapplication_x11.cpp:4573
#55 0x00007f0326ab28be in QApplication::x11ProcessEvent (this=0x7fff3c997720, event=0x7fff3c9972e0) at kernel/qapplication_x11.cpp:3690
#56 0x00007f0326adb412 in x11EventSourceDispatch (s=0x74d670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#57 0x00007f031fe95a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f031fe96258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f031fe96429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f03276aded6 in QEventDispatcherGlib::processEvents (this=0x71dfd0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#61 0x00007f0326adb07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#62 0x00007f0327681cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#63 0x00007f0327681ef7 in QEventLoop::exec (this=0x7fff3c9976b0, flags=...) at kernel/qeventloop.cpp:201
#64 0x00007f0327686789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#65 0x0000000000403629 in main (argc=1, argv=0x7fff3c997d48) at ../../../kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Allen Winter 2011-11-08 22:26:44 UTC
fixed in commit a08d9b1bd142e96d12cdb9293e6430e522cd84f0

need to backport to 4.7
Comment 2 Allen Winter 2011-11-12 21:26:45 UTC
backport in 409d3b3c65257707aaa28936cb2cb0cf38094dc5