Bug 302613

Summary: KOntact/Kmail crashes on startup
Product: [Applications] kmail2 Reporter: james
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: abeltrup, kramapa
Priority: NOR    
Version: 4.8.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description james 2012-06-27 07:55:34 UTC
Application: kontact (4.8.3)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-25-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
Trying to launch it. Unaware of any changes to the environment other than routine updates.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc18355f7c0 (LWP 3961))]

Thread 4 (Thread 0x7fc166ab0700 (LWP 3962)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc17fd63dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fc17fd63f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fc17b229e9a in start_thread (arg=0x7fc166ab0700) at pthread_create.c:308
#4  0x00007fc180a954bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc1661af700 (LWP 3963)):
#0  0x00007fc180a880bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fc17ad978cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc17ad5cba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc17ad5cfd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc17ad5d164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc18120a426 in QEventDispatcherGlib::processEvents (this=0x7fc1600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fc1811d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fc1811d9ed7 in QEventLoop::exec (this=0x7fc1661aedc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fc1810d8fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007fc1810dbfcb in QThreadPrivate::start (arg=0x6af950) at thread/qthread_unix.cpp:298
#10 0x00007fc17b229e9a in start_thread (arg=0x7fc1661af700) at pthread_create.c:308
#11 0x00007fc180a954bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc118c8c700 (LWP 3967)):
#0  0x00007fc17ad985c4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc17ad5c7e2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc17ad5cf5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc17ad5d164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc18120a426 in QEventDispatcherGlib::processEvents (this=0x7fc1140008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fc1811d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fc1811d9ed7 in QEventLoop::exec (this=0x7fc118c8bd90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fc1810d8fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fc1811b99ff in QInotifyFileSystemWatcherEngine::run (this=0xd7f8e0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fc1810dbfcb in QThreadPrivate::start (arg=0xd7f8e0) at thread/qthread_unix.cpp:298
#10 0x00007fc17b229e9a in start_thread (arg=0x7fc118c8c700) at pthread_create.c:308
#11 0x00007fc180a954bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc18355f7c0 (LWP 3961)):
[KCrash Handler]
#6  0x00007fc1809d9445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fc1809dcbab in __GI_abort () at abort.c:91
#8  0x00007fc180a16e2e in __libc_message (do_abort=2, fmt=0x7fc180b1f0d0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#9  0x00007fc180a21626 in malloc_printerr (action=3, str=0x7fc180b1f230 "double free or corruption (out)", ptr=<optimized out>) at malloc.c:5007
#10 0x00007fc181e76639 in QTextDocumentLayoutPrivate::layoutBlock (this=0xdd4580, bl=..., blockPosition=0, blockFormat=..., layoutStruct=0x7fffbf2074c0, layoutFrom=1061, layoutTo=1061, previousBlockFormat=0x0) at text/qtextdocumentlayout.cpp:2687
#11 0x00007fc181e7ea9d in QTextDocumentLayoutPrivate::layoutFlow (this=0xdd4580, it=..., layoutStruct=0x7fffbf2074c0, layoutFrom=1061, layoutTo=1061, width=...) at text/qtextdocumentlayout.cpp:2402
#12 0x00007fc181e793a4 in QTextDocumentLayoutPrivate::layoutCell (this=0xdd4580, t=0x111dae0, cell=..., width=..., layoutFrom=1061, layoutTo=1061, td=0x109b560, absoluteTableY=..., withPageBreaks=false) at text/qtextdocumentlayout.cpp:1532
#13 0x00007fc181e79cd4 in QTextDocumentLayoutPrivate::layoutTable (this=0xdd4580, table=0x111dae0, layoutFrom=1061, layoutTo=1061, parentY=...) at text/qtextdocumentlayout.cpp:1642
#14 0x00007fc181e7bf5f in QTextDocumentLayoutPrivate::layoutFrame (this=0xdd4580, f=0x111dae0, layoutFrom=1061, layoutTo=1061, frameWidth=..., frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2107
#15 0x00007fc181e7c73d in QTextDocumentLayoutPrivate::layoutFrame (this=0xdd4580, f=0x111dae0, layoutFrom=1061, layoutTo=1061, parentY=...) at text/qtextdocumentlayout.cpp:2049
#16 0x00007fc181e7ef30 in QTextDocumentLayoutPrivate::layoutFlow (this=0xdd4580, it=..., layoutStruct=0x7fffbf208430, layoutFrom=1061, layoutTo=1061, width=...) at text/qtextdocumentlayout.cpp:2311
#17 0x00007fc181e7c20e in QTextDocumentLayoutPrivate::layoutFrame (this=0xdd4580, f=0xb90850, layoutFrom=1061, layoutTo=1061, frameWidth=..., frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2143
#18 0x00007fc181e7c73d in QTextDocumentLayoutPrivate::layoutFrame (this=0xdd4580, f=0xb90850, layoutFrom=1061, layoutTo=1061, parentY=...) at text/qtextdocumentlayout.cpp:2049
#19 0x00007fc181e7c9d8 in QTextDocumentLayout::doLayout (this=0xcd0780, from=1061, oldLength=<optimized out>, length=0) at text/qtextdocumentlayout.cpp:2939
#20 0x00007fc181e7d834 in QTextDocumentLayout::documentChanged (this=0xcd0780, from=1061, oldLength=1, length=0) at text/qtextdocumentlayout.cpp:2902
#21 0x00007fc181e5e1f8 in QTextDocumentPrivate::finishEdit (this=0xded710) at text/qtextdocument_p.cpp:1220
#22 0x00007fc181e85c6b in removeSelectedText (this=0x7fffbf208970) at text/qtextcursor.cpp:1654
#23 QTextCursor::removeSelectedText (this=0x7fffbf208970) at text/qtextcursor.cpp:1647
#24 0x00007fc11f1dbe5a in KPIMTextEdit::TextEdit::loadImage (this=0xdd4500, image=..., matchName=..., resourceName=...) at ../../kpimtextedit/textedit.cpp:422
#25 0x00007fc11d1a4b4d in Message::ComposerViewBase::collectImages (this=0xd67740, root=<optimized out>) at ../../messagecomposer/composerviewbase.cpp:1308
#26 0x00007fc11d1ac7cf in Message::ComposerViewBase::setMessage (this=0xd67740, msg=...) at ../../messagecomposer/composerviewbase.cpp:182
#27 0x00007fc11db155b5 in KMComposeWin::setMsg (this=0xd64e40, newMsg=..., mayAutoSign=false, allowDecryption=<optimized out>, isModified=false) at ../../kmail/kmcomposewin.cpp:1481
#28 0x00007fc11da9aa10 in KMKernel::recoverDeadLetters (this=<optimized out>) at ../../kmail/kmkernel.cpp:1109
#29 0x00007fc11ddd0c5d in KMailPart::KMailPart (this=0xa51a00, parentWidget=0x8b6660, parent=0x8b6660, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmail_part.cpp:81
#30 0x00007fc11ddd201f in KPluginFactory::createPartInstance<KMailPart> (parentWidget=0x8b6660, parent=0x8b6660, args=...) at /usr/include/kpluginfactory.h:483
#31 0x00007fc181750361 in KPluginFactory::create (this=0x93e490, iface=0x7fc180792ec0 "KParts::ReadOnlyPart", parentWidget=0x8b6660, parent=0x8b6660, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:203
#32 0x00007fc182d4a9d6 in create<KParts::ReadOnlyPart> (args=..., parent=0x8b6660, this=<optimized out>) at /usr/include/kpluginfactory.h:507
#33 KontactInterface::Core::createPart (this=0x8b6660, libname=0x8e3258 "kmailpart") at ../../kontactinterface/core.cpp:87
#34 0x00007fc11eb876b0 in KMailPlugin::createPart (this=0x9b66d0) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:183
#35 0x00007fc182d4d2f9 in KontactInterface::Plugin::part (this=0x9b66d0) at ../../kontactinterface/plugin.cpp:191
#36 0x00007fc183189090 in Kontact::MainWindow::selectPlugin (this=0x8b6660, plugin=0x9b66d0) at ../../../kontact/src/mainwindow.cpp:796
#37 0x00007fc1831857b4 in Kontact::MainWindow::loadSettings (this=0x8b6660) at ../../../kontact/src/mainwindow.cpp:962
#38 0x00007fc18318845c in Kontact::MainWindow::initObject (this=0x8b6660) at ../../../kontact/src/mainwindow.cpp:241
#39 0x00007fc183188aed in Kontact::MainWindow::MainWindow (this=0x8b6660, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kontact/src/mainwindow.cpp:153
#40 0x00000000004041f4 in KontactApp::newInstance (this=0x7fffbf20afc0) at ../../../kontact/src/main.cpp:134
#41 0x00007fc18290f362 in KUniqueApplicationAdaptor::newInstance (this=0x8d69e0, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#42 0x00007fc18290f3e4 in qt_static_metacall (_a=0x7fffbf20a280, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kuniqueapplication_p.moc:58
#43 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fffbf20a280) at ./kuniqueapplication_p.moc:52
#44 0x00007fc18290f52b in KUniqueApplicationAdaptor::qt_metacall (this=0x8d69e0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffbf20a280) at ./kuniqueapplication_p.moc:102
#45 0x00007fc17d95d37b in QDBusConnectionPrivate::deliverCall (this=0x6909a0, object=0x8d69e0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#46 0x00007fc17d95e41d in QDBusConnectionPrivate::activateCall (this=0x6909a0, object=0x8d69e0, flags=337, msg=...) at qdbusintegrator.cpp:850
#47 0x00007fc17d95ee3b in QDBusConnectionPrivate::activateObject (this=0x6909a0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#48 0x00007fc17d95ef2b in QDBusActivateObjectEvent::placeMetaCall (this=0x905640) at qdbusintegrator.cpp:1537
#49 0x00007fc1811f4446 in QObject::event (this=0x7fffbf20afc0, e=<optimized out>) at kernel/qobject.cpp:1195
#50 0x00007fc181bd45f4 in QApplication::event (this=0x7fffbf20afc0, e=0x905640) at kernel/qapplication.cpp:2541
#51 0x00007fc181bd0894 in notify_helper (e=0x905640, receiver=0x7fffbf20afc0, this=0x6a3be0) at kernel/qapplication.cpp:4559
#52 QApplicationPrivate::notify_helper (this=0x6a3be0, receiver=0x7fffbf20afc0, e=0x905640) at kernel/qapplication.cpp:4531
#53 0x00007fc181bd5713 in QApplication::notify (this=0x7fffbf20afc0, receiver=0x7fffbf20afc0, e=0x905640) at kernel/qapplication.cpp:4420
#54 0x00007fc182909bb6 in KApplication::notify (this=0x7fffbf20afc0, receiver=0x7fffbf20afc0, event=0x905640) at ../../kdeui/kernel/kapplication.cpp:311
#55 0x00007fc1811dae9c in QCoreApplication::notifyInternal (this=0x7fffbf20afc0, receiver=0x7fffbf20afc0, event=0x905640) at kernel/qcoreapplication.cpp:876
#56 0x00007fc1811dec6a in sendEvent (event=0x905640, receiver=0x7fffbf20afc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#57 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x670380) at kernel/qcoreapplication.cpp:1500
#58 0x00007fc181209f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#59 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#60 0x00007fc17ad5cd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007fc17ad5d0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007fc17ad5d164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007fc18120a3bf in QEventDispatcherGlib::processEvents (this=0x671c10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#64 0x00007fc181c78d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#65 0x00007fc1811d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#66 0x00007fc1811d9ed7 in QEventLoop::exec (this=0x7fffbf20af50, flags=...) at kernel/qeventloop.cpp:204
#67 0x00007fc1811def67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#68 0x0000000000403629 in main (argc=1, argv=0x7fffbf20b5e8) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 302042, bug 301793, bug 301155, bug 300614, bug 299539.

Reported using DrKonqi
Comment 1 james 2012-07-01 20:45:19 UTC
This process fixed the startup failure:

From the log it might be because of some broken email in the "dead letter" 
folder saved after crash, that crashes kmail again. Here is my suggestion:

- make copy of ~/.kde/share/apps/kmail2 (or .kde4, depending on the distro)
- start kmail/kontact
- if works, then exit, restore the content and try again. If still crashes, 
report the bug with the content of the above dir attached in a tarball.

Andras
Comment 2 Myriam Schweingruber 2012-10-03 23:18:47 UTC
*** Bug 307656 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2013-09-28 00:00:35 UTC
*** Bug 314376 has been marked as a duplicate of this bug. ***
Comment 4 Denis Kurz 2016-09-24 17:54:57 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 5 Denis Kurz 2017-01-07 22:17:21 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.