Bug 314211

Summary: kmail segv while idle
Product: [Applications] kmail2 Reporter: Michael Hammond <bugs>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: asala
Priority: NOR    
Version: 4.9.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Hammond 2013-01-31 21:23:15 UTC
Application: kmail (4.9.4)
KDE Platform Version: 4.9.4
Qt Version: 4.8.3
Operating System: Linux 3.5.0-22-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
Moving message from inbox (Imap) to local folder.  Message did not contain attachment.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa49c8cf7c0 (LWP 7479))]

Thread 4 (Thread 0x7fa493c0b700 (LWP 7483)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa4a7ad4b2d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fa4a7ad4c39 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fa4b07d1e9a in start_thread (arg=0x7fa493c0b700) at pthread_create.c:308
#4  0x00007fa4b2f1dcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fa49330a700 (LWP 7484)):
#0  0x00007fa4b2f12303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa4ab3bed84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa4ab3beea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa4b38a8c16 in QEventDispatcherGlib::processEvents (this=0x7fa48c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fa4b38792bf in QEventLoop::processEvents (this=this@entry=0x7fa493309dc0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa4b3879548 in QEventLoop::exec (this=0x7fa493309dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa4b377ab10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fa4b377daec in QThreadPrivate::start (arg=0x12d8b40) at thread/qthread_unix.cpp:338
#8  0x00007fa4b07d1e9a in start_thread (arg=0x7fa49330a700) at pthread_create.c:308
#9  0x00007fa4b2f1dcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa491dcd700 (LWP 7485)):
#0  0x00007fa4ab3fbba0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fa4ab3fbe49 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa4ab3be60b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa4ab3becab in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fa4ab3beea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fa4b38a8c16 in QEventDispatcherGlib::processEvents (this=0x7fa4840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fa4b38792bf in QEventLoop::processEvents (this=this@entry=0x7fa491dccd90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fa4b3879548 in QEventLoop::exec (this=0x7fa491dccd90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fa4b377ab10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007fa4b38599af in QInotifyFileSystemWatcherEngine::run (this=0x1328c10) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007fa4b377daec in QThreadPrivate::start (arg=0x1328c10) at thread/qthread_unix.cpp:338
#11 0x00007fa4b07d1e9a in start_thread (arg=0x7fa491dcd700) at pthread_create.c:308
#12 0x00007fa4b2f1dcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa49c8cf7c0 (LWP 7479)):
[KCrash Handler]
#6  size (this=0x0) at /usr/include/qt4/QtCore/qlist.h:98
#7  count (this=0x0) at /usr/include/qt4/QtCore/qlist.h:280
#8  MessageList::Core::ModelInvariantRowMapper::modelInvariantIndexToModelIndexRow (this=<optimized out>, invariant=0x2051800) at ../../messagelist/core/modelinvariantrowmapper.cpp:323
#9  0x00007fa4aee546f7 in MessageList::Widget::viewMessageSelected (this=0x1237790, msg=0x20517f0) at ../../messagelist/widget.cpp:216
#10 0x00007fa4aee343df in MessageList::Core::View::slotSelectionChanged (this=0x129a610) at ../../messagelist/core/view.cpp:1969
#11 0x00007fa4b388ff5f in QMetaObject::activate (sender=0x12a7f60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffeac0d3e0) at kernel/qobject.cpp:3547
#12 0x00007fa4b42fd077 in QItemSelectionModel::selectionChanged (this=this@entry=0x12a7f60, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#13 0x00007fa4b43021ed in QItemSelectionModel::emitSelectionChanged (this=this@entry=0x12a7f60, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1600
#14 0x00007fa4b4302edc in QItemSelectionModel::select (this=0x12a7f60, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1110
#15 0x00007fa4b42feb8b in QItemSelectionModel::select (this=this@entry=0x12a7f60, index=..., command=...) at itemviews/qitemselectionmodel.cpp:985
#16 0x00007fa4b42fd2c1 in QItemSelectionModel::setCurrentIndex (this=0x12a7f60, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1174
#17 0x00007fa4b42a744a in QAbstractItemView::setCurrentIndex (this=0x129a610, index=...) at itemviews/qabstractitemview.cpp:1022
#18 0x00007fa4aee35266 in MessageList::Core::View::selectPreviousMessageItem (this=0x129a610, messageTypeFilter=<optimized out>, existingSelectionBehaviour=MessageList::Core::ClearExistingSelection, centerItem=<optimized out>, loop=<optimized out>) at ../../messagelist/core/view.cpp:1542
#19 0x00007fa4b49b3d4a in KMMainWidget::qt_static_metacall (_o=0x10c30a0, _c=<optimized out>, _id=<optimized out>, _a=0x7fffeac0d950) at ./kmmainwidget.moc:449
#20 0x00007fa4b388ff5f in QMetaObject::activate (sender=0x13ec6b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffeac0d950) at kernel/qobject.cpp:3547
#21 0x00007fa4b3d98a32 in QAction::triggered (this=this@entry=0x13ec6b0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#22 0x00007fa4b3d98c20 in QAction::activate (this=0x13ec6b0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#23 0x00007fa4b3d98d87 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#24 0x00007fa4b54c3867 in KAction::event (this=<optimized out>, event=0x7fffeac0def0) at ../../kdeui/actions/kaction.cpp:131
#25 0x00007fa4b3d9ee9c in QApplicationPrivate::notify_helper (this=this@entry=0xc7ebd0, receiver=receiver@entry=0x13ec6b0, e=e@entry=0x7fffeac0def0) at kernel/qapplication.cpp:4562
#26 0x00007fa4b3da330a in QApplication::notify (this=0x7fffeac0f640, receiver=0x13ec6b0, e=0x7fffeac0def0) at kernel/qapplication.cpp:4423
#27 0x00007fa4b559d1d6 in KApplication::notify (this=0x7fffeac0f640, receiver=0x13ec6b0, event=0x7fffeac0def0) at ../../kdeui/kernel/kapplication.cpp:311
#28 0x00007fa4b387a56e in QCoreApplication::notifyInternal (this=0x7fffeac0f640, receiver=0x13ec6b0, event=0x7fffeac0def0) at kernel/qcoreapplication.cpp:915
#29 0x00007fa4b3dcfd74 in sendEvent (event=0x7fffeac0def0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#30 QShortcutMap::dispatchEvent (this=this@entry=0xc7ecf0, e=e@entry=0x7fffeac0e4c0) at kernel/qshortcutmap.cpp:884
#31 0x00007fa4b3dd13a3 in QShortcutMap::tryShortcutEvent (this=0xc7ecf0, o=<optimized out>, e=0x7fffeac0e4c0) at kernel/qshortcutmap.cpp:364
#32 0x00007fa4b3da4fe9 in QApplication::notify (this=0x7fffeac0f640, receiver=0x129a610, e=0x7fffeac0e4c0) at kernel/qapplication.cpp:3986
#33 0x00007fa4b559d1d6 in KApplication::notify (this=0x7fffeac0f640, receiver=0x129a610, event=0x7fffeac0e4c0) at ../../kdeui/kernel/kapplication.cpp:311
#34 0x00007fa4b387a56e in QCoreApplication::notifyInternal (this=0x7fffeac0f640, receiver=0x129a610, event=0x7fffeac0e4c0) at kernel/qcoreapplication.cpp:915
#35 0x00007fa4b3e3fe79 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x129a610, grab=grab@entry=false, type=QEvent::KeyPress, code=80, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=33, nativeVirtualKey=112, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#36 0x00007fa4b3e402b1 in QKeyMapperPrivate::translateKeyEvent (this=0xd57730, keyWidget=0x129a610, event=0x7fffeac0eef0, grab=<optimized out>) at kernel/qkeymapper_x11.cpp:1836
#37 0x00007fa4b3e1bed9 in QApplication::x11ProcessEvent (this=0x7fffeac0f640, event=0x7fffeac0eef0) at kernel/qapplication_x11.cpp:3630
#38 0x00007fa4b3e43fa2 in x11EventSourceDispatch (s=0xc35230, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007fa4ab3beab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fa4ab3bede8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007fa4ab3beea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007fa4b38a8bf6 in QEventDispatcherGlib::processEvents (this=0xbdbb00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#43 0x00007fa4b3e43c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007fa4b38792bf in QEventLoop::processEvents (this=this@entry=0x7fffeac0f2c0, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007fa4b3879548 in QEventLoop::exec (this=0x7fffeac0f2c0, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007fa4b387e708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#47 0x0000000000402cd2 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:148

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-05-22 16:57:50 UTC
*** Bug 320140 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-24 18:24:28 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 kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 21:24:14 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.