Bug 411999 - kmail crashes on a base64 encoded PDF file
Summary: kmail crashes on a base64 encoded PDF file
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.12.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-17 18:19 UTC by Erwin Lam
Modified: 2019-10-15 17:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
GDB backtrace (135.31 KB, text/plain)
2019-09-17 18:19 UTC, Erwin Lam
Details
Message with the base64 encoded PDF causing the issue. (2.19 MB, application/gzip)
2019-09-17 18:21 UTC, Erwin Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Lam 2019-09-17 18:19:13 UTC
Created attachment 122695 [details]
GDB backtrace

SUMMARY

I received a base64 encoded PDF file (a newsletter) from a family member. When the message with the attachment appeared into my inbox, kmail crashed immediately. After removing the message from the inbox, kmail could be started again and worked flawlessly.

STEPS TO REPRODUCE
1. Put mail with base64 encoded PDF in inbox
2. Start kmail.
3. kmail crashes immediately. No time to even open the offending e-mail.
4. Remove the offending message from the inbox.
5. Restart kmail.
6. kmail works again flawlessly.


OBSERVED RESULT
kmail crashes as soon as the e-mail appears in the inbox.

EXPECTED RESULT
kmail does not crash and I would be able to read the message.

SOFTWARE/OS VERSIONS
Linux: openSUSE Leap 15.1
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
Attache backtrace & the offending e-mail message.
Comment 1 Erwin Lam 2019-09-17 18:21:06 UTC
Created attachment 122696 [details]
Message with the base64 encoded PDF causing the issue.
Comment 2 Erwin Lam 2019-09-17 18:22:40 UTC
If I manually retrieve the base64 encoded content from the e-mail and decode it I get a valid PDF file, i.e. okular has no problem with it.
Comment 3 Allen Winter 2019-10-14 21:27:30 UTC
of course it works fine for me.

I do see you are using a newer poppler than I am.  I'm still using poppler 0.67.
also could be a bug in kitinerary.

I'll CC Volker on this. maybe he has an idea.
Comment 4 Volker Krause 2019-10-15 12:58:03 UTC
A local workaround for this is to delete /usr/lib64/plugins/messageviewer/bodypartformatter/messageviewer_bodypartformatter_semantic.so (exact location can vary slightly depending on the distro).

This entire class of errors has been mitigated in 19.12 by moving PDF parsing out of the KMail process.
Comment 5 Allen Winter 2019-10-15 17:15:46 UTC
I suppose this should be downstreamed to your distro.

I don't think there's anything KDE can do for you.