#892601 kde-cli-tools: kdesu hangs after password input

Package:
kde-cli-tools
Source:
kde-cli-tools
Description:
tools to use KDE services from the command line
Submitter:
"ZakharenkoA.D."
Date:
2021-09-29 11:15:06 UTC
Severity:
normal
#892601#5
Date:
2018-03-11 10:12:45 UTC
From:
To:
Dear Maintainer,

I tried to launch partitionmanager, and after I entered the root passowrd, well - nothing happend,
the password input form stopped reacting on any buttons. After some research I found, that the source of the
problem was /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu - it displays passowrd input form, but after you input
the passowrd (be it correct or not) it just hangs and does nothing.
So:
What I expect:
--I enter "/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu" "-c KDE_FULL_SESSION=true XDG_RUNTIME_DIR=/run/user/1000 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus partitionmanager --dontsu".
Partitionmanager (or any other program) is launched with administrative privileges.
What I get:
kdesu hangs

#892601#10
Date:
2019-08-26 08:17:09 UTC
From:
To:
Dear Maintainer,

'kdesu' in buster is provided by 2 packages (maybe installed at the same time):
	1. kde-cli-tools: /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu
	2. kde-runtime: /usr/lib/kde4/libexec/kdesu-distrib/kdesu

Running any command with the first one (provided by kde-cli-tools),
leads to a hung password input form right after entering the root's
password and pressing OK; Then you may only terminate kdesu.
The other kdesu (provided by kde-runtime) has no problem.

#892601#15
Date:
2020-07-18 18:01:38 UTC
From:
To:
It is my experience that kdesu only hangs after input of a wrong password.
#892601#20
Date:
2020-08-23 19:00:50 UTC
From:
To:
jaap@jaap:~$ gdb krusader
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html> This is free software: you are free
to change and redistribute it. There is NO WARRANTY, to the extent
permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from krusader...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/krusader
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff00df700
(LWP 46014)] [New Thread 0x7fffed826700 (LWP 46015)]
[New Thread 0x7fffecd4e700 (LWP 46016)]
20:39:43.940-debug default unknown@0 # System icon theme: "breeze"
20:39:44.269-warning default unknown@0 # QWidget::insertAction: Attempt
to insert null action 20:39:44.271-warning default unknown@0 #
QWidget::insertAction: Attempt to insert null action [Detaching after
fork from child process 46024] org.kde.kdesu: Daemon not safe (not
sgid), not using it.

[Thread 0x7ffff00df700 (LWP 46014) exited]
[Thread 0x7fffed826700 (LWP 46015) exited]
[Thread 0x7fffecd4e700 (LWP 46016) exited]
[Inferior 1 (process 46010) exited normally]
(gdb) (gdb) thread apply all backtrace
Undefined command: "".  Try "help".
(gdb) thread apply all backtrace
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Temporary breakpoint 1 (main) pending.
Starting program: /usr/bin/krusader
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff00df700
(LWP 46102)] [New Thread 0x7fffed826700 (LWP 46103)]
[New Thread 0x7fffecd4e700 (LWP 46104)]
20:42:29.137-debug default unknown@0 # System icon theme: "breeze"
20:42:29.467-warning default unknown@0 # QWidget::insertAction: Attempt
to insert null action 20:42:29.468-warning default unknown@0 #
QWidget::insertAction: Attempt to insert null action [Detaching after
fork from child process 46106] org.kde.kdesu: Daemon not safe (not
sgid), not using it.

[Thread 0x7ffff00df700 (LWP 46102) exited]
[Thread 0x7fffed826700 (LWP 46103) exited]
[Thread 0x7fffecd4e700 (LWP 46104) exited]
[Inferior 1 (process 46101) exited normally]
(gdb) set logging file ~/gdblog.txt
(gdb) set logging on
Copying output to /home/jaap/gdblog.txt.
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Temporary breakpoint 2 (main) pending.
Starting program: /usr/bin/krusader
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff00df700
(LWP 46170)] [New Thread 0x7fffed826700 (LWP 46172)]
[New Thread 0x7fffecd4e700 (LWP 46173)]
20:44:15.631-debug default unknown@0 # System icon theme: "breeze"
20:44:15.960-warning default unknown@0 # QWidget::insertAction: Attempt
to insert null action 20:44:15.961-warning default unknown@0 #
QWidget::insertAction: Attempt to insert null action [Detaching after
fork from child process 46178] org.kde.kdesu: Daemon not safe (not
sgid), not using it.

[Thread 0x7ffff00df700 (LWP 46170) exited]
[Thread 0x7fffed826700 (LWP 46172) exited]
[Thread 0x7fffecd4e700 (LWP 46173) exited]
[Inferior 1 (process 46165) exited normally]
(gdb) quit
jaap@jaap:~$ cat ./gdblog.txt
Function "main" not defined.
Temporary breakpoint 2 (main) pending.
Starting program: /usr/bin/krusader
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff00df700
(LWP 46170)] [New Thread 0x7fffed826700 (LWP 46172)]
[New Thread 0x7fffecd4e700 (LWP 46173)]
[Detaching after fork from child process 46178]
[Thread 0x7ffff00df700 (LWP 46170) exited]
[Thread 0x7fffed826700 (LWP 46172) exited]
[Thread 0x7fffecd4e700 (LWP 46173) exited]
[Inferior 1 (process 46165) exited normally]
jaap@jaap:~$

#892601#25
Date:
2021-09-29 11:04:46 UTC
From:
To:
This issue has been resolved in Debian 11 - Bullseye