kdesu works fine most of the time. Sometimes, after restarting X, kdesu fails to work, it just hangs. Running strace shows that it hangs when connecting to the user's socket file in /tmp. Deleting that socket file restores functionality. Reproducible: Sometimes Steps to Reproduce: 1. Restart X 2. Run "kdesu <command>" 3. Repeat until step 2 fails. Actual Results: kdesu hangs. Expected Results: kdesu runs the command. Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.32-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.13 Timestamp of tree: Sun, 07 Feb 2010 08:15:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA skype-eula" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo " LANG="en_AU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi alsa bash-completion berkdb blas branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd dvdr emboss encode exif expat fam ffmpeg fftw flac fontconfig fortran gd gdbm gif gmp gnome gnutls gphoto2 gpm graphviz gsl gstreamer gtk hal iconv icu ieee1394 imagemagick imlib ipod ipv6 java java5 java6 javascript jpeg kde kqemu lame lapack laptop latex ldap libnotify libsamplerate lirc lzo mad matroska mikmod mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pch pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session sharedmem sndfile spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog taglib tcpd theora threads thunar tiff timidity truetype unicode usb vorbis wavpack wifi win32codecs wmf wxwindows x264 x86 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 219051 [details] strace of kdesu running konsole
Hasn't happened in 4.3.5 yet on either machine so fingers crossed...
Alas, it didn't just go away by itself after all. Does the socket 'go stale' or is kdesu forgetting to delete it after it has finished with it?
Does this still happen with kdesu-4.4.4?
(In reply to comment #4) > Does this still happen with kdesu-4.4.4? > By strace-ing kdesu on my machine, I have figured out a socket problem: removing /tmp/ksocket-mike/kdesud_:0 works for me. This is the output of kdesu -c /usr/bin/konsole on my machine getuid() = 1000 stat("/tmp/ksocket-mike", {st_mode=S_IFDIR|0700, st_size=384, ...}) = 0 lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=1280, ...}) = 0 lstat("/tmp/ksocket-mike", {st_mode=S_IFDIR|0700, st_size=384, ...}) = 0 lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=1280, ...}) = 0 lstat("/tmp/ksocket-mike", {st_mode=S_IFDIR|0700, st_size=384, ...}) = 0 stat("/tmp/ksocket-mike/", {st_mode=S_IFDIR|0700, st_size=384, ...}) = 0 access("/tmp/ksocket-mike/kdesud_:0", R_OK|W_OK) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 9 connect(9, {sa_family=AF_FILE, path="/tmp/ksocket-mike/kdesud_:0"}, 29) = ? ERESTARTSYS (To be restarted)
This still happens to me with kdesu-4.5.1.
someone report upstream plz
Do you have any better luck with kde-4.6.2 (in tree in a few days, stable candidate)?
I just installed 4.6.2, so now it's wait and see if it still happens.
Added upstream bug. Not a regression compared to 4.4, so not blocking stabilization. Jeremy, if the problem occurs again, upstream is asking for a gdb backtrace of the hanging process... this may take some fiddling...
I haven't noticed the bug since I installed 4.6.2, so I'm going to mark it closed.