Bug 283053 - KMail/Kontact crashes on "Save attachments"
Summary: KMail/Kontact crashes on "Save attachments"
Status: RESOLVED DUPLICATE of bug 275260
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 22:13 UTC by Matija Šuklje
Modified: 2011-09-30 08:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matija Šuklje 2011-09-29 22:13:31 UTC
Application: kontact (4.7.0 )
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.2
Operating System: Linux 2.6.39-gentoo-r3 x86_64
Distribution: "Gentoo Base System release 2.0.3"

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

In Kontact's KMail I had an e-mail open which had several attachments in it. I selected "Save attachments" that's available via the right mouse button menu.

Result: KMail/Kontact crashed instantly when I clicked on the "Save attachments" menu entry.

Expected result: No crash, saving all attachments to a certain directory.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f6680b07760 (LWP 22569))]

Thread 2 (Thread 0x7f6669eb3700 (LWP 22571)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f667d54288d in WTF::TCMalloc_PageHeap::scavengerThread (this=<value optimized out>) at wtf/FastMalloc.cpp:2378
#2  0x00007f667d542999 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f667dcf6f34) at wtf/FastMalloc.cpp:1497
#3  0x00007f6678ef1c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#4  0x00007f667e036eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f6680b07760 (LWP 22569)):
[KCrash Handler]
#6  header<KMime::Headers::ContentDisposition> (this=0x29746c757365, create=true) at /var/tmp/portage/kde-base/kdepimlibs-4.7.0/work/kdepimlibs-4.7.0/kmime/kmime_content.h:794
#7  KMime::Content::contentDisposition (this=0x29746c757365, create=true) at /var/tmp/portage/kde-base/kdepimlibs-4.7.0/work/kdepimlibs-4.7.0/kmime/kmime_content.cpp:967
#8  0x00007f6663a71210 in MessageViewer::Util::extractAttachments (message=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.0/work/kdepim-common-libs-4.7.0/messageviewer/util.cpp:146
#9  0x00007f66659d6da4 in KMSaveAttachmentsCommand::execute (this=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0/kmail/kmcommands.cpp:1712
#10 0x00007f66659cb0a1 in KMCommand::slotPostTransfer (this=0x1d80040, result=KMCommand::OK) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0/kmail/kmcommands.cpp:265
#11 0x00007f66659cf403 in KMCommand::qt_metacall (this=0x1d80040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1a9e54b0) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0_build/kmail/kmcommands.moc:88
#12 0x00007f667f40e96f in QMetaObject::activate (sender=0x1d80040, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2) at kernel/qobject.cpp:3278
#13 0x00007f66659ca18e in KMCommand::messagesTransfered (this=0x29746c757365, _t1=KMCommand::OK) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0_build/kmail/kmcommands.moc:103
#14 0x00007f66659cea00 in KMCommand::slotJobFinished (this=0x1d80040) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0/kmail/kmcommands.cpp:375
#15 0x00007f66659cf3cc in KMCommand::qt_metacall (this=0x1d80040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1a9e5660) at /var/tmp/portage/kde-base/kmail-4.7.0/work/kmail-4.7.0_build/kmail/kmcommands.moc:90
#16 0x00007f667f40e96f in QMetaObject::activate (sender=0x505b590, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2) at kernel/qobject.cpp:3278
#17 0x00007f667f86d702 in KJob::result (this=0x29746c757365, _t1=0x505b590) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0_build/kdecore/kjob.moc:194
#18 0x00007f667f86d9a0 in KJob::emitResult (this=0x505b590) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdecore/jobs/kjob.cpp:312
#19 0x00007f667b36df69 in delayedEmitResult (this=0x505b590, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1e0adc0) at /var/tmp/portage/kde-base/kdepimlibs-4.7.0/work/kdepimlibs-4.7.0/akonadi/job.cpp:144
#20 Akonadi::Job::qt_metacall (this=0x505b590, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1e0adc0) at /var/tmp/portage/kde-base/kdepimlibs-4.7.0/work/kdepimlibs-4.7.0_build/akonadi/job.moc:91
#21 0x00007f667b35b1e5 in Akonadi::ItemFetchJob::qt_metacall (this=0x29746c757365, _c=QMetaObject::ReadProperty, _id=3, _a=0x2) at /var/tmp/portage/kde-base/kdepimlibs-4.7.0/work/kdepimlibs-4.7.0_build/akonadi/itemfetchjob.moc:73
#22 0x00007f667f408a1e in QObject::event (this=0x505b590, e=0x29746c757365) at kernel/qobject.cpp:1217
#23 0x00007f667e79b8dc in QApplicationPrivate::notify_helper (this=0xc598b0, receiver=0x505b590, e=0x5082040) at kernel/qapplication.cpp:4462
#24 0x00007f667e7a0d7d in QApplication::notify (this=0x7fff1a9e6150, receiver=0x505b590, e=0x5082040) at kernel/qapplication.cpp:4341
#25 0x00007f667fea7836 in KApplication::notify (this=0x7fff1a9e6150, receiver=0x505b590, event=0x5082040) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:311
#26 0x00007f667f3f6c8b in QCoreApplication::notifyInternal (this=0x7fff1a9e6150, receiver=0x505b590, event=0x5082040) at kernel/qcoreapplication.cpp:731
#27 0x00007f667f3f9c11 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xc32730) at kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xc32730) at kernel/qcoreapplication.cpp:1372
#29 0x00007f667f423233 in sendPostedEvents (s=0xc6c580) at kernel/qcoreapplication.h:220
#30 postEventSourceDispatch (s=0xc6c580) at kernel/qeventdispatcher_glib.cpp:277
#31 0x00007f6677d38bc1 in g_main_dispatch (context=0xc5b8b0) at gmain.c:2441
#32 g_main_context_dispatch (context=0xc5b8b0) at gmain.c:3014
#33 0x00007f6677d3d258 in g_main_context_iterate (context=0xc5b8b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3092
#34 0x00007f6677d3d40c in g_main_context_iteration (context=0xc5b8b0, may_block=1) at gmain.c:3155
#35 0x00007f667f422d73 in QEventDispatcherGlib::processEvents (this=0xc31f50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#36 0x00007f667e84dcbe in QGuiEventDispatcherGlib::processEvents (this=0x29746c757365, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007f667f3f59e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#38 0x00007f667f3f5dc4 in QEventLoop::exec (this=0x7fff1a9e6090, flags=) at kernel/qeventloop.cpp:201
#39 0x00007f667f3f9e3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#40 0x0000000000404149 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kontact-4.7.0/work/kontact-4.7.0/kontact/src/main.cpp:218

Possible duplicates by query: bug 275260.

Reported using DrKonqi
Comment 1 Matija Šuklje 2011-09-29 22:22:38 UTC
Further tests that did *not* crash:

* if there is no attachments in the e-mail, it doesn't crash

* if there is only one attachment, it doesn't crash (and works as expected)

* I tested some more e-mails with attachments and except for the one I reported initially, they all worked as expected and didn't crash.

With the e-mail that triggered this bug report, I can still reproduce the bug flawlessly. Just not with any other e-mail I've tried so far.

I haven't found yet anything that would differentiate this particular e-mail from the others. It has 13 JPEG files attached, but neither the file format nor the number of attachments are anything special here. Even the mail client that was used to send it (Evolution) is not standing out.
Comment 2 Christophe Marin 2011-09-30 08:15:23 UTC

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