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

            Bug ID: 502141
           Summary: App crashes in SfdiskBackend::readSectorsUsed() while
                    refreshing if USB flash drive needing repairs is
                    plugged in
    Classification: Applications
           Product: partitionmanager
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: andr...@stikonas.eu
          Reporter: n...@kde.org
  Target Milestone: ---

SUMMARY
I have a USB flash drive that evidently needs repairs (as detected by Plasma's
Disks & Devices popup). When I launch Partition Manager or refresh it while the
drive is plugged in, the app crashes.

STEPS TO REPRODUCE
1. Plug in a USB flash drive in need of repair
2. Launch Partition Manager and authenticate

OBSERVED RESULT
The app crashes 100% of the time:

#0  __pthread_kill_implementation
    (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at
pthread_kill.c:44
#1  0x00007faf7f07fbc3 in __pthread_kill_internal (threadid=<optimized out>,
signo=11)
    at pthread_kill.c:78
#2  0x00007faf7f026f9e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007faf81c3554b in KCrash::defaultCrashHandler (sig=11)
    at /home/nate/kde/src/kcrash/src/kcrash.cpp:605
#4  0x00007faf7f027050 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007faf680ce9b4 in SfdiskBackend::readSectorsUsed (d=..., p=...,
mountPoint=...)
    at /home/nate/kde/src/kpmcore/src/plugins/sfdisk/sfdiskbackend.cpp:523
#6  0x00007faf680d02f5 in SfdiskBackend::scanWholeDevicePartition
    (this=this@entry=0x7faf64009600, d=...)
    at /home/nate/kde/src/kpmcore/src/plugins/sfdisk/sfdiskbackend.cpp:345
#7  0x00007faf680d45d9 in SfdiskBackend::scanDevice
    (this=0x7faf64009600, deviceNode=<optimized out>)
    at /home/nate/kde/src/kpmcore/src/plugins/sfdisk/sfdiskbackend.cpp:297
#8  0x00007faf680d104b in SfdiskBackend::scanDevices (this=0x7faf64009600,
scanFlags=...)
    at /home/nate/kde/src/kpmcore/src/plugins/sfdisk/sfdiskbackend.cpp:106
#9  0x00007faf8233a842 in DeviceScanner::scan (this=0x398d2720)
    at /home/nate/kde/src/kpmcore/src/core/devicescanner.cpp:56
#10 0x00007faf7f8b67e9 in operator() (__closure=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/thread/qthread_unix.cpp:375
#11 (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
    (t=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/thread/qthread_unix.cpp:311
#12 QThreadPrivate::start (arg=0x398d2720)
    at
/usr/src/debug/qt6-qtbase-6.8.2-3.fc41.x86_64/src/corelib/thread/qthread_unix.cpp:339
#13 0x00007faf7f07dba8 in start_thread (arg=<optimized out>) at
pthread_create.c:448
#14 0x00007faf7f101b8c in __GI___clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:78


EXPECTED RESULT
No crash.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GB of RAM (14.9 GB usable)
Graphics Processor: AMD Radeon 780M

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to