Bug 503400

Summary: crash of partitionmanager on start
Product: [Applications] partitionmanager Reporter: Thomas Bettler <thomas.bettler>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Bettler 2025-04-26 18:11:31 UTC
Application: partitionmanager (25.04.0)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.13.0
Operating System: Linux 6.14.4-gentoo x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 6.3.4 [KCrashBackend]

-- Information about the crash:
repro steps
- sudo partitionmanager

expected behaviour
- no crash as in 24.10 and before

observed behaviour
- immediate crash using partitionmanager 25.04

$ sudo partitionmanager 
Loaded backend plugin:  "pmsfdiskbackendplugin"
"Using backend plugin: pmsfdiskbackendplugin (1)"
"Scanning devices..."
"Device found: loop0"
smartctl initialization failed for  "/dev/loop0" :  Datei oder Verzeichnis nicht gefunden
error during smart output parsing for  "/dev/loop0" :  Datei oder Verzeichnis nicht gefunden
unknown file system type  "squashfs"  on  "/dev/loop0"
KCrash: Application 'partitionmanager' crashing... crashRecursionCounter = 2
KCrash: Application Name = partitionmanager path = /usr/bin pid = 7250
KCrash: Arguments: /usr/bin/partitionmanager 
KCrash: Attempting to start /usr/libexec/drkonqi
The X11 connection broke (error 1). Did the X11 server die?
qrc:/ui/MainPage.qml:66:9: QML MainPageButton: Binding loop detected for property "icon.height":
qrc:/ui/MainPageButton.qml:15:5
qrc:/ui/MainPage.qml:48:9: QML MainPageButton: Binding loop detected for property "icon.height":
qrc:/ui/MainPageButton.qml:15:5
qrc:/ui/DeveloperPage.qml:12:1: QML DeveloperPage: Created graphical object was not placed in the graphics scene.
qml: 1
qml: 2
qml: usefulness
qml: 1
qml: 4
QSocketNotifier: Invalid socket 5 and type 'Read', disabling...
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 21 and type 'Read', disabling...

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Partition Manager (partitionmanager), signal: Segmentation fault

[KCrash Handler]
#5  0x00007ff3243347f0 in SfdiskBackend::readSectorsUsed (d=..., p=..., mountPoint=...) at /var/tmp/portage/sys-libs/kpmcore-25.04.0/work/kpmcore-25.04.0/src/plugins/sfdisk/sfdiskbackend.cpp:518
#6  0x00007ff324336737 in SfdiskBackend::scanWholeDevicePartition (this=this@entry=0x55bfa69a99c0, d=...) at /var/tmp/portage/sys-libs/kpmcore-25.04.0/work/kpmcore-25.04.0/src/plugins/sfdisk/sfdiskbackend.cpp:345
#7  0x00007ff32433ba40 in SfdiskBackend::scanDevice (this=0x55bfa69a99c0, deviceNode=...) at /var/tmp/portage/sys-libs/kpmcore-25.04.0/work/kpmcore-25.04.0/src/plugins/sfdisk/sfdiskbackend.cpp:281
#8  0x00007ff324337d32 in SfdiskBackend::scanDevices (this=0x55bfa69a99c0, scanFlags=...) at /var/tmp/portage/sys-libs/kpmcore-25.04.0/work/kpmcore-25.04.0/src/plugins/sfdisk/sfdiskbackend.cpp:106
#9  0x00007ff32e964857 in DeviceScanner::scan (this=0x55bfa6c1bf20) at /usr/include/qt6/QtCore/qflags.h:77
#10 0x00007ff32e964945 in DeviceScanner::run (this=<optimized out>) at /var/tmp/portage/sys-libs/kpmcore-25.04.0/work/kpmcore-25.04.0/src/core/devicescanner.cpp:47
#11 0x00007ff32c9d776a in operator() (__closure=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:433
#12 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:365
#13 QThreadPrivate::start (arg=0x55bfa6c1bf20) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:393
#14 0x00007ff32e136d39 in start_thread (arg=<optimized out>) at pthread_create.c:447
#15 0x00007ff32e19f17c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x7ff2dd7336c0 (LWP 7347) "Thread (pooled)"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x55bfa6db29d4, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7ff2dd732a60, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007ff32e133943 in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x55bfa6db29d4, expected=expected@entry=0, clockid=clockid@entry=1, abstime=abstime@entry=0x7ff2dd732a60, private=private@entry=0) at futex-internal.c:139
#3  0x00007ff32e13623d in __pthread_cond_wait_common (cond=0x55bfa6db29a8, mutex=0x55bfa6db2980, clockid=1, abstime=0x7ff2dd732a60) at pthread_cond_wait.c:503
#4  ___pthread_cond_timedwait64 (cond=0x55bfa6db29a8, mutex=0x55bfa6db2980, abstime=0x7ff2dd732a60) at pthread_cond_wait.c:643
#5  0x00007ff32c9c8587 in QWaitConditionPrivate::wait_relative (this=0x55bfa6db2980, deadline=...) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qwaitcondition_unix.cpp:57
#6  QWaitConditionPrivate::wait (this=0x55bfa6db2980, deadline=...) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qwaitcondition_unix.cpp:65
#7  QWaitCondition::wait (this=this@entry=0x55bfa6ccaeb0, mutex=mutex@entry=0x55bfa6d35608, deadline=...) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qwaitcondition_unix.cpp:145
#8  0x00007ff32c9e3796 in QThreadPoolThread::run (this=0x55bfa6ccaea0) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthreadpool.cpp:119
#9  0x00007ff32c9d776a in operator() (__closure=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:433
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:365
#11 QThreadPrivate::start (arg=0x55bfa6ccaea0) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qthread_unix.cpp:393
#12 0x00007ff32e136d39 in start_thread (arg=<optimized out>) at pthread_create.c:447
#13 0x00007ff32e19f17c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7ff32ac8fa40 (LWP 7250) "partitionmanage"):
#1  0x00007ff32c9e9da9 in QtLinuxFutex::_q_futex (addr=<optimized out>, op=0, val=<optimized out>, val2=0, addr2=0x0, val3=0) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qfutex_linux_p.h:48
#2  QtLinuxFutex::futexWait<QBasicAtomicInteger<unsigned int> > (futex=<optimized out>, expectedValue=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qfutex_linux_p.h:67
#3  futexSemaphoreTryAcquire_loop<false> (u=..., curValue=<optimized out>, nn=8589934593, timer=...) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qsemaphore.cpp:174
#4  futexSemaphoreTryAcquire<QDeadlineTimer::ForeverConstant> (u=..., n=n@entry=1, timeout=timeout@entry=QDeadlineTimer::ForeverConstant::Forever) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qsemaphore.cpp:239
#5  0x00007ff32c9c8dcc in QSemaphore::acquire (this=this@entry=0x7ffe46346770, n=n@entry=1) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/thread/qsemaphore.cpp:327
#6  0x00007ff32cac3688 in doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/kernel/qobject.cpp:4121
#7  0x00007ff32ca809b4 in QMetaObject::activate (sender=sender@entry=0x7ffe46346a30, m=m@entry=0x7ff32cd69b00 <QObject::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe463467e0) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/kernel/qobject.cpp:4198
#8  0x00007ff32ca80a62 in QMetaObject::activate<void, QObject*> (sender=0x7ffe46346a30, mo=0x7ff32cd69b00 <QObject::staticMetaObject>, local_signal_index=0, ret=0x0) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/kernel/qobjectdefs.h:306
#9  QObject::destroyed (this=this@entry=0x7ffe46346a30, _t1=<optimized out>, _t1@entry=0x7ffe46346a30) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0_build/src/corelib/kernel/moc_qobject.cpp:186
#10 0x00007ff32ca9d734 in QObject::~QObject (this=0x7ffe46346a30, __in_chrg=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.9.0-r1/work/qtbase-everywhere-src-6.9.0/src/corelib/kernel/qobject.cpp:1042
#11 0x000055bf9a859a85 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/sys-block/partitionmanager-25.04.0/work/partitionmanager-25.04.0/src/main.cpp:144
[Inferior 1 (process 7250) detached]

Reported using DrKonqi
Comment 1 Antonio Rojas 2025-04-26 21:20:37 UTC

*** This bug has been marked as a duplicate of bug 502141 ***