Bug 326637

Summary: Crashed when asked if i wanted to go online
Product: [Applications] kmail2 Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: montel
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Albert Astals Cid 2013-10-25 18:03:27 UTC
Application: kmail (4.11.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-12-generic x86_64
Distribution: Ubuntu Trusty Tahr (development branch)

-- Information about the crash:
So i was trying to send an email but when i said send the "email spooler" told me it was offline and asked if i wanted to go online. There were two of such dialogs, after closing the second dialog kmail crashed with this backtrace.

-- 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 0x7fdb2dc4e800 (LWP 3765))]

Thread 6 (Thread 0x7fdb06aaa700 (LWP 3771)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdb1f9491cd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fdb1f949209 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fdb288b1f6e in start_thread (arg=0x7fdb06aaa700) at pthread_create.c:311
#4  0x00007fdb2afe99cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7fdb05afb700 (LWP 3772)):
#0  0x00007fdb231500ea in g_mutex_get_impl (mutex=0x7fdab80009a0) at /build/buildd/glib2.0-2.38.1/./glib/gthread-posix.c:124
#1  0x00007fdb231503c9 in g_mutex_unlock (mutex=mutex@entry=0x7fdab80009a0) at /build/buildd/glib2.0-2.38.1/./glib/gthread-posix.c:232
#2  0x00007fdb2311055d in g_main_context_iterate (context=context@entry=0x7fdab80009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3660
#3  0x00007fdb231107ac in g_main_context_iteration (context=0x7fdab80009a0, may_block=1) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3773
#4  0x00007fdb2c62aa76 in QEventDispatcherGlib::processEvents (this=0x7fdab80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fdb2c5fc5ef in QEventLoop::processEvents (this=this@entry=0x7fdb05afad30, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fdb2c5fc8e5 in QEventLoop::exec (this=this@entry=0x7fdb05afad30, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fdb2c4fb88f in QThread::exec (this=this@entry=0x176ea80) at thread/qthread.cpp:542
#8  0x00007fdb2c5ddd13 in QInotifyFileSystemWatcherEngine::run (this=0x176ea80) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007fdb2c4fdf2f in QThreadPrivate::start (arg=0x176ea80) at thread/qthread_unix.cpp:338
#10 0x00007fdb288b1f6e in start_thread (arg=0x7fdb05afb700) at pthread_create.c:311
#11 0x00007fdb2afe99cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fdb04a6b700 (LWP 3773)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdb1f689bbd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fdb1f978a76 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fdb288b1f6e in start_thread (arg=0x7fdb04a6b700) at pthread_create.c:311
#4  0x00007fdb2afe99cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fdabf353700 (LWP 3775)):
#0  g_mutex_get_impl (mutex=0x7fdaa80009a0) at /build/buildd/glib2.0-2.38.1/./glib/gthread-posix.c:126
#1  0x00007fdb231503c9 in g_mutex_unlock (mutex=mutex@entry=0x7fdaa80009a0) at /build/buildd/glib2.0-2.38.1/./glib/gthread-posix.c:232
#2  0x00007fdb2310fd40 in g_main_context_prepare (context=context@entry=0x7fdaa80009a0, priority=priority@entry=0x7fdabf352c38) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3337
#3  0x00007fdb231105c3 in g_main_context_iterate (context=context@entry=0x7fdaa80009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3692
#4  0x00007fdb231107ac in g_main_context_iteration (context=0x7fdaa80009a0, may_block=1) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3773
#5  0x00007fdb2c62aa76 in QEventDispatcherGlib::processEvents (this=0x7fdaa80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fdb2c5fc5ef in QEventLoop::processEvents (this=this@entry=0x7fdabf352d70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fdb2c5fc8e5 in QEventLoop::exec (this=this@entry=0x7fdabf352d70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fdb2c4fb88f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007fdb2c4fdf2f in QThreadPrivate::start (arg=0x1aeaa00) at thread/qthread_unix.cpp:338
#10 0x00007fdb288b1f6e in start_thread (arg=0x7fdabf353700) at pthread_create.c:311
#11 0x00007fdb2afe99cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fdabdaa7700 (LWP 14336)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdb16bb306b in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fdb16eb0f00 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fdb16bb30a9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fdb288b1f6e in start_thread (arg=0x7fdabdaa7700) at pthread_create.c:311
#4  0x00007fdb2afe99cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fdb2dc4e800 (LWP 3765)):
[KCrash Handler]
#6  text (this=0x0) at ../../include/QtGui/private/../../../src/gui/widgets/qlinecontrol_p.h:210
#7  QLineEdit::text (this=<optimized out>) at widgets/qlineedit.cpp:380
#8  0x00007fdb2cabc548 in KMComposeWin::from (this=this@entry=0x298d0f30) at ../../kmail/editor/kmcomposewin.cpp:1513
#9  0x00007fdb2cad683b in KMComposeWin::doSend (this=this@entry=0x298d0f30, method=method@entry=MessageComposer::MessageSender::SendImmediate, saveIn=saveIn@entry=MessageComposer::MessageSender::SaveInNone) at ../../kmail/editor/kmcomposewin.cpp:2657
#10 0x00007fdb2cad8bff in KMComposeWin::slotCheckSendNow (this=0x298d0f30) at ../../kmail/editor/kmcomposewin.cpp:2926
#11 0x00007fdb2cad9d41 in KMComposeWin::qt_static_metacall (_o=0x298d0f30, _id=0, _a=0x2b5f2a50, _c=<optimized out>) at ./kmcomposewin.moc:216
#12 0x00007fdb2c611a58 in QMetaObject::activate (sender=sender@entry=0xf888bd0, m=m@entry=0x7fdb2c443de0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffeef61c00) at kernel/qobject.cpp:3539
#13 0x00007fdb2b994a32 in QAction::triggered (this=this@entry=0xf888bd0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#14 0x00007fdb2b996403 in QAction::activate (this=0xf888bd0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#15 0x00007fdb2b99655c in QAction::event (this=<optimized out>, e=e@entry=0x7fffeef61fa0) at kernel/qaction.cpp:1183
#16 0x00007fdb2d5bdd3f in KAction::event (this=<optimized out>, event=0x7fffeef61fa0) at ../../kdeui/actions/kaction.cpp:131
#17 0x00007fdb2b99adfc in QApplicationPrivate::notify_helper (this=this@entry=0x12ba530, receiver=receiver@entry=0xf888bd0, e=e@entry=0x7fffeef61fa0) at kernel/qapplication.cpp:4567
#18 0x00007fdb2b9a1470 in QApplication::notify (this=this@entry=0x7fffeef63000, receiver=receiver@entry=0xf888bd0, e=e@entry=0x7fffeef61fa0) at kernel/qapplication.cpp:4353
#19 0x00007fdb2d693a6a in KApplication::notify (this=0x7fffeef63000, receiver=0xf888bd0, event=0x7fffeef61fa0) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007fdb2c5fd8bd in QCoreApplication::notifyInternal (this=0x7fffeef63000, receiver=0xf888bd0, event=event@entry=0x7fffeef61fa0) at kernel/qcoreapplication.cpp:946
#21 0x00007fdb2b9cc1b6 in sendEvent (event=0x7fffeef61fa0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QShortcutMap::dispatchEvent (this=this@entry=0x12ba650, e=e@entry=0x7fffeef622e0) at kernel/qshortcutmap.cpp:884
#23 0x00007fdb2b9cc2e4 in QShortcutMap::tryShortcutEvent (this=0x12ba650, o=o@entry=0x6e5a560, e=e@entry=0x7fffeef622e0) at kernel/qshortcutmap.cpp:364
#24 0x00007fdb2b9a2743 in QApplication::notify (this=this@entry=0x7fffeef63000, receiver=receiver@entry=0x6e5a560, e=e@entry=0x7fffeef622e0) at kernel/qapplication.cpp:3991
#25 0x00007fdb2d693a6a in KApplication::notify (this=0x7fffeef63000, receiver=0x6e5a560, event=0x7fffeef622e0) at ../../kdeui/kernel/kapplication.cpp:311
#26 0x00007fdb2c5fd8bd in QCoreApplication::notifyInternal (this=0x7fffeef63000, receiver=receiver@entry=0x6e5a560, event=event@entry=0x7fffeef622e0) at kernel/qcoreapplication.cpp:946
#27 0x00007fdb2b999526 in sendSpontaneousEvent (event=event@entry=0x7fffeef622e0, receiver=receiver@entry=0x6e5a560) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#28 qt_sendSpontaneousEvent (receiver=receiver@entry=0x6e5a560, event=event@entry=0x7fffeef622e0) at kernel/qapplication.cpp:5565
#29 0x00007fdb2ba39e19 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x6e5a560, grab=grab@entry=false, type=QEvent::KeyPress, code=16777220, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=36, nativeVirtualKey=65293, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1866
#30 0x00007fdb2ba3a1b9 in QKeyMapperPrivate::translateKeyEvent (this=0x1356650, keyWidget=keyWidget@entry=0x6e5a560, event=event@entry=0x7fffeef62870, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#31 0x00007fdb2ba14207 in QApplication::x11ProcessEvent (this=0x7fffeef63000, event=event@entry=0x7fffeef62870) at kernel/qapplication_x11.cpp:3639
#32 0x00007fdb2ba3c922 in x11EventSourceDispatch (s=s@entry=0x12ac040, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#33 0x00007fdb231103b6 in g_main_dispatch (context=0x12baa10) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3065
#34 g_main_context_dispatch (context=context@entry=0x12baa10) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3641
#35 0x00007fdb23110708 in g_main_context_iterate (context=context@entry=0x12baa10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3712
#36 0x00007fdb231107ac in g_main_context_iteration (context=0x12baa10, may_block=1) at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3773
#37 0x00007fdb2c62aa55 in QEventDispatcherGlib::processEvents (this=0x1243b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#38 0x00007fdb2ba3c9d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fdb2c5fc5ef in QEventLoop::processEvents (this=this@entry=0x7fffeef62c50, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007fdb2c5fc8e5 in QEventLoop::exec (this=this@entry=0x7fffeef62c50, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007fdb2c601e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#42 0x00007fdb2b99934c in QApplication::exec () at kernel/qapplication.cpp:3828
#43 0x0000000000402d1a in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Laurent Montel 2013-10-25 19:31:47 UTC
second dialog was a bug (fixed)
For crash will look at
Comment 2 Denis Kurz 2016-09-24 18:17:58 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:44:28 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.