Bug 306476

Summary: Crash while moving partition
Product: [Applications] partitionmanager Reporter: Anton Astafiev <mahairod777>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED FIXED    
Severity: crash CC: andrius, braboar, christopherheiny, greg.martyn, scraelos
Priority: NOR    
Version: 1.0.60   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 2.9.90
Sentry Crash Report:

Description Anton Astafiev 2012-09-09 06:26:33 UTC
Application: partitionmanager-bin (1.0.60)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.2
Operating System: Linux 3.4.7-1.fc16.x86_64 x86_64
Distribution: "Fedora release 16 (Verne)"

-- Information about the crash:
- What I was doing when the application crashed:
I was moving partition on one disk to lower start address. After clicking apply button crash happens. Operation is not actually completed.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Partition Manager (partitionmanager-bin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f691b342840 (LWP 3915))]

Thread 2 (Thread 0x7f6900ed2700 (LWP 3917)):
#0  0x00007f6917fd0803 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f691333f448 in g_main_context_poll (n_fds=1, fds=0x7f68fc002450, priority=<optimized out>, timeout=-1, context=0x7f68fc0009a0) at gmain.c:3402
#2  g_main_context_iterate (context=0x7f68fc0009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3084
#3  0x00007f691333f90c in g_main_context_iteration (context=0x7f68fc0009a0, may_block=1) at gmain.c:3152
#4  0x00007f6919d14246 in QEventDispatcherGlib::processEvents (this=0x7f68fc0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f6919ce4312 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f6919ce4567 in QEventLoop::exec (this=0x7f6900ed1d10, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f6919be3b87 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f6919cc3f9f in QInotifyFileSystemWatcherEngine::run (this=0x1a2c270) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f6919be6bcb in QThreadPrivate::start (arg=0x1a2c270) at thread/qthread_unix.cpp:307
#10 0x00007f6919956d90 in start_thread (arg=0x7f6900ed2700) at pthread_create.c:309
#11 0x00007f6917fd919d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f691b342840 (LWP 3915)):
[KCrash Handler]
#6  0x00007f691ae79760 in sectorsUsed (this=0x0) at /usr/src/debug/kde-partitionmanager-1.0.3/src/fs/filesystem.h:162
#7  Partition::sectorsUsed (this=0x1d253c0) at /usr/src/debug/kde-partitionmanager-1.0.3/src/core/partition.cpp:180
#8  0x00007f691aeec3e0 in used (this=0x1d253c0) at /usr/src/debug/kde-partitionmanager-1.0.3/src/core/partition.h:146
#9  PartWidget::paintEvent (this=0x1e6f840) at /usr/src/debug/kde-partitionmanager-1.0.3/src/gui/partwidget.cpp:113
#10 0x00007f6918eb0efc in QWidget::event (this=0x1e6f840, event=0x7fff6f0d1460) at kernel/qwidget.cpp:8517
#11 0x00007f6918e60ae4 in notify_helper (e=0x7fff6f0d1460, receiver=0x1e6f840, this=0x18b3ba0) at kernel/qapplication.cpp:4551
#12 QApplicationPrivate::notify_helper (this=0x18b3ba0, receiver=0x1e6f840, e=0x7fff6f0d1460) at kernel/qapplication.cpp:4523
#13 0x00007f6918e658b3 in QApplication::notify (this=0x7fff6f0d5950, receiver=0x1e6f840, e=0x7fff6f0d1460) at kernel/qapplication.cpp:4412
#14 0x00007f691a5088e6 in KApplication::notify (this=0x7fff6f0d5950, receiver=0x1e6f840, event=0x7fff6f0d1460) at /usr/src/debug/kdelibs-4.8.5/kdeui/kernel/kapplication.cpp:311
#15 0x00007f6919ce548c in QCoreApplication::notifyInternal (this=0x7fff6f0d5950, receiver=0x1e6f840, event=0x7fff6f0d1460) at kernel/qcoreapplication.cpp:915
#16 0x00007f6918eacba0 in sendSpontaneousEvent (event=0x7fff6f0d1460, receiver=0x1e6f840) at ../../src/corelib/kernel/qcoreapplication.h:234
#17 QWidgetPrivate::drawWidget (this=0x1fcdff0, pdev=0x1c7bc00, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5594
#18 0x00007f6918ead80f in QWidgetPrivate::paintSiblingsRecursive (this=0x1fe5cc0, pdev=0x1c7bc00, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5803
#19 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1fe5cc0, pdev=0x1c7bc00, siblings=..., index=2, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#20 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1fe5cc0, pdev=0x1c7bc00, siblings=..., index=3, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#21 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1fe5cc0, pdev=0x1c7bc00, siblings=..., index=4, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#22 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1fe5cc0, pdev=0x1c7bc00, siblings=..., index=5, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#23 0x00007f6918eac8fc in QWidgetPrivate::drawWidget (this=0x1fe5cc0, pdev=0x1c7bc00, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5647
#24 0x00007f6918ead80f in QWidgetPrivate::paintSiblingsRecursive (this=0x1ad9130, pdev=0x1c7bc00, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5803
#25 0x00007f6918eac8fc in QWidgetPrivate::drawWidget (this=0x1ad9130, pdev=0x1c7bc00, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5647
#26 0x00007f6918ead80f in QWidgetPrivate::paintSiblingsRecursive (this=0x1aad800, pdev=0x1c7bc00, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5803
#27 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1aad800, pdev=0x1c7bc00, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#28 0x00007f6918eac8fc in QWidgetPrivate::drawWidget (this=0x1aad800, pdev=0x1c7bc00, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5647
#29 0x00007f6918ead80f in QWidgetPrivate::paintSiblingsRecursive (this=0x1ac03a0, pdev=0x1c7bc00, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5803
#30 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1ac03a0, pdev=0x1c7bc00, siblings=..., index=10, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#31 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1ac03a0, pdev=0x1c7bc00, siblings=..., index=27, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#32 0x00007f6918ead595 in QWidgetPrivate::paintSiblingsRecursive (this=0x1ac03a0, pdev=0x1c7bc00, siblings=..., index=28, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5790
#33 0x00007f6918eac8fc in QWidgetPrivate::drawWidget (this=0x1ac03a0, pdev=0x1c7bc00, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x1a6b470) at kernel/qwidget.cpp:5647
#34 0x00007f69190783c0 in QWidgetBackingStore::sync (this=0x1a6b470) at painting/qbackingstore.cpp:1373
#35 0x00007f6918ea3360 in QWidgetPrivate::syncBackingStore (this=0x1ac03a0) at kernel/qwidget.cpp:1892
#36 0x00007f6918eb141c in QWidget::event (this=0x1ac02a0, event=0x7fff6f0d4240) at kernel/qwidget.cpp:8664
#37 0x00007f6919281b7b in QMainWindow::event (this=0x1ac02a0, event=0x7fff6f0d4240) at widgets/qmainwindow.cpp:1478
#38 0x00007f691a604c58 in KXmlGuiWindow::event (this=0x1ac02a0, ev=0x7fff6f0d4240) at /usr/src/debug/kdelibs-4.8.5/kdeui/xmlgui/kxmlguiwindow.cpp:126
#39 0x00007f6918e60ae4 in notify_helper (e=0x7fff6f0d4240, receiver=0x1ac02a0, this=0x18b3ba0) at kernel/qapplication.cpp:4551
#40 QApplicationPrivate::notify_helper (this=0x18b3ba0, receiver=0x1ac02a0, e=0x7fff6f0d4240) at kernel/qapplication.cpp:4523
#41 0x00007f6918e658b3 in QApplication::notify (this=0x7fff6f0d5950, receiver=0x1ac02a0, e=0x7fff6f0d4240) at kernel/qapplication.cpp:4412
#42 0x00007f691a5088e6 in KApplication::notify (this=0x7fff6f0d5950, receiver=0x1ac02a0, event=0x7fff6f0d4240) at /usr/src/debug/kdelibs-4.8.5/kdeui/kernel/kapplication.cpp:311
#43 0x00007f6919ce548c in QCoreApplication::notifyInternal (this=0x7fff6f0d5950, receiver=0x1ac02a0, event=0x7fff6f0d4240) at kernel/qcoreapplication.cpp:915
#44 0x00007f69190738a6 in sendEvent (event=0x7fff6f0d4240, receiver=0x1ac02a0) at ../../src/corelib/kernel/qcoreapplication.h:231
#45 sendUpdateRequest (updateImmediately=true, widget=0x1ac02a0) at painting/qbackingstore.cpp:534
#46 QWidgetBackingStore::markDirty (this=0x1a6b470, rect=<optimized out>, widget=<optimized out>, updateImmediately=true, invalidateBuffer=false) at painting/qbackingstore.cpp:722
#47 0x00007f6918ea2af8 in repaint (rect=..., this=0x1c36ed0) at kernel/qwidget.cpp:10466
#48 QWidget::repaint (this=0x1c36ed0, rect=...) at kernel/qwidget.cpp:10444
#49 0x00007f6918ea2bb3 in QWidget::repaint (this=<optimized out>) at kernel/qwidget.cpp:10416
#50 0x00007f6919227028 in QAbstractButtonPrivate::click (this=0x1c22120) at widgets/qabstractbutton.cpp:536
#51 0x00007f69192272bc in QAbstractButton::mouseReleaseEvent (this=0x1c36ed0, e=0x7fff6f0d4c70) at widgets/qabstractbutton.cpp:1123
#52 0x00007f69192e427a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#53 0x00007f6918eb0f4a in QWidget::event (this=0x1c36ed0, event=0x7fff6f0d4c70) at kernel/qwidget.cpp:8371
#54 0x00007f6918e60ae4 in notify_helper (e=0x7fff6f0d4c70, receiver=0x1c36ed0, this=0x18b3ba0) at kernel/qapplication.cpp:4551
#55 QApplicationPrivate::notify_helper (this=0x18b3ba0, receiver=0x1c36ed0, e=0x7fff6f0d4c70) at kernel/qapplication.cpp:4523
#56 0x00007f6918e66183 in QApplication::notify (this=<optimized out>, receiver=0x1c36ed0, e=0x7fff6f0d4c70) at kernel/qapplication.cpp:4094
#57 0x00007f691a5088e6 in KApplication::notify (this=0x7fff6f0d5950, receiver=0x1c36ed0, event=0x7fff6f0d4c70) at /usr/src/debug/kdelibs-4.8.5/kdeui/kernel/kapplication.cpp:311
#58 0x00007f6919ce548c in QCoreApplication::notifyInternal (this=0x7fff6f0d5950, receiver=0x1c36ed0, event=0x7fff6f0d4c70) at kernel/qcoreapplication.cpp:915
#59 0x00007f6918e61ab2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#60 QApplicationPrivate::sendMouseEvent (receiver=0x1c36ed0, event=0x7fff6f0d4c70, alienWidget=0x1c36ed0, nativeWidget=0x1c23740, buttonDown=0x1c36ed0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3162
#61 0x00007f6918edd2e5 in QETWidget::translateMouseEvent (this=0x1c23740, event=<optimized out>) at kernel/qapplication_x11.cpp:4523
#62 0x00007f6918edc1aa in QApplication::x11ProcessEvent (this=0x7fff6f0d5950, event=0x7fff6f0d5530) at kernel/qapplication_x11.cpp:3646
#63 0x00007f6918f03b2c in x11EventSourceDispatch (s=0x18b7630, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#64 0x00007f691333ef3d in g_main_dispatch (context=0x18b6a50) at gmain.c:2441
#65 g_main_context_dispatch (context=0x18b6a50) at gmain.c:3011
#66 0x00007f691333f738 in g_main_context_iterate (context=0x18b6a50, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3089
#67 0x00007f691333f90c in g_main_context_iteration (context=0x18b6a50, may_block=1) at gmain.c:3152
#68 0x00007f6919d141df in QEventDispatcherGlib::processEvents (this=0x188d520, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#69 0x00007f6918f0381e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#70 0x00007f6919ce4312 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#71 0x00007f6919ce4567 in QEventLoop::exec (this=0x7fff6f0d5900, flags=...) at kernel/qeventloop.cpp:204
#72 0x00007f6919ce9225 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#73 0x00000000004013e3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-partitionmanager-1.0.3/src/main.cpp:60

This bug may be a duplicate of or related to bug 281900, bug 287400.

Possible duplicates by query: bug 287400, bug 281900.

Reported using DrKonqi
Comment 1 Christoph Feck 2012-09-20 23:25:36 UTC
*** Bug 306481 has been marked as a duplicate of this bug. ***
Comment 2 Arthur Khisamiev 2012-12-30 21:30:18 UTC
same to me. KDE Partition Manager 1.0.60
To avoid segfault I placed some task(for exsample check some ext3 partititon) before resize/move operation.
Comment 3 Jekyll Wu 2013-12-14 04:01:27 UTC
*** Bug 328771 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2013-12-23 06:52:30 UTC
*** Bug 329145 has been marked as a duplicate of this bug. ***
Comment 5 Greg Martyn 2015-08-29 06:31:09 UTC
Still happening for me in Fedora 22 with KDE5.
Comment 6 Andrius Štikonas 2015-09-16 15:23:12 UTC
I still can't reproduce it. Can you write what steps are required to reproduce it. I just tried to move ext4 partition earlier in the disk and it worked.
Comment 7 Andrius Štikonas 2016-11-07 21:47:05 UTC
Git commit 4ed3ce626708b01dff652bda384ca9a5562a0212 by Andrius Štikonas.
Committed on 07/11/2016 at 17:45.
Pushed by stikonas into branch 'master'.

Check if fileSystem pointer is nullptr before trying to read used space

Hopefully it fixes this crash.