Bug 300253

Summary: Kmail crashed while trying to send reply
Product: [Applications] kmail2 Reporter: Michael Hammond <bugs>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: nicolas.religieux
Priority: NOR    
Version: 4.8.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Hammond 2012-05-18 14:33:23 UTC
Application: kmail (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
had just hit send on reply to email in IMAP inbox

- Custom settings of the application:
IMAP server is Exchange 2007
Large local folder collection

The crash can be reproduced some of the time.

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

Thread 4 (Thread 0x7f8c5d985700 (LWP 9946)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8c71ce3dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f8c71ce3f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f8c7a815e9a in start_thread (arg=0x7f8c5d985700) at pthread_create.c:308
#4  0x00007f8c7cd464bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8c5d084700 (LWP 9947)):
#0  __pthread_getspecific (key=<optimized out>) at pthread_getspecific.c:67
#1  0x00007f8c75611e80 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8c755f0115 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8c7d6d1426 in QEventDispatcherGlib::processEvents (this=0x7f8c580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f8c7d6a0c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8c7d6a0ed7 in QEventLoop::exec (this=0x7f8c5d083dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f8c7d59ffa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f8c7d5a2fcb in QThreadPrivate::start (arg=0x187c800) at thread/qthread_unix.cpp:298
#8  0x00007f8c7a815e9a in start_thread (arg=0x7f8c5d084700) at pthread_create.c:308
#9  0x00007f8c7cd464bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8c16242700 (LWP 9950)):
#0  0x00007f8c7cd3ab03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8c755efff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8c755f0124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8c7d6d1426 in QEventDispatcherGlib::processEvents (this=0x7f8c080008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f8c7d6a0c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8c7d6a0ed7 in QEventLoop::exec (this=0x7f8c16241d90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f8c7d59ffa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f8c7d6809ff in QInotifyFileSystemWatcherEngine::run (this=0x1bacd60) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8c7d5a2fcb in QThreadPrivate::start (arg=0x1bacd60) at thread/qthread_unix.cpp:298
#9  0x00007f8c7a815e9a in start_thread (arg=0x7f8c16242700) at pthread_create.c:308
#10 0x00007f8c7cd464bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8c7f9e77c0 (LWP 8212)):
[KCrash Handler]
#6  0x00007f8c7cc8a445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f8c7cc8dbab in __GI_abort () at abort.c:91
#8  0x00007f8c7ccc7e2e in __libc_message (do_abort=2, fmt=0x7f8c7cdd00d0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#9  0x00007f8c7ccd2626 in malloc_printerr (action=3, str=0x7f8c7cdd0298 "free(): invalid next size (fast)", ptr=<optimized out>) at malloc.c:5007
#10 0x00007f8c7de28985 in QTextLayout::~QTextLayout (this=<optimized out>, __in_chrg=<optimized out>) at text/qtextlayout.cpp:366
#11 0x00007f8c7de51c6f in free (this=<optimized out>) at text/qtextdocument_p.h:109
#12 ~QFragmentMap (this=0x33d77e8, __in_chrg=<optimized out>) at ../../include/QtGui/private/../../../src/gui/text/qfragmentmap_p.h:807
#13 QTextDocumentPrivate::~QTextDocumentPrivate (this=0x33d76d0, __in_chrg=<optimized out>) at text/qtextdocument_p.cpp:290
#14 0x00007f8c7de52179 in QTextDocumentPrivate::~QTextDocumentPrivate (this=0x33d76d0, __in_chrg=<optimized out>) at text/qtextdocument_p.cpp:298
#15 0x00007f8c7d6babd0 in cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#16 ~QScopedPointer (this=0x344a628, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#17 QObject::~QObject (this=0x344a620, __in_chrg=<optimized out>) at kernel/qobject.cpp:817
#18 0x00007f8c7de3fba9 in QTextDocument::~QTextDocument (this=0x344a620, __in_chrg=<optimized out>) at text/qtextdocument.cpp:362
#19 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x33d7560) at kernel/qobject.cpp:1908
#20 0x00007f8c7d6bab9c in QObject::~QObject (this=0x23a20a0, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#21 0x00007f8c7e044b83 in ~QTextEditControl (this=0x23a20a0, __in_chrg=<optimized out>) at widgets/qtextedit.cpp:82
#22 QTextEditControl::~QTextEditControl (this=0x23a20a0, __in_chrg=<optimized out>) at widgets/qtextedit.cpp:82
#23 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x3216970) at kernel/qobject.cpp:1908
#24 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x3edf820, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#25 0x00007f8c7e7fb169 in KMComposerEditor::~KMComposerEditor (this=0x3edf820, __in_chrg=<optimized out>) at ../../kmail/kmcomposereditor.cpp:58
#26 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x3473f30) at kernel/qobject.cpp:1908
#27 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x2ea30a0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#28 0x00007f8c7dc0fa19 in QWidget::~QWidget (this=0x2ea30a0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1700
#29 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x2fb78a0) at kernel/qobject.cpp:1908
#30 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x31cb440, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#31 0x00007f8c7e02d2c9 in QSplitter::~QSplitter (this=0x31cb440, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#32 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x31cb200) at kernel/qobject.cpp:1908
#33 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x3d59440, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#34 0x00007f8c7e02d2c9 in QSplitter::~QSplitter (this=0x3d59440, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#35 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x31499f0) at kernel/qobject.cpp:1908
#36 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x3213e90, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#37 0x00007f8c7e02d2c9 in QSplitter::~QSplitter (this=0x3213e90, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#38 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x3d41c90) at kernel/qobject.cpp:1908
#39 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x2f07e30, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#40 0x00007f8c7dc0fa19 in QWidget::~QWidget (this=0x2f07e30, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1700
#41 0x00007f8c7d6b4935 in QObjectPrivate::deleteChildren (this=0x3cc3f10) at kernel/qobject.cpp:1908
#42 0x00007f8c7dc0f740 in QWidget::~QWidget (this=0x4039e50, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#43 0x00007f8c7f4bb405 in KMainWindow::~KMainWindow (this=0x4039e50, __in_chrg=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:467
#44 0x00007f8c7e824c96 in ~Composer (__vtt_parm=0x7f8c7ead32c8, this=0x4039e50, __in_chrg=<optimized out>) at ../../kmail/composer.h:37
#45 KMComposeWin::~KMComposeWin (this=0x4039e50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmcomposewin.cpp:466
#46 0x00007f8c7e824f19 in KMComposeWin::~KMComposeWin (this=0x4039e50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmcomposewin.cpp:486
#47 0x00007f8c7d6bb478 in QObject::event (this=0x4039e50, e=<optimized out>) at kernel/qobject.cpp:1176
#48 0x00007f8c7dc14b7b in QWidget::event (this=0x4039e50, event=0x34c0660) at kernel/qwidget.cpp:8821
#49 0x00007f8c7dfeec4b in QMainWindow::event (this=0x4039e50, event=0x34c0660) at widgets/qmainwindow.cpp:1478
#50 0x00007f8c7f4f9428 in KXmlGuiWindow::event (this=0x4039e50, ev=0x34c0660) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#51 0x00007f8c7dbc4894 in notify_helper (e=0x34c0660, receiver=0x4039e50, this=0x11b6d00) at kernel/qapplication.cpp:4559
#52 QApplicationPrivate::notify_helper (this=0x11b6d00, receiver=0x4039e50, e=0x34c0660) at kernel/qapplication.cpp:4531
#53 0x00007f8c7dbc9713 in QApplication::notify (this=0x7fff6b6c5770, receiver=0x4039e50, e=0x34c0660) at kernel/qapplication.cpp:4420
#54 0x00007f8c7f3fdb46 in KApplication::notify (this=0x7fff6b6c5770, receiver=0x4039e50, event=0x34c0660) at ../../kdeui/kernel/kapplication.cpp:311
#55 0x00007f8c7d6a1e9c in QCoreApplication::notifyInternal (this=0x7fff6b6c5770, receiver=0x4039e50, event=0x34c0660) at kernel/qcoreapplication.cpp:876
#56 0x00007f8c7d6a5c6a in sendEvent (event=0x34c0660, receiver=0x4039e50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#57 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x115b220) at kernel/qcoreapplication.cpp:1500
#58 0x00007f8c7d6d0f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#59 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#60 0x00007f8c755efc9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f8c755f0060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007f8c755f0124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007f8c7d6d13bf in QEventDispatcherGlib::processEvents (this=0x115cb00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#64 0x00007f8c7dc6cd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#65 0x00007f8c7d6a0c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#66 0x00007f8c7d6a0ed7 in QEventLoop::exec (this=0x7fff6b6c5650, flags=...) at kernel/qeventloop.cpp:204
#67 0x00007f8c7d6a5f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#68 0x0000000000402bd3 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 299642, bug 299137, bug 297778, bug 296464, bug 296435.

Reported using DrKonqi
Comment 1 Jekyll Wu 2014-01-09 11:56:31 UTC
*** Bug 329759 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-24 18:15:38 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 22:49:55 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.