Bug 287594

Summary: Crash when saving/opening an attachment
Product: [Applications] kmail2 Reporter: Benjamin M <alvanx>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Benjamin M 2011-11-26 09:48:04 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

This started to happen this week. The crash either occurs right when clicking the attachment, or after I've picked the location to save it. Sometimes no crash happens; I havn't found a pattern. In one case I was finally able to save a specific attachment after it had crashed about 4 times before. Most times it crashes. This happens with different file types, I specifically remember pdfs and different kinds of documents and presentations. 

Could be a duplicate of https://bugs.kde.org/show_bug.cgi?id=287177. 

Reproducible: Sometimes


Actual Results:  
 

Expected Results:  
 

Not sure how valuable this backtrace will be, it has a one star rating, but it's with debug packages. 

Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0xb1b77710 (LWP 21663))]

Thread 3 (Thread 0xb02fcb70 (LWP 21669)):
#0  0xb5a33782 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb600a40c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb3acc8fb in WTF::TCMalloc_PageHeap::scavengerThread (this=0xb41e9340) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#3  0xb3acca1f in WTF::TCMalloc_PageHeap::runScavengerThread (context=0xb41e9340) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#4  0xb5a2fa7d in start_thread () from /lib/libpthread.so.0
#5  0xb5ffc8fe in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaf9d4b70 (LWP 21670)):
#0  0xb4806c96 in clock_gettime () from /lib/librt.so.1
#1  0xb6d09c35 in do_gettime (frac=0xaf9d40b0, sec=0xaf9d40a8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6ddc206 in QTimerInfoList::updateCurrentTime (this=0x846bb4c) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6ddbdd6 in timerSourceCheckHelper (src=0x846bb18) at kernel/qeventdispatcher_glib.cpp:150
#5  timerSourceCheckHelper (src=0x846bb18) at kernel/qeventdispatcher_glib.cpp:144
#6  0xb474daf4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#7  0xb474e4c0 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0xb474e7fa in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0xb6ddb897 in QEventDispatcherGlib::processEvents (this=0x84d8380, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#10 0xb6dac44d in QEventLoop::processEvents (this=0xaf9d42e0, flags=...) at kernel/qeventloop.cpp:149
#11 0xb6dac691 in QEventLoop::exec (this=0xaf9d42e0, flags=...) at kernel/qeventloop.cpp:201
#12 0xb6caf75b in QThread::exec (this=0x8403ab0) at thread/qthread.cpp:498
#13 0xb6caf84b in QThread::run (this=0x8403ab0) at thread/qthread.cpp:565
#14 0xb6cb2613 in QThreadPrivate::start (arg=0x8403ab0) at thread/qthread_unix.cpp:331
#15 0xb5a2fa7d in start_thread () from /lib/libpthread.so.0
#16 0xb5ffc8fe in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb1b77710 (LWP 21663)):
[KCrash Handler]
#6  0xb5674559 in KMime::Content::contentDisposition(bool) () from /usr/lib/libkmime.so.4
#7  0xb4b24f42 in MessageViewer::NodeHelper::fileName(KMime::Content const*) () from /usr/lib/libmessageviewer.so.4
#8  0xb4b5f602 in MessageViewer::Util::saveContents(QWidget*, QList<KMime::Content*> const&) () from /usr/lib/libmessageviewer.so.4
#9  0xb4b7a1de in ?? () from /usr/lib/libmessageviewer.so.4
#10 0xb4b55998 in ?? () from /usr/lib/libmessageviewer.so.4
#11 0xb4b5aace in ?? () from /usr/lib/libmessageviewer.so.4
#12 0xb4b6d3ea in ?? () from /usr/lib/libmessageviewer.so.4
#13 0xb4b7f1c8 in ?? () from /usr/lib/libmessageviewer.so.4
#14 0xb6db37dd in metacall (argv=0x905f3f0, idx=23, cl=QMetaObject::InvokeMetaMethod, object=0x8495c38) at kernel/qmetaobject.cpp:237
#15 QMetaObject::metacall (object=0x8495c38, cl=QMetaObject::InvokeMetaMethod, idx=23, argv=0x905f3f0) at kernel/qmetaobject.cpp:232
#16 0xb6dbe305 in QMetaCallEvent::placeMetaCall (this=0x8e9fdf0, object=0x8495c38) at kernel/qobject.cpp:535
#17 0xb6dc582f in QObject::event (this=0x8495c38, e=0x8e9fdf0) at kernel/qobject.cpp:1226
#18 0xb62e4ee4 in notify_helper (e=0x8e9fdf0, receiver=0x8495c38, this=0x8099f60) at kernel/qapplication.cpp:4481
#19 QApplicationPrivate::notify_helper (this=0x8099f60, receiver=0x8495c38, e=0x8e9fdf0) at kernel/qapplication.cpp:4453
#20 0xb62ea272 in QApplication::notify (this=0x8e9fdf0, receiver=0x8495c38, e=0x8e9fdf0) at kernel/qapplication.cpp:4228
#21 0xb75d6681 in KApplication::notify (this=0xbfc28ebc, receiver=0x8495c38, event=0x8e9fdf0) at /usr/src/debug/kdelibs-4.7.3/kdeui/kernel/kapplication.cpp:311
#22 0xb6dad42e in QCoreApplication::notifyInternal (this=0xbfc28ebc, receiver=0x8495c38, event=0x8e9fdf0) at kernel/qcoreapplication.cpp:787
#23 0xb6db0bf4 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8051d58) at kernel/qcoreapplication.cpp:1428
#25 0xb6db0d3c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1321
#26 0xb6ddb404 in sendPostedEvents () at kernel/qcoreapplication.h:220
#27 postEventSourceDispatch (s=0x809b988) at kernel/qeventdispatcher_glib.cpp:277
#28 0xb474de2f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0xb474e560 in ?? () from /usr/lib/libglib-2.0.so.0
#30 0xb474e7fa in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0xb6ddb837 in QEventDispatcherGlib::processEvents (this=0x8089640, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#32 0xb6398aaa in QGuiEventDispatcherGlib::processEvents (this=0x8089640, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0xb6dac44d in QEventLoop::processEvents (this=0xbfc28dd4, flags=...) at kernel/qeventloop.cpp:149
#34 0xb6dac691 in QEventLoop::exec (this=0xbfc28dd4, flags=...) at kernel/qeventloop.cpp:201
#35 0xb6db0dea in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#36 0xb62e2d64 in QApplication::exec () at kernel/qapplication.cpp:3755
#37 0x0804a496 in main (argc=-1240924172, argv=0x20) at /usr/src/debug/kdepim-4.7.3/kmail/main.cpp:145
Comment 1 Christophe Marin 2011-11-26 10:43:32 UTC
If you have the debug package for messageviewer, that likely means it's one the correct version.

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