Bug 466300 - kmail crashed on switching to Spam folder (.eml file example attached)
Summary: kmail crashed on switching to Spam folder (.eml file example attached)
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.22.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 12:51 UTC by IFriendly
Modified: 2023-03-14 22:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crash report DrKonqi (4.65 KB, text/vnd.kde.kcrash-report)
2023-02-23 12:51 UTC, IFriendly
Details
eml file example (36.70 KB, message/rfc822)
2023-02-23 12:52 UTC, IFriendly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IFriendly 2023-02-23 12:51:14 UTC
Created attachment 156641 [details]
Crash report DrKonqi

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. Run kmail 
2. Switch to SPAM folder in folder frame
3. Click on unread message (message example attached) in message-list frame 


OBSERVED RESULT
kmail crashhed

EXPECTED RESULT
kmail display a message in message-content frame 


SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-32-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.3 GB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ZenBook UX435EAL_UX435EAL
System Version: 1.0

ADDITIONAL INFORMATION

Example of failed mail message attached.
Crash report attached (w/o debug info). 
Unfortunately I can't install libraries with debug symbols. Authentication error occur after "Install Debug Symbols" button pressed in DrKonqi.
Comment 1 IFriendly 2023-02-23 12:52:09 UTC
Created attachment 156642 [details]
eml file example
Comment 2 Laurent Montel 2023-02-23 16:57:48 UTC
#16 0x00007f81062cefb5 in KItinerary::BarcodeDecoder::decodeZxing(QImage const&, QFlags<KItinerary::BarcodeDecoder::BarcodeType>, KItinerary::BarcodeDecoder::Result&) const () from /lib/x86_64-linux-gnu/libKPimItinerary.so.5
#17 0x00007f81062cf1e6 in KItinerary::BarcodeDecoder::decodeBinary(QImage const&, QFlags<KItinerary::BarcodeDecoder::BarcodeType>) const () from /lib/x86_64-linux-gnu/libKPimItinerary.so.5

It's a crash in kitinerary

I cc volker he knows this code
Comment 3 Volker Krause 2023-02-23 17:22:27 UTC
Doesn't crash here with the attached email. The backtrace suggests this uses ZXing 2.0, which Neon seemed to have rolled out very recently, in particular after the last update to the PIM packages. So this looks suspiciously like the ZXing ABI break issues we saw earlier with other distros already. If that's the case the upcoming 5.22.3 update should fix that automatically.

As a workaround until then, delete or move away /usr/lib64/plugins/messageviewer/bodypartformatter/messageviewer_bodypartformatter_semantic.so (path might differ slightly depending on distro/platform). That will disable the itinerary plugin but not impede KMail's functionality otherwise.
Comment 4 IFriendly 2023-02-23 22:01:38 UTC
Thank you for your fast reply and investigation. I'll wait for next release 5.22.3. Hope this issue will be solved. I'll return with result after 5.22.3.
Comment 5 IFriendly 2023-03-14 22:04:03 UTC
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-35-generic (64-bit)
Graphics Platform: X11

kmail2: 5.22.3

Problem solved. Thank you