Created attachment 122451 [details] gdb backtrace SUMMARY Dolphin segfaults when trying to open the properties window of a folder. Doing the same for a file works fine. STEPS TO REPRODUCE 1. Get a Musl system like Alpine Linux or Gentoo Musl 2. Install Dolphin 3. Try to open the properties window of a folder OBSERVED RESULT Dolphin segfaults EXPECTED RESULT Dolphin not to segfault SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux 4.19.68 KDE Plasma Version: 5.16.4 KDE Frameworks Version: 5.61.0 Qt Version: 5.12.4 ADDITIONAL INFORMATION It's a Musl based system, so the bug is most probably because of that.
Thread 1 "dolphin" received signal SIGSEGV, Segmentation fault. 0x00007ffff78d9ce0 in KMountPoint::mountType() const () from /usr/lib/libKF5KIOCore.so.5 (gdb) bt #0 0x00007ffff78d9ce0 in KMountPoint::mountType() const () from /usr/lib/libKF5KIOCore.so.5 #1 0x00007ffff7a4d12c in ?? () from /usr/lib/libKF5KIOWidgets.so.5 #2 0x00007ffff7a55ef3 in ?? () from /usr/lib/libKF5KIOWidgets.so.5 #3 0x00007ffff7a5666f in ?? () from /usr/lib/libKF5KIOWidgets.so.5 #4 0x00007ffff7a56bd8 in KPropertiesDialog::KPropertiesDialog(KFileItemList const&, QWidget*) () from /usr/lib/libKF5KIOWidgets.so.5 #5 0x00007ffff7e1a319 in DolphinViewActionHandler::slotProperties() () from /usr/lib/libdolphinprivate.so.5 #6 0x00007ffff6085c73 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 #7 0x00007ffff6b0935a in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5 #8 0x00007ffff6b0af2e in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5
Missing nullptr check: https://phabricator.kde.org/D23670
Awesome, thanks for the quick patch! I tested it and it fixed the problem! I'm going to apply it downstream in Alpine Linux for now.
Git commit 3b571aacf7e9fbf94bfc395cf8391f24fae316bb by Kai Uwe Broulik. Committed on 02/09/2019 at 14:35. Pushed by broulik into branch 'master'. [KPropertiesDialog] Always check mount point being null File system type got added after the fact and outside the guard. Differential Revision: https://phabricator.kde.org/D23670 M +7 -7 src/widgets/kpropertiesdialog.cpp https://commits.kde.org/kio/3b571aacf7e9fbf94bfc395cf8391f24fae316bb