Bug 292284

Summary: Kmail closed while trying to receive mail from pop server
Product: [Applications] kmail2 Reporter: Thorsteinn A. Malmjursson <lightningstrike35>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: montel
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thorsteinn A. Malmjursson 2012-01-23 18:22:45 UTC
Application: kmail (4.7.3)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-15-generic i686
Distribution: Ubuntu 11.10

-- Information about the crash:
I had just completed a mail check, and clicked on the first of the emails I'd received to open it - 2 or 3 windows opened concurrently, kmail hung and died.

The crash can be reproduced some of the time.

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

Thread 4 (Thread 0xb5003b70 (LWP 12307)):
#0  0x005e2416 in __kernel_vsyscall ()
#1  0x08875a5c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x00cddcfc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb7182883 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb718299f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0x08871d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0x00cd00ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xb46dab70 (LWP 12308)):
#0  0x08873dbd in pthread_mutex_lock () from /lib/i386-linux-gnu/libpthread.so.0
#1  0x00cddf14 in pthread_mutex_lock () from /lib/i386-linux-gnu/libc.so.6
#2  0x01ffd933 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x01ffdc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x0358cb37 in QEventDispatcherGlib::processEvents (this=0x9e56708, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0355d1dd in QEventLoop::processEvents (this=0xb46da2c0, flags=...) at kernel/qeventloop.cpp:149
#6  0x0355d421 in QEventLoop::exec (this=0xb46da2c0, flags=...) at kernel/qeventloop.cpp:201
#7  0x0346090b in QThread::exec (this=0x9e55d90) at thread/qthread.cpp:498
#8  0x034609fb in QThread::run (this=0x9e55d90) at thread/qthread.cpp:565
#9  0x034637b3 in QThreadPrivate::start (arg=0x9e55d90) at thread/qthread_unix.cpp:331
#10 0x08871d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#11 0x00cd00ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xb2c14b70 (LWP 12309)):
#0  0x005e2416 in __kernel_vsyscall ()
#1  0x00cc140e in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x0200c34b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x01ffd896 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x01ffdc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x0358cb37 in QEventDispatcherGlib::processEvents (this=0x9ec8188, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x0355d1dd in QEventLoop::processEvents (this=0xb2c14290, flags=...) at kernel/qeventloop.cpp:149
#7  0x0355d421 in QEventLoop::exec (this=0xb2c14290, flags=...) at kernel/qeventloop.cpp:201
#8  0x0346090b in QThread::exec (this=0x9e6b0f8) at thread/qthread.cpp:498
#9  0x0353de2d in QInotifyFileSystemWatcherEngine::run (this=0x9e6b0f8) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x034637b3 in QThreadPrivate::start (arg=0x9e6b0f8) at thread/qthread_unix.cpp:331
#11 0x08871d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0x00cd00ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb6144730 (LWP 12301)):
[KCrash Handler]
#7  0x0355d2f7 in data (this=0x4) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
#8  qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2343
#9  d_func (this=0x0) at ../../include/QtCore/../../src/corelib/kernel/qeventloop.h:58
#10 QEventLoop::exit (this=0x0, returnCode=0) at kernel/qeventloop.cpp:279
#11 0x00fbb5fc in QDragManager::eventFilter (this=0xa299360, o=0xa28ff00, e=0xbf9ad80c) at kernel/qdnd_x11.cpp:1333
#12 0x0355e26b in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x9a68b40, receiver=0xa28ff00, event=0xbf9ad80c) at kernel/qcoreapplication.cpp:883
#13 0x00f1ecfa in QApplicationPrivate::notify_helper (this=0x9a68b40, receiver=0xa28ff00, e=0xbf9ad80c) at kernel/qapplication.cpp:4461
#14 0x00f24deb in QApplication::notify (this=0x9a68b40, receiver=0xa28ff00, e=0xbf9ad80c) at kernel/qapplication.cpp:4047
#15 0x002f7971 in KApplication::notify (this=0xbf9af19c, receiver=0xa28ff00, event=0xbf9ad80c) at ../../kdeui/kernel/kapplication.cpp:311
#16 0x0355e19e in QCoreApplication::notifyInternal (this=0xbf9af19c, receiver=0xa28ff00, event=0xbf9ad80c) at kernel/qcoreapplication.cpp:787
#17 0x00f1fd45 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#18 QApplicationPrivate::sendMouseEvent (receiver=0xa28ff00, event=0xbf9ad80c, alienWidget=0x9cd5210, nativeWidget=0x9b14290, buttonDown=0x1889eb4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#19 0x00fac304 in QETWidget::translateMouseEvent (this=0x9b14290, event=0xbf9adc8c) at kernel/qapplication_x11.cpp:4571
#20 0x00faae8d in QApplication::x11ProcessEvent (this=0xbf9af19c, event=0xbf9adc8c) at kernel/qapplication_x11.cpp:3693
#21 0x00fd728c in x11EventSourceDispatch (s=0x9a6bd40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#22 0x01ffd25f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#23 0x01ffd990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0x01ffdc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0x0358cada in QEventDispatcherGlib::processEvents (this=0x9a31250, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#26 0x00fd6e7a in QGuiEventDispatcherGlib::processEvents (this=0x9a31250, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x0355d1dd in QEventLoop::processEvents (this=0xa28f870, flags=...) at kernel/qeventloop.cpp:149
#28 0x0355d421 in QEventLoop::exec (this=0xa28f870, flags=...) at kernel/qeventloop.cpp:201
#29 0x00fbb3a8 in QDragManager::drag (this=0xa299360, o=0x9b24480) at kernel/qdnd_x11.cpp:1981
#30 0x00f326b1 in QDrag::exec (this=0x9b24480, supportedActions=..., defaultDropAction=Qt::IgnoreAction) at kernel/qdrag.cpp:284
#31 0x00f32755 in QDrag::exec (this=0x9b24480, supportedActions=...) at kernel/qdrag.cpp:239
#32 0x06d3ae86 in MessageList::Widget::viewStartDragRequest() () from /usr/lib/libmessagelist.so.4
#33 0x06d0c6da in MessageList::Core::View::mouseMoveEvent(QMouseEvent*) () from /usr/lib/libmessagelist.so.4
#34 0x00f79004 in QWidget::event (this=0x9d06ab0, event=0xbf9ae92c) at kernel/qwidget.cpp:8280
#35 0x0137e285 in QFrame::event (this=0x9d06ab0, e=0xbf9ae92c) at widgets/qframe.cpp:557
#36 0x01410821 in QAbstractScrollArea::viewportEvent (this=0x9d06ab0, e=0xbf9ae92c) at widgets/qabstractscrollarea.cpp:1043
#37 0x014b2bbc in QAbstractItemView::viewportEvent (this=0x9d06ab0, event=0xbf9ae92c) at itemviews/qabstractitemview.cpp:1628
#38 0x014fd376 in QTreeView::viewportEvent (this=0x9d06ab0, event=0xbf9ae92c) at itemviews/qtreeview.cpp:1256
#39 0x01412f36 in viewportEvent (this=<optimized out>, event=0xbf9ae92c) at widgets/qabstractscrollarea_p.h:100
#40 eventFilter (e=0xbf9ae92c, this=<optimized out>, o=<optimized out>) at widgets/qabstractscrollarea_p.h:116
#41 QAbstractScrollAreaFilter::eventFilter (this=0x9e28d58, o=0x9cd5210, e=0xbf9ae92c) at widgets/qabstractscrollarea_p.h:115
#42 0x0355e336 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x9a68b40, receiver=0x9cd5210, event=0xbf9ae92c) at kernel/qcoreapplication.cpp:902
#43 0x00f1ed52 in notify_helper (e=0xbf9ae92c, receiver=0x9cd5210, this=0x9a68b40) at kernel/qapplication.cpp:4482
#44 QApplicationPrivate::notify_helper (this=0x9a68b40, receiver=0x9cd5210, e=0xbf9ae92c) at kernel/qapplication.cpp:4458
#45 0x00f24deb in QApplication::notify (this=0x9a68b40, receiver=0x9cd5210, e=0xbf9ae92c) at kernel/qapplication.cpp:4047
#46 0x002f7971 in KApplication::notify (this=0xbf9af19c, receiver=0x9cd5210, event=0xbf9ae92c) at ../../kdeui/kernel/kapplication.cpp:311
#47 0x0355e19e in QCoreApplication::notifyInternal (this=0xbf9af19c, receiver=0x9cd5210, event=0xbf9ae92c) at kernel/qcoreapplication.cpp:787
#48 0x00f1fd45 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#49 QApplicationPrivate::sendMouseEvent (receiver=0x9cd5210, event=0xbf9ae92c, alienWidget=0x9cd5210, nativeWidget=0x9b14290, buttonDown=0x1889eb4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#50 0x00fac304 in QETWidget::translateMouseEvent (this=0x9b14290, event=0xbf9aedac) at kernel/qapplication_x11.cpp:4571
#51 0x00faae8d in QApplication::x11ProcessEvent (this=0xbf9af19c, event=0xbf9aedac) at kernel/qapplication_x11.cpp:3693
#52 0x00fd728c in x11EventSourceDispatch (s=0x9a6bd40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x01ffd25f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#54 0x01ffd990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#55 0x01ffdc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#56 0x0358cada in QEventDispatcherGlib::processEvents (this=0x9a31250, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#57 0x00fd6e7a in QGuiEventDispatcherGlib::processEvents (this=0x9a31250, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x0355d1dd in QEventLoop::processEvents (this=0xbf9af0b4, flags=...) at kernel/qeventloop.cpp:149
#59 0x0355d421 in QEventLoop::exec (this=0xbf9af0b4, flags=...) at kernel/qeventloop.cpp:201
#60 0x0356219d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#61 0x00f1c924 in QApplication::exec () at kernel/qapplication.cpp:3760
#62 0x0804a266 in ?? ()
#63 0x00c17113 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#64 0x0804a709 in _start ()

Reported using DrKonqi
Comment 1 Laurent Montel 2012-01-23 18:24:40 UTC
Reproductible ?
Comment 2 Thorsteinn A. Malmjursson 2012-01-23 21:09:32 UTC
Occasionally, Laurent, one out of every 7 or 8 opens results in this happening.  It's not all of the time, but happens some of it.
Comment 3 Denis Kurz 2016-09-24 18:01:16 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 4 Denis Kurz 2017-01-07 21:31:54 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.