Bug 324288

Summary: Crash when saving attachment
Product: [Applications] kontact Reporter: MartinG <gronslet>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.11   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=300141
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description MartinG 2013-08-30 19:42:53 UTC
Application: kontact (4.11)
KDE Platform Version: 4.11.00
Qt Version: 4.8.5
Operating System: Linux 3.10.10-200.fc19.x86_64 x86_64
Distribution: "Fedora release 19 (Schrödinger’s Cat)"

-- Information about the crash:
- What I was doing when the application crashed:
Clicked save on an attachment, tried to save to my home directory, clicked OK, and Kontact crashed.

-- 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 0x7f58d8cde8c0 (LWP 1947))]

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

Thread 4 (Thread 0x7f588ab6a700 (LWP 1949)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000037c940dadd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7f58cade0398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00000037c96fcba6 in WTF::wtfThreadEntryPoint (param=0x1c83cf0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x00000037a1807c53 in start_thread (arg=0x7f588ab6a700) at pthread_create.c:308
#4  0x00000037a14f5d3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f58777fe700 (LWP 1961)):
#0  0x00000037a14eb76d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00000037a30480f4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f58680029c0, timeout=5831, context=0x7f58680009a0) at gmain.c:3995
#2  g_main_context_iterate (context=context@entry=0x7f58680009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3696
#3  0x00000037a30481fc in g_main_context_iteration (context=0x7f58680009a0, may_block=1) at gmain.c:3762
#4  0x00000037a89a7166 in QEventDispatcherGlib::processEvents (this=0x7f58680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#5  0x00000037a8978ecf in QEventLoop::processEvents (this=this@entry=0x7f58777fdd20, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000037a89791c5 in QEventLoop::exec (this=this@entry=0x7f58777fdd20, flags=...) at kernel/qeventloop.cpp:204
#7  0x00000037a887866f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#8  0x00000037a887ad0f in QThreadPrivate::start (arg=0x1e21b20) at thread/qthread_unix.cpp:338
#9  0x00000037a1807c53 in start_thread (arg=0x7f58777fe700) at pthread_create.c:308
#10 0x00000037a14f5d3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f5867fff700 (LWP 2227)):
#0  g_main_context_check (context=context@entry=0x7f5860004c20, max_priority=2147483647, fds=fds@entry=0x7f586000b1c0, n_fds=n_fds@entry=1) at gmain.c:3573
#1  0x00000037a304808b in g_main_context_iterate (context=context@entry=0x7f5860004c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3698
#2  0x00000037a30481fc in g_main_context_iteration (context=0x7f5860004c20, may_block=1) at gmain.c:3762
#3  0x00000037a89a7166 in QEventDispatcherGlib::processEvents (this=0x7f5860006950, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00000037a8978ecf in QEventLoop::processEvents (this=this@entry=0x7f5867ffece0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000037a89791c5 in QEventLoop::exec (this=this@entry=0x7f5867ffece0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00000037a887866f in QThread::exec (this=this@entry=0x1af6c30) at thread/qthread.cpp:536
#7  0x00000037a895a733 in QInotifyFileSystemWatcherEngine::run (this=0x1af6c30) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00000037a887ad0f in QThreadPrivate::start (arg=0x1af6c30) at thread/qthread_unix.cpp:338
#9  0x00000037a1807c53 in start_thread (arg=0x7f5867fff700) at pthread_create.c:308
#10 0x00000037a14f5d3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f58d8cde8c0 (LWP 1947)):
[KCrash Handler]
#6  0x0000003700000001 in ?? ()
#7  0x00007f58dab881ee in header<KMime::Headers::ContentTransferEncoding> (create=true, this=this@entry=0x2fe7570) at /usr/src/debug/kdepimlibs-4.11.0/kmime/kmime_content.h:837
#8  KMime::Content::contentTransferEncoding (this=this@entry=0x2fe7570, create=create@entry=true) at /usr/src/debug/kdepimlibs-4.11.0/kmime/kmime_content.cpp:1003
#9  0x00007f58dab8826d in KMime::Content::decodedContent (this=0x2fe7570) at /usr/src/debug/kdepimlibs-4.11.0/kmime/kmime_content.cpp:378
#10 0x00007f587f022cd5 in MessageViewer::Util::saveContent(QWidget*, KMime::Content*, KUrl const&) () from /lib64/libmessageviewer.so.4
#11 0x00007f587f0243cf in MessageViewer::Util::saveContents(QWidget*, QList<KMime::Content*> const&) () from /lib64/libmessageviewer.so.4
#12 0x00007f587f03ef09 in MessageViewer::ViewerPrivate::openAttachment(KMime::Content*, QString const&) () from /lib64/libmessageviewer.so.4
#13 0x00007f587f01ba52 in (anonymous namespace)::AttachmentURLHandler::handleClick(KUrl const&, MessageViewer::ViewerPrivate*) const () from /lib64/libmessageviewer.so.4
#14 0x00007f587f01da48 in MessageViewer::URLHandlerManager::handleClick(KUrl const&, MessageViewer::ViewerPrivate*) const () from /lib64/libmessageviewer.so.4
#15 0x00007f587f02adb6 in MessageViewer::ViewerPrivate::slotUrlOpen(QUrl const&) () from /lib64/libmessageviewer.so.4
#16 0x00007f587f042b45 in MessageViewer::ViewerPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /lib64/libmessageviewer.so.4
#17 0x00000037a899232e in QObject::event (this=0x2352020, e=<optimized out>) at kernel/qobject.cpp:1194
#18 0x00000037a9bc84dc in QApplicationPrivate::notify_helper (this=this@entry=0x1b22280, receiver=receiver@entry=0x2352020, e=e@entry=0x2ef14f0) at kernel/qapplication.cpp:4562
#19 0x00000037a9bceaa0 in QApplication::notify (this=this@entry=0x7fff42670490, receiver=receiver@entry=0x2352020, e=e@entry=0x2ef14f0) at kernel/qapplication.cpp:4348
#20 0x00007f58dc5e8d8a in KApplication::notify (this=0x7fff42670490, receiver=0x2352020, event=0x2ef14f0) at /usr/src/debug/kdelibs-4.11.0/kdeui/kernel/kapplication.cpp:311
#21 0x00000037a897a26d in QCoreApplication::notifyInternal (this=0x7fff42670490, receiver=receiver@entry=0x2352020, event=event@entry=0x2ef14f0) at kernel/qcoreapplication.cpp:949
#22 0x00000037a897d1df in sendEvent (event=0x2ef14f0, receiver=0x2352020) at kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1ae55e0) at kernel/qcoreapplication.cpp:1573
#24 0x00000037a897d683 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#25 0x00000037a89a7883 in sendPostedEvents () at kernel/qcoreapplication.h:236
#26 postEventSourceDispatch (s=s@entry=0x1b27f70) at kernel/qeventdispatcher_glib.cpp:280
#27 0x00000037a3047e06 in g_main_dispatch (context=0x1b27e80) at gmain.c:3054
#28 g_main_context_dispatch (context=context@entry=0x1b27e80) at gmain.c:3630
#29 0x00000037a3048158 in g_main_context_iterate (context=context@entry=0x1b27e80, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#30 0x00000037a30481fc in g_main_context_iteration (context=0x1b27e80, may_block=1) at gmain.c:3762
#31 0x00000037a89a7145 in QEventDispatcherGlib::processEvents (this=0x1ae6ee0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#32 0x00000037a9c64fc6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#33 0x00000037a8978ecf in QEventLoop::processEvents (this=this@entry=0x7fff42670390, flags=...) at kernel/qeventloop.cpp:149
#34 0x00000037a89791c5 in QEventLoop::exec (this=this@entry=0x7fff42670390, flags=...) at kernel/qeventloop.cpp:204
#35 0x00000037a897e45b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#36 0x0000000000403760 in main ()

The reporter indicates this bug may be a duplicate of or related to bug 300141.

Possible duplicates by query: bug 305454, bug 300141.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-08-31 01:24:40 UTC
See https://bugs.kde.org/show_bug.cgi?id=300141#c1
Comment 2 MartinG 2013-08-31 19:18:15 UTC
I cannot provide the email i question since it contains many addresses and also a large Microsoft Powerpoint presentation. Furthermore, I have deleted that attachment...

However, here is some key elements of what is left of the message (original filename masked):
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=REMOVED; b=REMOVED
...
MIME-Version: 1.0
...
Content-Type: multipart/alternative; boundary="001a1133232eaba86b04e52b3d73"

--001a1133232eaba86b04e52b3d73
Content-Type: text/x-moz-deleted; charset="utf-8"; name="Deleted: FILENAME.pptx"
Content-Disposition: attachment; filename="Deleted: FILENENAME.pptx"
Content-Transfer-Encoding: 7bit


You deleted an attachment from this message. The original MIME headers for the attachment were:
Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation
name="FILENAME"
filename="FILENAME.pptx"
--001a1133232eaba86b04e52b3d73--


The message was sent from an gmail account, and I succeeded in saving the attachment on the second try. So, I don't have much more to help out with on this, and will mark this bug as duplicate of #300141.

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