Summary: | KMail crashes when deleting an Attachment | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Johannes Obermayr <johannesobermayr> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | crash | CC: | laurent.rineau, mgolden, montel, winter |
Priority: | NOR | ||
Version: | 4.8 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.4 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Johannes Obermayr
2011-11-21 16:03:00 UTC
Fixed in 4.7.4. Created attachment 66718 [details]
New crash information added by DrKonqi
kmail (4.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
I had selected an attachment (the html part of a text/html message) and was deleting it.
-- Backtrace (Reduced):
#6 begin (this=0x40) at /usr/include/qt4/QtCore/qlist.h:861
#7 QList<KMime::Content*>::contains (this=0x40, t=@0x7fffd3dac658) at /usr/include/qt4/QtCore/qlist.h:863
#8 0x00007f589adda43c in KMime::Content::removeContent (this=0x3589500, c=0x2a884a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f589781b23b in MessageViewer::ViewerPrivate::deleteAttachment (this=0x186e950, node=0x2a884a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f58978280f7 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x186e950) at ../../messageviewer/viewer_p.cpp:2320
Created attachment 66719 [details]
New crash information added by DrKonqi
kmail (4.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
I had selected an attachment (the html part of a text/html message) and was deleting it.
-- Backtrace (Reduced):
#6 begin (this=0x40) at /usr/include/qt4/QtCore/qlist.h:861
#7 QList<KMime::Content*>::contains (this=0x40, t=@0x7fffd3dac658) at /usr/include/qt4/QtCore/qlist.h:863
#8 0x00007f589adda43c in KMime::Content::removeContent (this=0x3589500, c=0x2a884a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f589781b23b in MessageViewer::ViewerPrivate::deleteAttachment (this=0x186e950, node=0x2a884a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f58978280f7 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x186e950) at ../../messageviewer/viewer_p.cpp:2320
Created attachment 66720 [details]
New crash information added by DrKonqi
kmail (4.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
I had selected an attachment (the html part of a text/html message) and was deleting it.
-- Backtrace (Reduced):
#6 begin (this=0x40) at /usr/include/qt4/QtCore/qlist.h:861
#7 QList<KMime::Content*>::contains (this=0x40, t=@0x7fffd3dac658) at /usr/include/qt4/QtCore/qlist.h:863
#8 0x00007f589adda43c in KMime::Content::removeContent (this=0x3589500, c=0x2a884a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f589781b23b in MessageViewer::ViewerPrivate::deleteAttachment (this=0x186e950, node=0x2a884a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f58978280f7 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x186e950) at ../../messageviewer/viewer_p.cpp:2320
I fixed this one already in 4.7.4 make sure to use kdepimlibs from 4.7.4 too Created attachment 66825 [details]
New crash information added by DrKonqi
kmail (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4
- What I was doing when the application crashed:
I just downloaded kmail2 from the kubuntu-updates ppa, and I am now running 4.7.4. I am still getting the crash
-- Backtrace (Reduced):
#6 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x316e0c0, c=0x2bd85a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f323d4ea6db in MessageViewer::ViewerPrivate::deleteAttachment (this=0x22117b0, node=0x2bd85a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f323d4f7637 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x22117b0) at ../../messageviewer/viewer_p.cpp:2346
*** Bug 289164 has been marked as a duplicate of this bug. *** Created attachment 66945 [details]
New crash information added by DrKonqi
kmail (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4
- What I was doing when the application crashed:
Today a new build of the kdepimlibs-dbg:amd64 (4.7.4-0ubuntu0.1~ppa3) came down from the repository and yet I am still seeing this bug. How can I tell which version of the source this is built from so I can tell the builder there to get the most up-to-date version?
-- Backtrace (Reduced):
#6 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x1fcffb0, c=0x1baec20, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f79b3e1c6db in MessageViewer::ViewerPrivate::deleteAttachment (this=0x124a320, node=0x1baec20, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f79b3e29637 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x124a320) at ../../messageviewer/viewer_p.cpp:2346
Created attachment 66946 [details]
New crash information added by DrKonqi
kmail (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4
- What I was doing when the application crashed:
Today a new build of the kdepimlibs-dbg:amd64 (4.7.4-0ubuntu0.1~ppa3) came down from the repository and yet I am still seeing this bug. How can I tell which version of the source this is built from so I can tell the builder there to get the most up-to-date version?
-- Backtrace (Reduced):
#6 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x1fcffb0, c=0x1baec20, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f79b3e1c6db in MessageViewer::ViewerPrivate::deleteAttachment (this=0x124a320, node=0x1baec20, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f79b3e29637 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x124a320) at ../../messageviewer/viewer_p.cpp:2346
Created attachment 66947 [details]
New crash information added by DrKonqi
kmail (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4
- What I was doing when the application crashed:
Today a new build of the kdepimlibs-dbg:amd64 (4.7.4-0ubuntu0.1~ppa3) came down from the repository and yet I am still seeing this bug. How can I tell which version of the source this is built from so I can tell the builder there to get the most up-to-date version?
-- Backtrace (Reduced):
#6 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x60) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x1fcffb0, c=0x1baec20, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f79b3e1c6db in MessageViewer::ViewerPrivate::deleteAttachment (this=0x124a320, node=0x1baec20, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:397
#10 0x00007f79b3e29637 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x124a320) at ../../messageviewer/viewer_p.cpp:2346
Created attachment 67179 [details]
New crash information added by DrKonqi
kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) using Qt 4.7.4
- What I was doing when the application crashed:
I just tried this with KDE 4.7.95 (the 4.8 RC1) kubuntu package, and the crash is still happening.
-- Backtrace (Reduced):
#6 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x2238d60, c=0x12d31a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007ff90aa2d4f3 in MessageViewer::ViewerPrivate::deleteAttachment (this=0x1414eb0, node=0x12d31a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:407
#10 0x00007ff90aa3aa87 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x1414eb0) at ../../messageviewer/viewer_p.cpp:2379
Created attachment 67562 [details]
New crash information added by DrKonqi
kmail (4.8 rc2) on KDE Platform 4.7.97 (4.8 RC2 (4.7.97) using Qt 4.7.4
- What I was doing when the application crashed:
Just tried deleting an attachment with KDE 4.8 RC2 (4.7.97) and this bug is still occurring.
-- Backtrace (Reduced):
#6 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x32657c0, c=0x32bc3a0, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f25166434f3 in MessageViewer::ViewerPrivate::deleteAttachment (this=0x2427090, node=0x32bc3a0, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:407
#10 0x00007f2516650a87 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x2427090) at ../../messageviewer/viewer_p.cpp:2379
Created attachment 68197 [details]
New crash information added by DrKonqi
kmail (4.8.0) on KDE Platform 4.8.00 (4.8.0 using Qt 4.7.4
- What I was doing when the application crashed:
This bug is NOT fixed. I am using the KDE 4.8 release that just came down from Kubuntu repository, and I get this crash every time I try to delete an attachment
-- Backtrace (Reduced):
#6 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:95
#7 isEmpty (this=0x40) at /usr/include/qt4/QtCore/qlist.h:139
#8 KMime::Content::removeContent (this=0x2cd6710, c=0x3031060, del=true) at ../../kmime/kmime_content.cpp:566
#9 0x00007f14977d34f3 in MessageViewer::ViewerPrivate::deleteAttachment (this=0x2595970, node=0x3031060, showWarning=<optimized out>) at ../../messageviewer/viewer_p.cpp:407
#10 0x00007f14977e0a87 in MessageViewer::ViewerPrivate::slotAttachmentDelete (this=0x2595970) at ../../messageviewer/viewer_p.cpp:2379
*** Bug 292475 has been marked as a duplicate of this bug. *** reopen. There are two similar bugs with 4.8 *** Bug 294502 has been marked as a duplicate of this bug. *** Except in this case you are attempting to delete a body part, not an attachment. Laurent, I don't think in this case you should permit the "Delete Attachment" menu option. I think the "Delete Attachment" menu should be disabled for body parts. I don't know much about the internals of kmail, but I don't see why it's a big difference to delete a body part compared with an attachment. i regularly use pine (I am old school) and want to switch to kmail, but its inability to do this has kept me from doing so. in pine any part of the mail message may be deleted or viewed separately. I delete all the text/html parts of mail messages and only retain the text/plain part. In the message itself, a body part isn't really too different from an attachment. It's just a minor difference in the MIME header. Allen it's not a crash specific to attachment or not but a bug in treemodel. Will fix it. This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present? If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months. Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input. Git commit 0b53b36701f4fe44dfa46af120bc0c71d327040c by Ingo Klöcker. Committed on 23/04/2021 at 10:15. Pushed by kloecker into branch 'master'. Allow deletion of attachments from message structure view Deletion of attachments (and other message parts) is only allowed one at a time. Message parts inside encrypted message parts cannot be deleted. This (re-)adds the "Delete Attachment" action to the context menu of the message structure view. It was removed 3 years ago because it always crashed (because it tried to work with a copy of the node tree of the original message). Sponsored by: Intevation GmbH Related: bug 436089 FIXED-IN: 5.18.0 M +22 -1 messageviewer/src/viewer/viewer_p.cpp M +1 -0 messageviewer/src/viewer/viewer_p.h https://invent.kde.org/pim/messagelib/commit/0b53b36701f4fe44dfa46af120bc0c71d327040c |