Created attachment 122413 [details]
patch to provoke failure, even if LTO is disabled
The linking is ordered alphabetically in src/drive/CMakeLists.txt, and fails
with a segfault, if LTO is used, because LTO doesn't stick to the supplied linking order, if it sees a chance to optimize module locality.
STEPS TO REPRODUCE
apply attached patch, compile, install, and run "kioclient5 exec gdrive:/"
Failure: The process for the protocol gdrive failed unexpectedly. (translated)
Linux/KDE Plasma: Tumbleweed 20190824
(available in About System)
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0
Linking with LTO disabled fixed the problem, but the correct initialization order should be addressed in some future version.
*** Bug 428826 has been marked as a duplicate of this bug. ***
*** Bug 449113 has been marked as a duplicate of this bug. ***