Bug 340223 - KMail: Crash when first sending a mail with shortcut
Summary: KMail: Crash when first sending a mail with shortcut
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-10-22 08:20 UTC by Axel Braun
Modified: 2014-10-22 12:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2014-10-22 08:20:17 UTC
Application: kontact (4.14.2)
KDE Platform Version: 4.14.2
Qt Version: 4.8.5
Operating System: Linux 3.11.10-21-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
New created user on openSUSE 13.1, new created mail account.
When first sending a mail (using shoortcut CRTL-Enter) the system askes wheter the 'shortcut should be removed' (left entry on the dialog box) when confirming this, the application crashes

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f559e6cd880 (LWP 7723))]

Thread 5 (Thread 0x7f55817ae700 (LWP 7724)):
#0  0x00007f5595c860af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5599428f76 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f5599ef15a0 <WTF::pageheap_memory>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:2571
#2  0x00007f5599428fa9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:1767
#3  0x00007f5595c820db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f559bc1158d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f5540e93700 (LWP 7725)):
#0  0x00007f5595c860af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f559919b2cd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7f5580f10398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00007f5599450ad6 in WTF::wtfThreadEntryPoint (param=0xb42010) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x00007f5595c820db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f559bc1158d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f552bfff700 (LWP 7753)):
#0  0x00007f559bc087bd in poll () from /lib64/libc.so.6
#1  0x00007f55956bf604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55956bf70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f559c38dd76 in QEventDispatcherGlib::processEvents (this=0x7f55240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f559c35fd0f in QEventLoop::processEvents (this=this@entry=0x7f552bffed60, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f559c360005 in QEventLoop::exec (this=this@entry=0x7f552bffed60, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f559c25efef in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f559c26168f in QThreadPrivate::start (arg=0xd2e0f0) at thread/qthread_unix.cpp:338
#8  0x00007f5595c820db in start_thread () from /lib64/libpthread.so.0
#9  0x00007f559bc1158d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f552a3c5700 (LWP 7772)):
#0  0x00007f5595c860af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5537f428cb in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f5538240f00 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f5537f42909 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f5595c820db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f559bc1158d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f559e6cd880 (LWP 7723)):
[KCrash Handler]
#6  data (this=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:135
#7  qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../src/corelib/global/qglobal.h:2458
#8  d_func (this=<optimized out>) at kernel/qaction.h:67
#9  QAction::setShortcut (this=this@entry=0x0, shortcut=...) at kernel/qaction.cpp:430
#10 0x00007f55370a618f in ValidateSendMailShortcut::validate (this=this@entry=0x7fff557ae5d0) at /usr/src/debug/kdepim-4.14.2/kmail/editor/validatesendmailshortcut.cpp:50
#11 0x00007f55370a1a5c in KMComposeWin::slotCheckSendNow (this=0x2426ba0) at /usr/src/debug/kdepim-4.14.2/kmail/editor/kmcomposewin.cpp:2985
#12 0x00007f55370c28b5 in KMComposeWin::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdepim-4.14.2/build/kmail/moc_kmcomposewin.cpp:313
#13 0x00007f559c374d68 in QMetaObject::activate (sender=sender@entry=0x1106db0, m=m@entry=0x7f559d8112a0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff557ae730) at kernel/qobject.cpp:3556
#14 0x00007f559cd69752 in QAction::triggered (this=this@entry=0x1106db0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#15 0x00007f559cd6b123 in QAction::activate (this=0x1106db0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#16 0x00007f559cd6b27c in QAction::event (this=<optimized out>, e=e@entry=0x7fff557aead0) at kernel/qaction.cpp:1183
#17 0x00007f559d9b03df in KAction::event (this=<optimized out>, event=0x7fff557aead0) at /usr/src/debug/kdelibs-4.14.2/kdeui/actions/kaction.cpp:131
#18 0x00007f559cd6f8ac in QApplicationPrivate::notify_helper (this=this@entry=0x994f90, receiver=receiver@entry=0x1106db0, e=e@entry=0x7fff557aead0) at kernel/qapplication.cpp:4562
#19 0x00007f559cd75e70 in QApplication::notify (this=this@entry=0x7fff557af870, receiver=receiver@entry=0x1106db0, e=e@entry=0x7fff557aead0) at kernel/qapplication.cpp:4348
#20 0x00007f559da8659a in KApplication::notify (this=0x7fff557af870, receiver=0x1106db0, event=0x7fff557aead0) at /usr/src/debug/kdelibs-4.14.2/kdeui/kernel/kapplication.cpp:311
#21 0x00007f559c3610ad in QCoreApplication::notifyInternal (this=0x7fff557af870, receiver=0x1106db0, event=event@entry=0x7fff557aead0) at kernel/qcoreapplication.cpp:949
#22 0x00007f559cda0b86 in sendEvent (event=0x7fff557aead0, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#23 QShortcutMap::dispatchEvent (this=this@entry=0x9950b0, e=e@entry=0x7fff557aee10) at kernel/qshortcutmap.cpp:884
#24 0x00007f559cda0cb4 in QShortcutMap::tryShortcutEvent (this=0x9950b0, o=o@entry=0x1b5ae70, e=e@entry=0x7fff557aee10) at kernel/qshortcutmap.cpp:364
#25 0x00007f559cd77143 in QApplication::notify (this=this@entry=0x7fff557af870, receiver=receiver@entry=0x1b5ae70, e=e@entry=0x7fff557aee10) at kernel/qapplication.cpp:3986
#26 0x00007f559da8659a in KApplication::notify (this=0x7fff557af870, receiver=0x1b5ae70, event=0x7fff557aee10) at /usr/src/debug/kdelibs-4.14.2/kdeui/kernel/kapplication.cpp:311
#27 0x00007f559c3610ad in QCoreApplication::notifyInternal (this=0x7fff557af870, receiver=receiver@entry=0x1b5ae70, event=event@entry=0x7fff557aee10) at kernel/qcoreapplication.cpp:949
#28 0x00007f559cd6e246 in sendSpontaneousEvent (event=event@entry=0x7fff557aee10, receiver=receiver@entry=0x1b5ae70) at ../../src/corelib/kernel/qcoreapplication.h:234
#29 qt_sendSpontaneousEvent (receiver=receiver@entry=0x1b5ae70, event=event@entry=0x7fff557aee10) at kernel/qapplication.cpp:5560
#30 0x00007f559ce09d79 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x1b5ae70, 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
#31 0x00007f559ce0a119 in QKeyMapperPrivate::translateKeyEvent (this=0x9de150, keyWidget=keyWidget@entry=0x1b5ae70, event=event@entry=0x7fff557af390, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#32 0x00007f559cde5d3f in QApplication::x11ProcessEvent (this=0x7fff557af870, event=event@entry=0x7fff557af390) at kernel/qapplication_x11.cpp:3544
#33 0x00007f559ce0c882 in x11EventSourceDispatch (s=0x994610, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f55956bf316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#35 0x00007f55956bf668 in ?? () from /usr/lib64/libglib-2.0.so.0
#36 0x00007f55956bf70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f559c38dd55 in QEventDispatcherGlib::processEvents (this=0x94fae0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#38 0x00007f559ce0c936 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f559c35fd0f in QEventLoop::processEvents (this=this@entry=0x7fff557af770, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f559c360005 in QEventLoop::exec (this=this@entry=0x7fff557af770, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007f559c36513b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#42 0x0000000000403960 in ?? ()
#43 0x00007f559bb4bbe5 in __libc_start_main () from /lib64/libc.so.6
#44 0x0000000000403e29 in _start ()

Reported using DrKonqi
Comment 1 Laurent Montel 2014-10-22 09:25:20 UTC
Ok found error.
I will fix soon
Comment 2 Laurent Montel 2014-10-22 10:35:51 UTC
Git commit c0da955f3cdd9971e145e3af48dcdf96485a2ec3 by Montel Laurent.
Committed on 22/10/2014 at 10:35.
Pushed by mlaurent into branch 'KDE/4.14'.

Fix Bug 340223 - KMail: Crash when first sending a mail with shortcut

FIXED-IN: 4.14.3

M  +8    -4    kmail/editor/validatesendmailshortcut.cpp

http://commits.kde.org/kdepim/c0da955f3cdd9971e145e3af48dcdf96485a2ec3
Comment 3 Axel Braun 2014-10-22 12:39:27 UTC
Impressed by your reaction time!
Thanks for fixing this so quickly!