[kmail2] [Bug 443958] Kmail/Akregator/Kleopatra etc crash/segmentation fault when quitting the applications

James Beddek bugzilla_noreply at kde.org
Sun Nov 14 01:28:06 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=443958

James Beddek <telans at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Kmail crash/segmentation    |Kmail/Akregator/Kleopatra
                   |fault when quitting the     |etc crash/segmentation
                   |application                 |fault when quitting the
                   |                            |applications

--- Comment #2 from James Beddek <telans at posteo.de> ---
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 at 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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list