Bug 300141

Summary: Crash when saving an attachment
Product: [Applications] kontact Reporter: SZÉKELYI Szabolcs <cc>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: crash CC: cc, gronslet, mail, montel
Priority: NOR    
Version: 4.8.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=324288
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description SZÉKELYI Szabolcs 2012-05-16 14:46:51 UTC
Application: kontact (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

I was saving an attachment. The file selextion box popped up, And when I clicked OK on it, KMail craches. This is reproducible.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f5df7f4e700 (LWP 27704)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5e1163cdec in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f5e12005de0) at wtf/FastMalloc.cpp:2495
#2  0x00007f5e1163cf19 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x00007f5e0cb03e9a in start_thread (arg=0x7f5df7f4e700) at pthread_create.c:308
#4  0x00007f5e1236e4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5df774d700 (LWP 27705)):
#0  0x00007f5e0c672550 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5e0c636824 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0c636f6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e0c637124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5e12ae3426 in QEventDispatcherGlib::processEvents (this=0x7f5df00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f5e12ab2c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f5e12ab2ed7 in QEventLoop::exec (this=0x7f5df774cdc0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f5e129b1fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f5e129b4fcb in QThreadPrivate::start (arg=0x20544e0) at thread/qthread_unix.cpp:298
#9  0x00007f5e0cb03e9a in start_thread (arg=0x7f5df774d700) at pthread_create.c:308
#10 0x00007f5e1236e4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5da8a4d700 (LWP 27797)):
#0  0x00007f5e0c672578 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5e0c636a3e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0c636f96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e0c637124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5e12ae3426 in QEventDispatcherGlib::processEvents (this=0x7f5d9c0834b0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f5e12ab2c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f5e12ab2ed7 in QEventLoop::exec (this=0x7f5da8a4cd90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f5e129b1fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f5e12a929ff in QInotifyFileSystemWatcherEngine::run (this=0x10e41ed0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f5e129b4fcb in QThreadPrivate::start (arg=0x10e41ed0) at thread/qthread_unix.cpp:298
#10 0x00007f5e0cb03e9a in start_thread (arg=0x7f5da8a4d700) at pthread_create.c:308
#11 0x00007f5e1236e4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5d9b064700 (LWP 27820)):
#0  0x00007f5e0cb05f57 in __pthread_mutex_lock (mutex=0x7f5d8c000a60) at pthread_mutex_lock.c:89
#1  0x00007f5e0c672561 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5e0c636a3e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5e0c636f96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5e0c637124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5e12ae3426 in QEventDispatcherGlib::processEvents (this=0x7f5d8c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f5e12ab2c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f5e12ab2ed7 in QEventLoop::exec (this=0x7f5d9b063d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f5e129b1fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f5e12a929ff in QInotifyFileSystemWatcherEngine::run (this=0xfca8f60) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f5e129b4fcb in QThreadPrivate::start (arg=0xfca8f60) at thread/qthread_unix.cpp:298
#11 0x00007f5e0cb03e9a in start_thread (arg=0x7f5d9b064700) at pthread_create.c:308
#12 0x00007f5e1236e4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5e14e3f7c0 (LWP 27703)):
[KCrash Handler]
#6  header<KMime::Headers::ContentTransferEncoding> (create=true, this=0x10d94fb0) at ../../kmime/kmime_content.h:794
#7  KMime::Content::contentTransferEncoding (this=0x10d94fb0, create=true) at ../../kmime/kmime_content.cpp:978
#8  0x00007f5e094c93eb in KMime::Content::decodedContent (this=0x10d94fb0) at ../../kmime/kmime_content.cpp:353
#9  0x00007f5dacbd2dbb in MessageViewer::Util::saveContent (parent=0x2fb6910, content=<optimized out>, url=...) at ../../messageviewer/util.cpp:357
#10 0x00007f5dacbd4c18 in MessageViewer::Util::saveContents (parent=0x2fb6910, contents=...) at ../../messageviewer/util.cpp:284
#11 0x00007f5dacbec43c in MessageViewer::ViewerPrivate::openAttachment (this=0x304d3f0, node=0x10d94fb0, name=...) at ../../messageviewer/viewer_p.cpp:368
#12 0x00007f5dacbcd90f in (anonymous namespace)::AttachmentURLHandler::handleClick (this=<optimized out>, url=..., w=0x304d3f0) at ../../messageviewer/urlhandlermanager.cpp:782
#13 0x00007f5dacbd0118 in MessageViewer::URLHandlerManager::handleClick (this=<optimized out>, url=..., w=0x304d3f0) at ../../messageviewer/urlhandlermanager.cpp:370
#14 0x00007f5dacbe0051 in MessageViewer::ViewerPrivate::slotUrlOpen (this=0x304d3f0, url=...) at ../../messageviewer/viewer_p.cpp:1857
#15 0x00007f5dacbf0d7e in MessageViewer::ViewerPrivate::qt_static_metacall (_o=0x304d3f0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./viewer_p.moc:197
#16 0x00007f5e12acd446 in QObject::event (this=0x304d3f0, e=<optimized out>) at kernel/qobject.cpp:1195
#17 0x00007f5e134a8894 in notify_helper (e=0x10d815a0, receiver=0x304d3f0, this=0x1e86e20) at kernel/qapplication.cpp:4559
#18 QApplicationPrivate::notify_helper (this=0x1e86e20, receiver=0x304d3f0, e=0x10d815a0) at kernel/qapplication.cpp:4531
#19 0x00007f5e134ad713 in QApplication::notify (this=0x7fff6ca62b90, receiver=0x304d3f0, e=0x10d815a0) at kernel/qapplication.cpp:4420
#20 0x00007f5e141e1b46 in KApplication::notify (this=0x7fff6ca62b90, receiver=0x304d3f0, event=0x10d815a0) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f5e12ab3e9c in QCoreApplication::notifyInternal (this=0x7fff6ca62b90, receiver=0x304d3f0, event=0x10d815a0) at kernel/qcoreapplication.cpp:876
#22 0x00007f5e12ab7c6a in sendEvent (event=0x10d815a0, receiver=0x304d3f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1e4d380) at kernel/qcoreapplication.cpp:1500
#24 0x00007f5e12ae2f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#26 0x00007f5e0c636c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f5e0c637060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f5e0c637124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f5e12ae33bf in QEventDispatcherGlib::processEvents (this=0x1e4ec10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007f5e13550d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f5e12ab2c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f5e12ab2ed7 in QEventLoop::exec (this=0x7fff6ca62b20, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f5e12ab7f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#34 0x0000000000403629 in main (argc=1, argv=0x7fff6ca631b8) at ../../../kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Laurent Montel 2012-05-16 15:03:53 UTC
could you send me in private this message as mbox format ?
Comment 2 MartinG 2013-08-31 19:18:15 UTC
*** Bug 324288 has been marked as a duplicate of this bug. ***
Comment 3 SZÉKELYI Szabolcs 2014-02-12 22:10:08 UTC
Created attachment 85117 [details]
New crash information added by DrKonqi

kontact (4.11.5) on KDE Platform 4.11.5 using Qt 4.8.4

Same thing again, hope this will provide more info.

-- Backtrace (Reduced):
#6  0x00007fde75ad47e0 in QHashData::shared_null () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fde6b63749e in header<KMime::Headers::ContentTransferEncoding> (create=true, this=this@entry=0x183e76b0) at ../../kmime/kmime_content.h:837
#8  KMime::Content::contentTransferEncoding (this=this@entry=0x183e76b0, create=create@entry=true) at ../../kmime/kmime_content.cpp:1003
#9  0x00007fde6b63751d in KMime::Content::decodedContent (this=this@entry=0x183e76b0) at ../../kmime/kmime_content.cpp:378
#10 0x00007fde0df89b15 in MessageViewer::Util::saveContent (parent=parent@entry=0x1449040, content=content@entry=0x183e76b0, url=...) at ../../messageviewer/utils/util.cpp:366
Comment 4 mail 2014-05-29 20:03:30 UTC
Created attachment 86904 [details]
New crash information added by DrKonqi

kontact (4.13) on KDE Platform 4.13.0 using Qt 4.8.6

- What I was doing when the application crashed: I was trying to save a python .py file attached to an email. The directory selection popup opened, I selected a directory, hit OK and Kontact crashed.

-- Backtrace (Reduced):
#6  0x00007f88bfc965bd in header<KMime::Headers::ContentTransferEncoding> (create=true, this=this@entry=0x29f0450) at ../../kmime/kmime_content.h:837
#7  KMime::Content::contentTransferEncoding (this=this@entry=0x29f0450, create=create@entry=true) at ../../kmime/kmime_content.cpp:1003
#8  0x00007f88bfc9664d in KMime::Content::decodedContent (this=this@entry=0x29f0450) at ../../kmime/kmime_content.cpp:378
#9  0x00007f885da9ab55 in MessageViewer::Util::saveContent (parent=parent@entry=0x24432a0, content=content@entry=0x29f0450, url=...) at ../../messageviewer/utils/util.cpp:369
#10 0x00007f885da9c1d7 in MessageViewer::Util::saveContents (parent=0x24432a0, contents=...) at ../../messageviewer/utils/util.cpp:296