Summary: | Kmail/Akregator/Kleopatra etc crash/segmentation fault when quitting the applications | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | James Beddek <telans> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | gladhorn |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
James Beddek
2021-10-18 10:15:50 UTC
Note: I see bugs like https://bugs.kde.org/show_bug.cgi?id=394419 which seem very similar to mine, but those have been closed due to inactivity by the looks of it. This turns out to be due to UB in qtspeech when compiled with Clang 13.0.0. I have opened a relevant Qt bug report here: https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-98321 I was not able to fix it myself, though perhaps someone from KDE might be able to :-). Below is the ubsan report: telans@desktop ~ $ LD_PRELOAD=/usr/lib/clang/13.0.0/lib/linux/libclang_rt.ubsan_standalone-x86_64.so kmail Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls") FolderCollectionMonitor::~FolderCollectionMonitor() MailCommon::FolderCollectionMonitor(0x55c6c95d9cd0) /var/tmp/portage/dev-qt/qtspeech-5.15.2-r1/work/qtspeech-everywhere-src-5.15.2/src/tts/qtexttospeech.cpp:87:15: runtime error: member call on address 0x55c6c9c535f0 which does not point to an object of type 'QTextToSpeech' 0x55c6c9c535f0: note: object is of type 'QObject' 00 00 00 00 48 c6 79 2b d2 7f 00 00 d0 27 c5 c9 c6 55 00 00 6e 66 69 67 00 00 00 00 41 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'QObject' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/tmp/portage/dev-qt/qtspeech-5.15.2-r1/work/qtspeech-everywhere-src-5.15.2/src/tts/qtexttospeech.cpp:87:15 in /var/tmp/portage/dev-qt/qtspeech-5.15.2-r1/work/qtspeech-everywhere-src-5.15.2/src/tts/qtexttospeech.cpp:263:5: runtime error: member call on address 0x55c6c9c535f0 which does not point to an object of type 'QTextToSpeech' 0x55c6c9c535f0: note: object is of type 'QObject' 00 00 00 00 48 c6 79 2b d2 7f 00 00 d0 27 c5 c9 c6 55 00 00 6e 66 69 67 00 00 00 00 41 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'QObject' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/tmp/portage/dev-qt/qtspeech-5.15.2-r1/work/qtspeech-everywhere-src-5.15.2/src/tts/qtexttospeech.cpp:263:5 in Closing as I can no longer reproduce this with Qt 5.15, and it is fixed upstream with Qt 6.4. |