Bug 422851

Summary: Crash if device removed
Product: [Applications] partitionmanager Reporter: Manuel López-Ibáñez <lopezibanez>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Manuel López-Ibáñez 2020-06-12 06:19:01 UTC
Application: partitionmanager (3.3.1)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 5.3.0-59-generic x86_64
Distribution: Ubuntu 18.04.4 LTS

-- Information about the crash:
- What I was doing when the application crashed:

The application was stuck while formatting a USB drive. I removed the drive to see if that would unfreeze it but it crashed instead.

- Unusual behavior I noticed:

The application appeared frozen. I tried cancelling the operation but there was not change in behavior. Trying to close the window only said that the application was not responding and whether to force stop it.

- Custom settings of the application:

None.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Partition Manager (partitionmanager), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
[Current thread is 1 (Thread 0x7fb38505e840 (LWP 4511))]

Thread 4 (Thread 0x7fb35b7fa700 (LWP 5058)):
[KCrash Handler]
#4  0x00007fb380e3ee97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5  0x00007fb380e40801 in __GI_abort () at abort.c:79
#6  0x00007fb36844f79a in  () at /lib/x86_64-linux-gnu/libparted.so.2
#7  0x00007fb3684524e1 in ped_disk_destroy () at /lib/x86_64-linux-gnu/libparted.so.2
#8  0x00007fb3688b4de7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/libpmlibpartedbackendplugin.so
#9  0x00007fb3688b49fb in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/libpmlibpartedbackendplugin.so
#10 0x00007fb384c4c7e0 in  () at /usr/lib/x86_64-linux-gnu/libkpmcore.so.7
#11 0x00007fb384c38fea in ResizeOperation::move(Report&) () at /usr/lib/x86_64-linux-gnu/libkpmcore.so.7
#12 0x00007fb384c3a0ed in ResizeOperation::execute(Report&) () at /usr/lib/x86_64-linux-gnu/libkpmcore.so.7
#13 0x00007fb384c21bcf in OperationRunner::run() () at /usr/lib/x86_64-linux-gnu/libkpmcore.so.7
#14 0x00007fb38162617d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007fb37ce566db in start_thread (arg=0x7fb35b7fa700) at pthread_create.c:463
#16 0x00007fb380f2188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb35bffb700 (LWP 4589)):
#0  0x00007fb37ce5c9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x557c0843e398) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fb37ce5c9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x557c0843e348, cond=0x557c0843e370) at pthread_cond_wait.c:502
#2  0x00007fb37ce5c9f3 in __pthread_cond_wait (cond=0x557c0843e370, mutex=0x557c0843e348) at pthread_cond_wait.c:655
#3  0x00007fb35d33decb in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fb35d33dac7 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fb37ce566db in start_thread (arg=0x7fb35bffb700) at pthread_create.c:463
#6  0x00007fb380f2188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb3692c0700 (LWP 4513)):
#0  0x00007fb37b5e3644 in g_mutex_unlock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb37b59cdc9 in g_main_context_query () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb37b59d547 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb37b59d6dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb38185d8ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fb38180290a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb38162123a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fb380731d45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fb38162617d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fb37ce566db in start_thread (arg=0x7fb3692c0700) at pthread_create.c:463
#10 0x00007fb380f2188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb38505e840 (LWP 4511)):
#0  0x00007fb380f1b839 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fb38161d775 in QBasicMutex::lockInternal() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x0000557c07089eb8 in  ()
#3  0x00007fb38183366f in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fb3827146d8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007fb381833555 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb382673ba2 in QAbstractButton::clicked(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007fb382673dba in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007fb38267519a in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007fb38267538d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fb3825c1048 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fb38258283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fb38258a65f in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fb3818048d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fb382589632 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fb3825dc16b in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fb3825de7da in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fb38258283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fb38258a104 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fb3818048d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fb381dc6583 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007fb381dc8055 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007fb381d9f2eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007fb375dc8260 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#24 0x00007fb37b59d417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fb37b59d650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fb37b59d6dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fb38185d88f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fb38180290a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fb38180b9b4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x0000557c0707eeef in main ()

Reported using DrKonqi
Comment 1 Andrius Štikonas 2020-06-12 09:35:04 UTC
The crash is in libparted.

KDE Partition Manager 4 does not use libparted anymore. So I think we can mark it as resolved.