Bug 424137 - Crash after 2 failed attempts to resize
Summary: Crash after 2 failed attempts to resize
Status: RESOLVED DUPLICATE of bug 413418
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 4.1.0
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-07-12 22:03 UTC by Eric S
Modified: 2020-07-13 10:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric S 2020-07-12 22:03:03 UTC
Application: partitionmanager (4.1.0)

Qt Version: 5.13.2
Frameworks Version: 5.64.0
Operating System: Linux 5.2.11-3-CHAKRA x86_64
Distribution: "Chakra"

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

Crashed after attempting to resize (grow) a partition...for the second time.
The order of events:
I tried to unmount the partion in question (call it partition X). It failed without telling me why. I copied the umount command from the message window and ran it in terminal and from the error message, deduced what was preventuing the umount, corrected it, and ran the umount from the terminal.
Back in partition manager I then deleted partion Y to create space to grow X.
Then I resized X to increase it (not using all of the free space from Y). When I applied it gave me an error on the resize, though the deletion Y was successful.
At this point I saw that X was still showing as mounted in partion manager (did it remount it? or did it just no know it was umounted because I did so from the terminal?)
So I tried the resize again, getting an error yet again. This time, it crashed...but not until after I had copied the error message (and perhaps closed the message window).

-- Backtrace:
Application: KDE Partition Manager (partitionmanager), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcd37935d00 (LWP 21625))]

Thread 8 (Thread 0x7fcd209fd700 (LWP 21860)):
#0  0x00007fcd3edb1a64 in read () at /usr/lib/libc.so.6
#1  0x00007fcd2dc5dfb1 in pa_read () at /usr/lib/pulseaudio/libpulsecommon-11.1.so
#2  0x00007fcd2e2ed33e in pa_mainloop_prepare () at /usr/lib/libpulse.so.0
#3  0x00007fcd2e2eddb0 in pa_mainloop_iterate () at /usr/lib/libpulse.so.0
#4  0x00007fcd2e2ede70 in pa_mainloop_run () at /usr/lib/libpulse.so.0
#5  0x00007fcd2e2fbcd9 in  () at /usr/lib/libpulse.so.0
#6  0x00007fcd2dc8d088 in  () at /usr/lib/pulseaudio/libpulsecommon-11.1.so
#7  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fcd216dd700 (LWP 21633)):
#0  0x00007fcd3edb5eb1 in poll () at /usr/lib/libc.so.6
#1  0x00007fcd3bca157e in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcd3bca2562 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcd2239c9a6 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007fcd3bc6b745 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fcd21ede700 (LWP 21632)):
#0  0x00007fcd3edb1a64 in read () at /usr/lib/libc.so.6
#1  0x00007fcd3bc51180 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcd3bca013f in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcd3bca1520 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007fcd3bca164c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007fcd3bca1691 in  () at /usr/lib/libglib-2.0.so.0
#6  0x00007fcd3bc6b745 in  () at /usr/lib/libglib-2.0.so.0
#7  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fcd23398700 (LWP 21631)):
#0  0x00007fcd3edb5eb1 in poll () at /usr/lib/libc.so.6
#1  0x00007fcd3bca157e in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcd3bca164c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcd3f2fa064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcd3f2a353c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcd40a36e30 in  () at /usr/lib/libkpmcore.so.9
#6  0x00007fcd3f0ddfdc in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fcd23b99700 (LWP 21630)):
#0  0x00007fcd3d8f667c in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcd24094b2b in  () at /usr/lib/dri/i965_dri.so
#2  0x00007fcd24094757 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fcd2cc58700 (LWP 21629)):
#0  0x00007fcd3edb5eb1 in poll () at /usr/lib/libc.so.6
#1  0x00007fcd3bca157e in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcd3bca164c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcd3f2fa064 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcd3f2a353c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcd3f0dcbd9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fcd3e9cfbb6 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007fcd3f0ddfdc in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fcd34b5e700 (LWP 21628)):
#0  0x00007fcd3edb5eb1 in poll () at /usr/lib/libc.so.6
#1  0x00007fcd3b2d5922 in  () at /usr/lib/libxcb.so.1
#2  0x00007fcd3b2d7727 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fcd37512ab1 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fcd3f0ddfdc in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fcd3d8f0580 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fcd3edc0a83 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fcd37935d00 (LWP 21625)):
[KCrash Handler]
#6  0x00007fcd409c2d90 in FileSystem::sectorsUsed() const () at /usr/lib/libkpmcore.so.9
#7  0x00007fcd40a41cad in PartWidget::paintEvent(QPaintEvent*) () at /usr/lib/libkpmcore.so.9
#8  0x00007fcd3fcb0868 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007fcd3fc6ef14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#10 0x00007fcd3fc76611 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007fcd3f2a4ab9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007fcd3fca9327 in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007fcd3fca9c16 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007fcd3fcaa84e in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007fcd3fca988d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007fcd3fcaa84e in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#18 0x00007fcd3fca988d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007fcd3fcaa84e in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#23 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007fcd3fcaa734 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#27 0x00007fcd3fca988d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007fcd3fc7f99f in  () at /usr/lib/libQt5Widgets.so.5
#29 0x00007fcd3fc7fe19 in  () at /usr/lib/libQt5Widgets.so.5
#30 0x00007fcd3fc98177 in QWidgetPrivate::syncBackingStore() () at /usr/lib/libQt5Widgets.so.5
#31 0x00007fcd3fcb09a9 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#32 0x00007fcd3fdbfff5 in QMainWindow::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007fcd4078a8ac in KMainWindow::event(QEvent*) () at /usr/lib/libKF5XmlGui.so.5
#34 0x00007fcd407d53e8 in KXmlGuiWindow::event(QEvent*) () at /usr/lib/libKF5XmlGui.so.5
#35 0x00007fcd3fc6ef14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007fcd3fc76611 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#37 0x00007fcd3f2a4ab9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#38 0x00007fcd3f2a7c48 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#39 0x00007fcd3f2faa74 in  () at /usr/lib/libQt5Core.so.5
#40 0x00007fcd3bc9fabe in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#41 0x00007fcd3bca1608 in  () at /usr/lib/libglib-2.0.so.0
#42 0x00007fcd3bca164c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#43 0x00007fcd3f2fa049 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#44 0x00007fcd3f2a353c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#45 0x00007fcd3f2ab8b6 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#46 0x000055c82307682b in main ()

Possible duplicates by query: bug 423951, bug 423648, bug 423528, bug 422961, bug 422851.

Reported using DrKonqi
Comment 1 Eric S 2020-07-12 22:15:29 UTC
I tried the resize again after restarting partition manager and got the crash again. I unmounted the partition, tried to resize it, and again the resize failed. 
This time I'm pretty sure the crash is initated me performing an select All and then Alt-C on the messages in the details window.
Comment 2 Andrius Štikonas 2020-07-12 22:21:26 UTC

*** This bug has been marked as a duplicate of bug 413418 ***
Comment 3 Eric S 2020-07-13 00:44:51 UTC
I think now what may have been the trigger: udisksd was remounting the drive in response to seeing the changes (the sfdisk command was succeeding...when the resizefs2 command then failed another sfdisk command was run to revert the change--bravo to partion manager for that, btw!)

At first I thought this was the cause of resizefs2 failing but no, I watched it and the remount didn't occur until after the whole sequence. I was actually getting a prompt for the sudo equivalent (which originally I mistook for a partition manager action) for the mount, and if I cancel that prompt to prevent the mount, partition manager doesn't crash.
Comment 4 Eric S 2020-07-13 03:18:30 UTC
I did not have any USB drive inserted when any of this happened. Does it still make any sense as a duplicate of 413418?

The drive containing the partitions I was working with was an internal hard disk (there was also an internal SSD drive).
Comment 5 Andrius Štikonas 2020-07-13 10:05:14 UTC
(In reply to Eric S from comment #4)
> I did not have any USB drive inserted when any of this happened. Does it
> still make any sense as a duplicate of 413418?
> 
> The drive containing the partitions I was working with was an internal hard
> disk (there was also an internal SSD drive).

Yes, I think it still duplicate. Backtrace points to crash in the same function. In particular we were dividing by partition capacity which probably was causing division by zero when OS for whatever reason was reporting that capacity to be 0 (it's probably just temporarily after block device changes).

I never managed to reliably reproduce that crash but I saw it occasionally on my hardware.