Bug 380296 - crash when commiting delete then new partation on removable media after removal and re-attaching
Summary: crash when commiting delete then new partation on removable media after remov...
Status: RESOLVED WORKSFORME
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-05-29 01:14 UTC by Eric S
Modified: 2017-12-15 17:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric S 2017-05-29 01:14:11 UTC
Application: partitionmanager (3.0.0)

Qt Version: 5.8.0
Frameworks Version: 5.33.0
Operating System: Linux 4.8.6-1-CHAKRA x86_64
Distribution: "Chakra"

-- Information about the crash:
- What I was doing when the application crashed:
I unmounted a partition on removable media (SD drive)
then deleted a partition
then added a new partion
then I ejected  the media (having forgotten to "Apply")
I reinserted the media, and hit apply. 
Clearly this was wrong, but partition manager should not crash.

-- 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 0x7f32433b9d00 (LWP 18520))]

Thread 3 (Thread 0x7f321fc3c700 (LWP 18798)):
#0  0x00007f323f5b9dbd in read () from /usr/lib/libc.so.6
#1  0x00007f322b072191 in pa_read () from /usr/lib/pulseaudio/libpulsecommon-9.0.so
#2  0x00007f322b702a1e in pa_mainloop_prepare () from /usr/lib/libpulse.so.0
#3  0x00007f322b703490 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f322b703550 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f322b711799 in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f322b0a1a28 in ?? () from /usr/lib/pulseaudio/libpulsecommon-9.0.so
#7  0x00007f323c625444 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007f323f5c71af in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f3228f6b700 (LWP 18522)):
#0  0x00007f323f5bdddd in poll () from /usr/lib/libc.so.6
#1  0x00007f3238f431e5 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f3238f43322 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f323fedaf2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f323fe855da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f323fca99a4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f323e16ca25 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f323fcae568 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f323c625444 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f323f5c71af in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f32433b9d00 (LWP 18520)):
[KCrash Handler]
#4  0x00007f3242f1510b in PartWidget::paintEvent(QPaintEvent*) () from /usr/lib/libkpmcore.so.4
#5  0x00007f32407b9d48 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#6  0x00007f32407729bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007f324077a3e6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#8  0x00007f323fe87188 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#9  0x00007f32407b2b7a in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007f32407b31c1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007f32407b3e8c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f32407b3d79 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007f32407b2d31 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007f32407b3e8c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#15 0x00007f32407b3d79 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#16 0x00007f32407b2d31 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007f32407b3e8c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007f32407b3d79 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#19 0x00007f32407b2d31 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#20 0x00007f3240782b3c in ?? () from /usr/lib/libQt5Widgets.so.5
#21 0x00007f3240782d28 in ?? () from /usr/lib/libQt5Widgets.so.5
#22 0x00007f32407a20bf in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQt5Widgets.so.5
#23 0x00007f32407b9e18 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f32408b76db in QMainWindow::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#25 0x00007f32426a3247 in KMainWindow::event(QEvent*) () from /usr/lib/libKF5XmlGui.so.5
#26 0x00007f32426e7cc5 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libKF5XmlGui.so.5
#27 0x00007f32407729bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007f324077a3e6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#29 0x00007f323fe87188 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#30 0x00007f323fe8984b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#31 0x00007f323fedab03 in ?? () from /usr/lib/libQt5Core.so.5
#32 0x00007f3238f42fba in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007f3238f43248 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007f3238f43322 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007f323fedaf0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#36 0x00007f323fe855da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#37 0x00007f323fe8da04 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#38 0x000000000041ce51 in main ()

Possible duplicates by query: bug 377481, bug 375599, bug 365872, bug 364863, bug 364645.

Reported using DrKonqi
Comment 1 Andrius Štikonas 2017-05-30 18:45:21 UTC
Strange, I can't reproduce it (I have USB stick). Even though as you say it looks wrong to do these steps they worked. Applying after reinserting my USB I clicked Apply and it created new partitions.

Can you try with some other media and see if it is always reproducible in your case?
Comment 2 Andrius Štikonas 2017-12-15 17:02:14 UTC
I can't reproduce this, so I'll close. And it should definitely not crash when libparted backend will be replaced with sfdisk backend.