Bug 295075

Summary: Crash on formatting USB Flash
Product: [Applications] partitionmanager Reporter: Ilya <libbkmz.dev>
Component: generalAssignee: Volker Lanz <vl>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ilya 2012-02-29 16:13:43 UTC
Application: partitionmanager-bin (1.0.60)
KDE Platform Version: 4.8.00 (4.8.0 (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.2.6-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
Gentoo portage info of apps:
sys-block/parted: Installed versions:  3.0(00:03:39 01.03.2012)(debug nls readline -device-mapper -selinux -static-libs -test)
sys-block/partitionmanager: Installed versions:  1.0.3_p20110912(23:58:13 29.02.2012)(debug -aqua)

You can try to reproduce this bug:
1. Insert USB Flash.
2. Mount it by KDE  Devica Manager.
3. Open KDE PartitionManager
4. Select USB Flash on left Side.
5. Open propertiens of 1 exisiting partition from USB Flash
6. Umount by KDE Device Manager
7. Click Cancel on Preferences
8. Right Click on USB Flash partition, Umount.
9. Go to Preferences again, and select to recreate fat32 FileSystem
10. Confirm action.
11. Press ok on preferences page.
12. Click Apply button, and you get this backtrace

Now I will try to find the bug line in source code. And try to fix it

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Partition Manager (partitionmanager-bin), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f252b8a7760 (LWP 6221))]

Thread 4 (Thread 0x7f251c3a6700 (LWP 6223)):
#0  0x00007f2528e90063 in poll () from /lib64/libc.so.6
#1  0x00007f2524f097d3 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2524f09ca1 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f252a4e821f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f252a4b7f72 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f252a4b822d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f252a3b60f8 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f252a496bc8 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f252a3b877b in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f2527da8d0c in start_thread () from /lib64/libpthread.so.0
#10 0x00007f2528e98f1d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f251bba5700 (LWP 6224)):
#0  0x00007f2528e926d3 in select () from /lib64/libc.so.6
#1  0x00007f252a494f2d in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f252a3b877b in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f2527da8d0c in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2528e98f1d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f251b3a4700 (LWP 6336)):
[KCrash Handler]
#6  0x00007f2528df1ad5 in raise () from /lib64/libc.so.6
#7  0x00007f2528df2f56 in abort () from /lib64/libc.so.6
#8  0x00007f251c3b5764 in ped_assert (cond_text=0x7f251c3db675 "disk != NULL", file=0x7f251c3db658 "disk.c", line=431, function=0x7f251c3dc7a0 "ped_disk_destroy") at debug.c:111
#9  0x00007f251c3b85f1 in ped_disk_destroy (disk=<optimized out>) at disk.c:431
#10 0x00007f251c5fbe6b in LibPartedPartitionTable::~LibPartedPartitionTable (this=0x1ec8240, __in_chrg=<optimized out>) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/plugins/libparted/libpartedpartitiontable.cpp:49
#11 0x00007f251c5fbea9 in LibPartedPartitionTable::~LibPartedPartitionTable (this=0x1ec8240, __in_chrg=<optimized out>) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/plugins/libparted/libpartedpartitiontable.cpp:50
#12 0x00007f251c5fe757 in LibPartedDevice::openPartitionTable (this=<optimized out>) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/plugins/libparted/libparteddevice.cpp:87
#13 0x00007f252b402cec in DeleteFileSystemJob::run (this=0x1f9d7d0, parent=...) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/jobs/deletefilesystemjob.cpp:68
#14 0x00007f252b3fb32c in Operation::execute (this=0x2031640, parent=...) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/ops/operation.cpp:173
#15 0x00007f252b3edaf9 in OperationRunner::run (this=0x1a9a740) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/core/operationrunner.cpp:71
#16 0x00007f252a3b877b in ?? () from /usr/lib64/qt4/libQtCore.so.4
#17 0x00007f2527da8d0c in start_thread () from /lib64/libpthread.so.0
#18 0x00007f2528e98f1d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f252b8a7760 (LWP 6221)):
#0  0x00007f2527dad58c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f252a3b968b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f252a3b85c0 in QThread::wait(unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f252a494ac0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f2528df4631 in ?? () from /lib64/libc.so.6
#5  0x00007f2528df4685 in exit () from /lib64/libc.so.6
#6  0x00007f25298ae008 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00007f252aa6e5d8 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#8  0x00007f252681551e in _XIOError () from /usr/lib64/libX11.so.6
#9  0x00007f25268132e8 in _XReply () from /usr/lib64/libX11.so.6
#10 0x00007f252680e5d3 in XSync () from /usr/lib64/libX11.so.6
#11 0x00007f2529a42855 in QRasterWindowSurface::syncX() () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007f2529a42d35 in QRasterWindowSurface::beginPaint(QRegion const&) () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00007f2529a601c5 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f25298853a0 in QWidgetPrivate::syncBackingStore() () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f2529893781 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00007f2529c593ab in QMainWindow::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00007f252ab6cee0 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkdeui.so.5
#18 0x00007f25298410a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00007f2529845ccd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f252aa6f896 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#21 0x00007f252a4b8f4c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f2529a5cdaa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007f2529884c08 in QWidget::repaint(QRect const&) () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007f2529884cc3 in QWidget::repaint() () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007f2529bfcec8 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007f2529bfd15c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#27 0x00007f2529cbbe9a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#28 0x00007f25298932cd in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007f25298410a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#30 0x00007f25298465ad in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007f252aa6f896 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#32 0x00007f252a4b8f4c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007f2529842095 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#34 0x00007f25298c1158 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#35 0x00007f25298bf829 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#36 0x00007f25298e74ca in ?? () from /usr/lib64/qt4/libQtGui.so.4
#37 0x00007f2524f092bf in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f2524f09ac8 in ?? () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f2524f09ca1 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#40 0x00007f252a4e821f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#41 0x00007f25298e717e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#42 0x00007f252a4b7f72 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#43 0x00007f252a4b822d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#44 0x00007f252a4bc9cb in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#45 0x000000000040169d in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/sys-block/partitionmanager-1.0.3_p20110912/work/partitionmanager-1.0.3_p20110912/src/main.cpp:60

Possible duplicates by query: bug 291741.

Reported using DrKonqi
Comment 1 Volker Lanz 2012-03-03 14:45:39 UTC

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