A Fedora user reported a crash while creating a LUKS ext4 partition. Version-Release number of selected component: kde-partitionmanager-4.0.0-2.fc31 Additional info: reporter: libreport-2.11.3 backtrace_rating: 4 cgroup: 0::/user.slice/user-1000.slice/user@1000.service/gnome-shell-wayland.service cmdline: partitionmanager crash_function: FileSystem::sectorsUsed executable: /usr/bin/partitionmanager journald_cursor: s=72b73fcd08f54901b8af8bfd9f1cc603;i=7acbd;b=be349b3e97fb464aaf595be88aaeb259;m=5955cd21;t=5985c3d576f8a;x=f6d3484cfa751398 kernel: 5.3.12-300.fc31.x86_64 rootdir: / runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 FileSystem::sectorsUsed at /usr/include/c++/9/bits/unique_ptr.h:352 #1 Partition::sectorsUsed at /usr/src/debug/kpmcore-4.0.1-1.fc31.x86_64/src/core/partition.h:187 #2 Partition::used at /usr/src/debug/kpmcore-4.0.1-1.fc31.x86_64/src/core/partition.h:154 #3 PartWidget::paintEvent at /usr/src/debug/kpmcore-4.0.1-1.fc31.x86_64/src/gui/partwidget.cpp:96 #4 QWidget::event at kernel/qwidget.cpp:8965 #5 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3700 #6 QApplication::notify(QObject*, QEvent*) at kernel/qapplication.cpp:3446 #7 QCoreApplication::notifyInternal2 at kernel/qcoreapplication.cpp:1088 #8 QWidgetPrivate::sendPaintEvent at kernel/qwidget.cpp:5701 #9 QWidgetPrivate::drawWidget at kernel/qwidget.cpp:5641 The full backtrace is available at https://bugzilla.redhat.com/show_bug.cgi?id=1777607
Unfortunately, I don't really know what causes craash in sectorsUsed. I have seen them myself from time to time and I had some bug reports but I was never able to reproduce them, they were just random crashes. And I can't see in the source what's wrong with sectorsUsed, there are already checks for non nullptr pointer...
*** This bug has been marked as a duplicate of bug 413418 ***