Bug 327499 - kmail crashes when canceling entering gpg passphrase
Summary: kmail crashes when canceling entering gpg passphrase
Status: RESOLVED DUPLICATE of bug 308884
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 4.11.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-11-12 13:14 UTC by Steve
Modified: 2014-01-09 04:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.82 KB, text/plain)
2013-11-12 20:01 UTC, Christian González
Details
New crash information added by DrKonqi (5.69 KB, text/plain)
2013-11-20 12:24 UTC, Wolfgang Schindler
Details
New crash information added by DrKonqi (5.92 KB, text/plain)
2013-12-04 10:04 UTC, Wolfgang Schindler
Details
New crash information added by DrKonqi (6.07 KB, text/plain)
2013-12-19 13:17 UTC, Wolfgang Schindler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2013-11-12 13:14:02 UTC
Application: kontact (4.11.3)
KDE Platform Version: 4.11.3
Qt Version: 4.8.5
Operating System: Linux 3.11.7-200.fc19.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:

kmail displayed the user name of another recipient cc'ed on the encrypted email. I clicked on cancel. It said that I had enetered an invalid passphrase. I knew I hadn't because it was not asking for my passphrase. I clicked cancel again thinking it would move to asking for my passphrase, but instead it segfaulted. Btw, kmail _knows_ my email address, why does it show me other users and ask me to provide _their_ passphrase? I hate clicking through 3-4 people just to enter mine.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fe87f1008c0 (LWP 5810))]

Thread 5 (Thread 0x7fe86ee2c700 (LWP 5811)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003333ecde2d in WTF::TCMalloc_PageHeap::scavengerThread (this=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:2571
#2  0x0000003333ecde69 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:1767
#3  0x0000003ad5c07c53 in start_thread (arg=0x7fe86ee2c700) at pthread_create.c:308
#4  0x0000003ad50f5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fe8276c8700 (LWP 5812)):
#0  0x0000003ad5c0aa6c in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x242bda0) at pthread_mutex_unlock.c:52
#1  __GI___pthread_mutex_unlock (mutex=0x242bda0) at pthread_mutex_unlock.c:297
#2  0x0000003ad7487281 in g_mutex_unlock (mutex=mutex@entry=0x242bce0) at gthread-posix.c:229
#3  0x0000003ad7448006 in g_main_context_iterate (context=0x242bce0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3679
#4  0x0000003ad744855a in g_main_loop_run (loop=0x242bc70) at gmain.c:3895
#5  0x0000003ae00c6d66 in gdbus_shared_thread_func (user_data=0x242bcb0) at gdbusprivate.c:278
#6  0x0000003ad746c185 in g_thread_proxy (data=0x248b0f0) at gthread.c:798
#7  0x0000003ad5c07c53 in start_thread (arg=0x7fe8276c8700) at pthread_create.c:308
#8  0x0000003ad50f5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fe826cbe700 (LWP 5813)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003333c0e5bd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7fe86e596398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x0000003333efd686 in WTF::wtfThreadEntryPoint (param=0x2563040) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x0000003ad5c07c53 in start_thread (arg=0x7fe826cbe700) at pthread_create.c:308
#4  0x0000003ad50f5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fe8157f8700 (LWP 5845)):
#0  0x0000003ad7447f9b in g_main_context_iterate (context=context@entry=0x7fe8100009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3638
#1  0x0000003ad74481fc in g_main_context_iteration (context=0x7fe8100009a0, may_block=1) at gmain.c:3762
#2  0x0000003ae15a7166 in QEventDispatcherGlib::processEvents (this=0x7fe8100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#3  0x0000003ae1578ecf in QEventLoop::processEvents (this=this@entry=0x7fe8157f7d20, flags=...) at kernel/qeventloop.cpp:149
#4  0x0000003ae15791c5 in QEventLoop::exec (this=this@entry=0x7fe8157f7d20, flags=...) at kernel/qeventloop.cpp:204
#5  0x0000003ae147866f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#6  0x0000003ae147ad0f in QThreadPrivate::start (arg=0x220bed0) at thread/qthread_unix.cpp:338
#7  0x0000003ad5c07c53 in start_thread (arg=0x7fe8157f8700) at pthread_create.c:308
#8  0x0000003ad50f5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fe87f1008c0 (LWP 5810)):
[KCrash Handler]
#6  0x000000326ea43184 in KMime::Content::parent (this=this@entry=0x1955f2e0) at /usr/src/debug/kdepimlibs-4.11.3/kmime/kmime_content.cpp:953
#7  0x0000003276a3aa07 in MessageCore::NodeHelper::nextSibling (node=node@entry=0x1955f2e0) at /usr/src/debug/kdepim-4.11.3/messagecore/helpers/nodehelper.cpp:32
#8  0x00000032762a30df in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=this@entry=0x7fff63483d90, node=node@entry=0x1955f2e0) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/objecttreeparser.cpp:296
#9  0x00000032762a4bc9 in MessageViewer::ObjectTreeParser::parseObjectTree (this=this@entry=0x7fff63483d90, node=node@entry=0x1955f2e0) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/objecttreeparser.cpp:266
#10 0x00000032762d0e18 in MessageViewer::ViewerPrivate::parseContent (this=this@entry=0x2ae9da0, content=0x1955f2e0) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/viewer_p.cpp:1007
#11 0x00000032762d15c2 in MessageViewer::ViewerPrivate::displayMessage (this=this@entry=0x2ae9da0) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/viewer_p.cpp:879
#12 0x00000032762d220e in MessageViewer::ViewerPrivate::updateReaderWin (this=0x2ae9da0) at /usr/src/debug/kdepim-4.11.3/messageviewer/viewer/viewer_p.cpp:2270
#13 0x00000032762d9a0d in MessageViewer::ViewerPrivate::qt_static_metacall (_o=0x2ae9da0, _c=4294967295, _id=-717510776, _a=0x0) at /usr/src/debug/kdepim-4.11.3/x86_64-redhat-linux-gnu/messageviewer/viewer_p.moc:254
#14 0x0000003ae158df78 in QMetaObject::activate (sender=0x2ae9e30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#15 0x0000003ae1592141 in QObject::event (this=0x2ae9e30, e=<optimized out>) at kernel/qobject.cpp:1156
#16 0x0000003ae5dc84dc in QApplicationPrivate::notify_helper (this=this@entry=0x220ad00, receiver=receiver@entry=0x2ae9e30, e=e@entry=0x7fff634844c0) at kernel/qapplication.cpp:4562
#17 0x0000003ae5dceaa0 in QApplication::notify (this=this@entry=0x7fff63484840, receiver=receiver@entry=0x2ae9e30, e=e@entry=0x7fff634844c0) at kernel/qapplication.cpp:4348
#18 0x000000326bc3fe9a in KApplication::notify (this=0x7fff63484840, receiver=0x2ae9e30, event=0x7fff634844c0) at /usr/src/debug/kdelibs-4.11.3/kdeui/kernel/kapplication.cpp:311
#19 0x0000003ae157a26d in QCoreApplication::notifyInternal (this=0x7fff63484840, receiver=0x2ae9e30, event=0x7fff634844c0) at kernel/qcoreapplication.cpp:949
#20 0x0000003ae15a9c13 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#21 QTimerInfoList::activateTimers (this=0x220f060) at kernel/qeventdispatcher_unix.cpp:621
#22 0x0000003ae15a6f11 in timerSourceDispatch (source=source@entry=0x220f000) at kernel/qeventdispatcher_glib.cpp:186
#23 0x0000003ad7447e06 in g_main_dispatch (context=0x220de70) at gmain.c:3054
#24 g_main_context_dispatch (context=context@entry=0x220de70) at gmain.c:3630
#25 0x0000003ad7448158 in g_main_context_iterate (context=context@entry=0x220de70, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#26 0x0000003ad74481fc in g_main_context_iteration (context=0x220de70, may_block=1) at gmain.c:3762
#27 0x0000003ae15a7145 in QEventDispatcherGlib::processEvents (this=0x21ceee0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#28 0x0000003ae5e64fc6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#29 0x0000003ae1578ecf in QEventLoop::processEvents (this=this@entry=0x7fff63484740, flags=...) at kernel/qeventloop.cpp:149
#30 0x0000003ae15791c5 in QEventLoop::exec (this=this@entry=0x7fff63484740, flags=...) at kernel/qeventloop.cpp:204
#31 0x0000003ae157e45b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#32 0x0000003ae5dc6c9c in QApplication::exec () at kernel/qapplication.cpp:3823
#33 0x0000000000403760 in main (argc=1, argv=0x7fff63484988) at /usr/src/debug/kdepim-4.11.3/kontact/src/main.cpp:219

Possible duplicates by query: bug 326449, bug 325175.

Reported using DrKonqi
Comment 1 Christian González 2013-11-12 20:01:39 UTC
Created attachment 83527 [details]
New crash information added by DrKonqi

kontact (4.11.2) on KDE Platform 4.11.2 using Qt 4.8.5

- What I was doing when the application crashed:
Received encrypted mail, was asked for gpg passphrase, entered it, pressed "Enter" -> Segfault.

-- Backtrace (Reduced):
#6  0x00007f1bda817924 in KMime::Content::parent (this=this@entry=0x3103a70) at /usr/src/debug/kdepimlibs-4.11.2/kmime/kmime_content.cpp:953
#7  0x00007f1b85c2fe27 in MessageCore::NodeHelper::nextSibling (node=node@entry=0x3103a70) at /usr/src/debug/kdepim-4.11.2/messagecore/helpers/nodehelper.cpp:32
#8  0x00007f1b841e114f in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=this@entry=0x7fff656017e0, node=node@entry=0x3103a70) at /usr/src/debug/kdepim-4.11.2/messageviewer/viewer/objecttreeparser.cpp:296
#9  0x00007f1b841e2c71 in MessageViewer::ObjectTreeParser::stdChildHandling (this=this@entry=0x7fff65601a80, child=child@entry=0x3103a70) at /usr/src/debug/kdepim-4.11.2/messageviewer/viewer/objecttreeparser.cpp:1462
#10 0x00007f1b841e2f1c in MessageViewer::ObjectTreeParser::processMultiPartAlternativeSubtype (this=0x7fff65601a80, node=<optimized out>) at /usr/src/debug/kdepim-4.11.2/messageviewer/viewer/objecttreeparser.cpp:1548
Comment 2 Wolfgang Schindler 2013-11-20 12:24:33 UTC
Created attachment 83651 [details]
New crash information added by DrKonqi

kontact (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.6

- What I was doing when the application crashed:

Clicking on cancel in entering gpg passphrase dialog

-- Backtrace (Reduced):
#6  0x00007faaffd410e4 in KMime::Content::parent (this=this@entry=0x2732380) at ../../kmime/kmime_content.cpp:953
#7  0x00007faaa649a9c7 in MessageCore::NodeHelper::nextSibling (node=node@entry=0x2732380) at ../../messagecore/helpers/nodehelper.cpp:32
#8  0x00007faaa4a4612d in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=this@entry=0x7fff0e439500, node=node@entry=0x2732380) at ../../messageviewer/viewer/objecttreeparser.cpp:296
#9  0x00007faaa4a47c19 in MessageViewer::ObjectTreeParser::parseObjectTree (this=this@entry=0x7fff0e439500, node=node@entry=0x2732380) at ../../messageviewer/viewer/objecttreeparser.cpp:266
#10 0x00007faaa4a73ea8 in MessageViewer::ViewerPrivate::parseContent (this=this@entry=0x241f8f0, content=0x2732380) at ../../messageviewer/viewer/viewer_p.cpp:1007
Comment 3 Wolfgang Schindler 2013-12-04 10:04:35 UTC
Created attachment 83921 [details]
New crash information added by DrKonqi

kontact (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.6

- What I was doing when the application crashed:

Same as described, when asked for the password I canceled the dialog and being asked for a retry in the following dialog i also canceled. After this kontact crashes.

Does not always happen, but in all distributions i use (opensuse, ubuntu, debian) on amd64 and i386 architecture

-- Backtrace (Reduced):
#6  0x00007f4b3247b0e4 in KMime::Content::parent (this=this@entry=0x6fdaa00) at ../../kmime/kmime_content.cpp:953
#7  0x00007f4ad930d9c7 in MessageCore::NodeHelper::nextSibling (node=node@entry=0x6fdaa00) at ../../messagecore/helpers/nodehelper.cpp:32
#8  0x00007f4ad78b912d in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=this@entry=0x7fff19420ab0, node=node@entry=0x6fdaa00) at ../../messageviewer/viewer/objecttreeparser.cpp:296
#9  0x00007f4ad78bac19 in MessageViewer::ObjectTreeParser::parseObjectTree (this=this@entry=0x7fff19420ab0, node=node@entry=0x6fdaa00) at ../../messageviewer/viewer/objecttreeparser.cpp:266
#10 0x00007f4ad78e6ea8 in MessageViewer::ViewerPrivate::parseContent (this=this@entry=0x2bc2c60, content=0x6fdaa00) at ../../messageviewer/viewer/viewer_p.cpp:1007
Comment 4 Wolfgang Schindler 2013-12-19 13:17:26 UTC
Created attachment 84171 [details]
New crash information added by DrKonqi

kontact (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.6

- What I was doing when the application crashed:

After a pair of updates, kmail's behaviour has changed. Now if you canceled the input of a key and then cancel the retry dialog, kmail will only crash the first time you try this on an email. Next time on the same email, kmail does not crash. But when you change to the next encrypted email, the behaviour is like before: kmail crashes. 
So may be the error has to do with loading the email into akonadi or kmail cache. 
No glue where....

-- Backtrace (Reduced):
#6  0x00007fad454b20e4 in KMime::Content::parent (this=this@entry=0xe0c0f0) at ../../kmime/kmime_content.cpp:953
#7  0x00007faceb81d9c7 in MessageCore::NodeHelper::nextSibling (node=node@entry=0xe0c0f0) at ../../messagecore/helpers/nodehelper.cpp:32
#8  0x00007face9dc912d in MessageViewer::ObjectTreeParser::parseObjectTreeInternal (this=this@entry=0x7ffff57507f0, node=node@entry=0xe0c0f0) at ../../messageviewer/viewer/objecttreeparser.cpp:296
#9  0x00007face9dcac19 in MessageViewer::ObjectTreeParser::parseObjectTree (this=this@entry=0x7ffff57507f0, node=node@entry=0xe0c0f0) at ../../messageviewer/viewer/objecttreeparser.cpp:266
#10 0x00007face9df6ea8 in MessageViewer::ViewerPrivate::parseContent (this=this@entry=0x1339080, content=0xe0c0f0) at ../../messageviewer/viewer/viewer_p.cpp:1007
Comment 5 Jekyll Wu 2014-01-09 04:54:01 UTC

*** This bug has been marked as a duplicate of bug 308884 ***