Bug 282033

Summary: KMail crash while changing folder
Product: [Applications] kmail2 Reporter: Torgny Nyblom <nyblom>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash    
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Torgny Nyblom 2011-09-14 18:09:55 UTC
Application: kmail (4.8 pre)
KDE Platform Version: 4.7.1 (4.7.1) "release 1"
Qt Version: 4.7.4
Operating System: Linux 2.6.37.6-0.7-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

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

Reading mail using the "+" key.
Last key stroke triggered a folder change.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff43b074760 (LWP 11548))]

Thread 3 (Thread 0x7ff41e203700 (LWP 11577)):
#0  0x00007ff43625d38c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff42cac91d4 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x00007ff436258a3f in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff43842e67d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff41d8f2700 (LWP 11578)):
#0  0x00007ff438425503 in poll () from /lib64/libc.so.6
#1  0x00007ff430691114 in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007ff430691650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007ff439a1c636 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007ff4399f0c22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007ff4399f0e35 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007ff439905be4 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007ff4399084d5 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007ff436258a3f in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff43842e67d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff43b074760 (LWP 11548)):
[KCrash Handler]
#6  MessageList::Core::Item::parent (this=0x707240) at /usr/src/debug/kdepim-4.7.42/messagelist/core/item.cpp:403
#7  0x00007ff434040541 in MessageList::Core::Model::index (this=0xddb020, item=0x707240, column=0) at /usr/src/debug/kdepim-4.7.42/messagelist/core/model.cpp:537
#8  0x00007ff4340678c6 in MessageList::Core::View::messageItemAfter (this=0xdcc930, referenceItem=0x85e9270, messageTypeFilter=MessageList::Core::MessageTypeUnreadOnly, loop=true) at /usr/src/debug/kdepim-4.7.42/messagelist/core/view.cpp:1178
#9  0x00007ff43406eab1 in MessageList::Core::View::selectNextMessageItem (this=0xdcc930, messageTypeFilter=<value optimized out>, existingSelectionBehaviour=MessageList::Core::ClearExistingSelection, centerItem=true, loop=<value optimized out>) at /usr/src/debug/kdepim-4.7.42/messagelist/core/view.cpp:1424
#10 0x00007ff439e44d55 in KMMainWidget::slotSelectNextUnreadMessage (this=0xcd17c0) at /usr/src/debug/kdepim-4.7.42/kmail/kmmainwidget.cpp:2604
#11 0x00007ff439e5ed6d in KMMainWidget::qt_metacall (this=0xcd17c0, _c=QMetaObject::InvokeMetaMethod, _id=105, _a=0x7fff1f55c7c0) at /usr/src/debug/kdepim-4.7.42/build/kmail/kmmainwidget.moc:454
#12 0x00007ff439a05e8f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#13 0x00007ff438daded2 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#14 0x00007ff438dae0ca in QAction::activate (this=0xe72d60, event=<value optimized out>) at kernel/qaction.cpp:1257
#15 0x00007ff438dae247 in QAction::event (this=<value optimized out>, e=<value optimized out>) at kernel/qaction.cpp:1183
#16 0x00007ff43a9abe1d in KAction::event (this=<value optimized out>, event=0x7fff1f55ce50) at /usr/src/debug/kdelibs-4.7.42/kdeui/actions/kaction.cpp:131
#17 0x00007ff438db4264 in QApplicationPrivate::notify_helper (this=0x65cfe0, receiver=0xe72d60, e=0x7fff1f55ce50) at kernel/qapplication.cpp:4481
#18 0x00007ff438dbc81a in QApplication::notify (this=<value optimized out>, receiver=0xe72d60, e=0x7fff1f55ce50) at kernel/qapplication.cpp:4360
#19 0x00007ff43aa8ead6 in KApplication::notify (this=0x7fff1f55e480, receiver=0xe72d60, event=0x7fff1f55ce50) at /usr/src/debug/kdelibs-4.7.42/kdeui/kernel/kapplication.cpp:311
#20 0x00007ff4399f17cc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#21 0x00007ff438de6b90 in sendEvent (this=<value optimized out>, e=0x7fff1f55d440) at ../../src/corelib/kernel/qcoreapplication.h:215
#22 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fff1f55d440) at kernel/qshortcutmap.cpp:879
#23 0x00007ff438de8088 in QShortcutMap::tryShortcutEvent (this=0x65d108, o=<value optimized out>, e=0x7fff1f55d440) at kernel/qshortcutmap.cpp:364
#24 0x00007ff438dbe3dc in QApplication::notify (this=0x7fff1f55e480, receiver=0xdcc930, e=0x7fff1f55d440) at kernel/qapplication.cpp:3923
#25 0x00007ff43aa8ead6 in KApplication::notify (this=0x7fff1f55e480, receiver=0xdcc930, event=0x7fff1f55d440) at /usr/src/debug/kdelibs-4.7.42/kdeui/kernel/kapplication.cpp:311
#26 0x00007ff4399f17cc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#27 0x00007ff438e56078 in QKeyMapper::sendKeyEvent (keyWidget=0xdcc930, grab=<value optimized out>, type=QEvent::KeyPress, code=43, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, nativeScanCode=86, nativeVirtualKey=65451, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#28 0x00007ff438e564ff in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0xdcc930, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1836
#29 0x00007ff438e321ac in QApplication::x11ProcessEvent (this=0x7fff1f55e480, event=0x7fff1f55e020) at kernel/qapplication_x11.cpp:3480
#30 0x00007ff438e5a512 in x11EventSourceDispatch (s=0x660a90, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007ff430690bd3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x00007ff4306913b0 in ?? () from /lib64/libglib-2.0.so.0
#33 0x00007ff430691650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x00007ff439a1c5df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007ff438e5a1ae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007ff4399f0c22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#37 0x00007ff4399f0e35 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#38 0x00007ff4399f527b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#39 0x000000000040316e in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.7.42/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 18:18:22 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 2 Denis Kurz 2017-01-07 21:37:44 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.