Bug 380365

Summary: disk manager crash when asking for root
Product: [Applications] partitionmanager Reporter: mombelli.mauro
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mombelli.mauro 2017-05-30 18:27:50 UTC
Application: partitionmanager (3.0.1)

Qt Version: 5.8.0
Frameworks Version: 5.34.0
Operating System: Linux 4.12.0-rc3-mainline x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
i did a new partittion table and partition on a external sd card, then when click to apply the program told me he will need root password, i click to confirm and instead of having the dalog the app crashed.

-- 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 0x7f35f4518f40 (LWP 10545))]

Thread 4 (Thread 0x7f35affff700 (LWP 10948)):
[KCrash Handler]
#6  0x00007f35f3f4081a in FS::lvm2_pv::getPVs(QList<Device*> const&) () at /usr/lib/libkpmcore.so.4
#7  0x00007f35f3f62954 in DeviceScanner::scan() () at /usr/lib/libkpmcore.so.4
#8  0x00007f35f0673e9c in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f35ec432297 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007f35eff8625f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f35d91ba700 (LWP 10547)):
#0  0x00007f35eff7c2bd in poll () at /usr/lib/libc.so.6
#1  0x00007f35ea9519b6 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f35ea951acc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f35f08aff2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f35f08573aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f35f066f44a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f35ee38cc45 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f35f0673e9c in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f35ec432297 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f35eff8625f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f35e27fc700 (LWP 10546)):
#0  0x00007f35eff7c2bd in poll () at /usr/lib/libc.so.6
#1  0x00007f35ea6ea8e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007f35ea6ec679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f35e518e1d9 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f35f0673e9c in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f35ec432297 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f35eff8625f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f35f4518f40 (LWP 10545)):
#0  0x00007f35ec43839d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f35ea6eab57 in  () at /usr/lib/libxcb.so.1
#2  0x00007f35ea6ec39f in  () at /usr/lib/libxcb.so.1
#3  0x00007f35ea6ec4b2 in xcb_wait_for_reply () at /usr/lib/libxcb.so.1
#4  0x00007f35e51b01a5 in  () at /usr/lib/libQt5XcbQpa.so.5
#5  0x00007f35e51b02ec in  () at /usr/lib/libQt5XcbQpa.so.5
#6  0x00007f35f0dbaec5 in QCursor::pos(QScreen const*) () at /usr/lib/libQt5Gui.so.5
#7  0x00007f35f17b4c2f in QAbstractItemView::verticalScrollbarValueChanged(int) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007f35f17addaf in  () at /usr/lib/libQt5Widgets.so.5
#9  0x00007f35f0886693 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#10 0x00007f35f164731e in QAbstractSlider::valueChanged(int) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f35f164799b in QAbstractSlider::setValue(int) () at /usr/lib/libQt5Widgets.so.5
#12 0x000000000047f2f4 in  ()
#13 0x00007f35f0887332 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f35f15aab4b in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f35f1563d7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f35f156b494 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007f35f0858d38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#18 0x00007f35f085aefd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#19 0x00007f35f08afaf3 in  () at /usr/lib/libQt5Core.so.5
#20 0x00007f35ea9517b7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#21 0x00007f35ea951a20 in  () at /usr/lib/libglib-2.0.so.0
#22 0x00007f35ea951acc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#23 0x00007f35f08aff0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#24 0x00007f35f08573aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#25 0x00007f35f085f744 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#26 0x00000000004285f1 in main ()

Reported using DrKonqi
Comment 1 Andrius Štikonas 2017-05-30 18:35:02 UTC
Root password is asked before partitionmanager starts, not after clicking apply. Were you asked for root password when launching partitionmanager?

When I click Apply there is only a message box asking to confirm operations and after accepting it progress dialog is shown.
Comment 2 mombelli.mauro 2017-05-30 19:06:48 UTC
you are completly right, it ask for root at startup, when i click
apply i think i DONT have root and tell me if i want to run the
application just in user mode; if i say to continue as user, it crash,
if cancel, it quit.

2017-05-30 20:35 GMT+02:00 Andrius Štikonas <bugzilla_noreply@kde.org>:
> https://bugs.kde.org/show_bug.cgi?id=380365
>
> --- Comment #1 from Andrius Štikonas <andrius@stikonas.eu> ---
> Root password is asked before partitionmanager starts, not after clicking
> apply. Were you asked for root password when launching partitionmanager?
>
> When I click Apply there is only a message box asking to confirm operations and
> after accepting it progress dialog is shown.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Andrius Štikonas 2017-05-30 19:13:07 UTC
Yeah, it is not supposed to run as user. It is not implemented. Ideally we want to have polkit/kauth support where password is asked when doing privileged operations but nobody implemented that and it is a fairly big refactoring...
(Actually gparted also doesn't have polkit support yet).

I'll close this bug then. Use root mode for now.
Comment 4 mombelli.mauro 2017-05-30 19:35:14 UTC
I AM USING ROOT, he THINK im not root (password is correct, if wrong
it display error).

2017-05-30 21:13 GMT+02:00 Andrius Štikonas <bugzilla_noreply@kde.org>:
> https://bugs.kde.org/show_bug.cgi?id=380365
>
> Andrius Štikonas <andrius@stikonas.eu> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Summary|disk manaer crash when      |disk manager crash when
>                    |asking for root             |asking for root
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Andrius Štikonas 2017-05-30 19:47:47 UTC
Ok, I think this is a duplicate of bug #375394. The backtrace in this crash looks the same. That bug is fixed in kpmcore master version but not in currently released version. If you have any possibility to compile kpmcore git version then you can try.

*** This bug has been marked as a duplicate of bug 375394 ***
Comment 6 Andrius Štikonas 2017-05-30 19:49:43 UTC
(In reply to Andrius Štikonas from comment #5)
> Ok, I think this is a duplicate of bug #375394. The backtrace in this crash
> looks the same. That bug is fixed in kpmcore master version but not in
> currently released version. If you have any possibility to compile kpmcore
> git version then you can try.
> 
> *** This bug has been marked as a duplicate of bug 375394 ***

Also double check your kdesu configuration, maybe you distro did not set it up correctly. Depending on whether there is a separate root account with its own password or user password is used to gain admin privileges, kdesu needs to be told so (https://wiki.archlinux.org/index.php/sudo#kdesu).