Bug 191964 - KDE apps hang when run as su root
Summary: KDE apps hang when run as su root
Status: RESOLVED DUPLICATE of bug 199209
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 22:37 UTC by Dmytro Taranovsky
Modified: 2009-07-07 20:36 UTC (History)
2 users (show)

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 Dmytro Taranovsky 2009-05-07 22:37:24 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc 4.4 I am using standard Fedora 11 KDE packages.
OS:                Linux
Installed from:    Fedora RPMs

After logging in to my desktop (either Gnome or KDE), and in a terminal running either 
(a) su -c kwrite
or (b) su (not 'su -', nor 'sudo bash', nor kdesu), then kwrite

kwrite hangs while executing "futex(0x9dcfeb4, FUTEX_WAIT_PRIVATE, 1, NULL" system call (as shown by strace, actual memory address varies).  Other KDE 4 applications fail in the same way.

The correct behavior is either 
(a) to launch successfully, or
(b) if we decide not to support su -c kwrite, then exit with an appropriate error message instead of hanging indefinitely

Note:
The problem appears to be caused by DBUS_SESSION_BUS_ADDRESS environment variable,
which is set to a value like unix:abstract=/tmp/dbus-P0Ey0fihr0,guid=dd6debc7e245cbe9ce93208e4a0216e0
Unsetting this variable allows kwrite to start successfully (this is probably why using "su -" or sudo works correctly).

I am using Fedora 11 Preview Release i686, but the same bug is also present on Fedora 9 and Fedora 10.  I have not tested other distributions.
Comment 1 Dario Andres 2009-05-07 23:45:05 UTC
What happens if you use "dbus-launch kwrite" instead of "kwrite" alone ?
Thanks
Comment 2 Dmytro Taranovsky 2009-05-08 00:19:14 UTC
(In reply to comment #1)
su -c "dbus-launch kwrite"
works correctly
Comment 3 Dario Andres 2009-07-07 20:36:31 UTC

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