Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218572 - x11-apps/xdm-1.1.7: start-stop-daemon: 1 process refused to stop
Summary: x11-apps/xdm-1.1.7: start-stop-daemon: 1 process refused to stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-20 13:24 UTC by Martin Mokrejš
Modified: 2008-07-08 06:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2008-04-20 13:24:04 UTC
With recent move to baselayout-2.0.0 on ~x86 my laptop does not power off. It might be that is because a process is still running. In the console log I see:

hostname /etc/init.d/xdm[6996]: start-stop-daemon: 1 process refused to stop
hostname /etc/init.d/xdm[6984]: ERROR: xdm failed to stop


emerge --info
Portage 2.1.5_rc5 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24.3 i686)
=================================================================
System uname: 2.6.24.3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Timestamp of tree: Sun, 20 Apr 2008 11:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS=""
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas boost bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jikes jpeg jpeg2k kdtree kerberos lame lapack lcms leim libcaca libedit libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp oss pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline real recode reflection reiserfs rpm rtc samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinetd xml xorg xpm xprint xsl xslt xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1       emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2008-04-20 22:08:12 UTC
Dear Martin, please reopen and tell us whether you use KDM. If you do, it's a dupe of bug 204326.
Comment 2 Martin Mokrejš 2008-04-21 08:27:29 UTC
I do not use kdm, I use fvwm2. When do '/etc/init.d/xdm stop; sync; init 0; exit' the machine powers off fine. I suspect that has to do something with opened STDOUT/STDERR. See bug #218570.
Comment 3 Martin Mokrejš 2008-04-23 12:34:29 UTC
I did a bit more research into this and there are too many bugs arising.

I happened to reproduce this by setting /etc/env.d/90xsession to XSESSION="fvwm2" and removing ~/.xinitrc and ~/.xsession where I used to have "fvwm2".

Surprise, I got twm window manager started up instead of fvwm2. Inspecting ~/.xsession-errors I saw something is looking for 'smproxy' and could not find it. Please push into correct dependencies this package (filed as bug #219014).

Installing smproxy package did not help either, but after login through xdm I got gray/raster X screen and console (like if I would start xinit or startx or X). What seems suspicious that no errors are in /var/log/Xorg.log nor ~/.xsession-errors. I can only get fvwm2 started if I place it in ~/.xsession . It is not read from ~/.xinitrc and not from /etc/env.d/90xsession either. At this moment, the '/etc/init.d/xdm stop' complains again that 'start-stop-daemon: 1 process refused to stop'. I see running processes:

mmokrejs  3186     1  0 13:51 ?        00:00:00 twm
root      5372     1  0 14:03 ?        00:00:00 -:0         
root      5439  5372  0 14:03 ?        00:00:00 [TakeConsole] <defunct>

After killing all the three I could make '/etc/init.d/xdm stop' exit with ok message and start is subsequently again.


Please test /etc/env.d/90xsession behaviour with fvwm2 window manager first.

Comment 4 Martin Mokrejš 2008-04-23 12:41:34 UTC
I will recompile xdm with more debug info because I have also noticed in syslog:

xdm[6788]: segfault at 00000021 eip b7ca9b3c esp bfe0f2ec error 4
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2008-04-24 22:55:10 UTC
The env.d file (and XSESSION) are used for startx. If you're using xdm, you should pick your login session however xdm does such things (I don't use it).
Comment 6 Martin Mokrejš 2008-05-09 08:43:40 UTC
The problem with shutdown is gone with upgrade to some of these:

x11-wm/fvwm-2.5.25
x11-apps/xinit-1.0.8-r3
sys-apps/busybox-1.10.1-r2
app-shells/bash-3.2_p39
dev-libs/libevent-1.4.3

Per comment #5 (donnie), I think the OpenRC migration guide instructed my then in the wrong way to remove my .xinitrc and .xsession (comment #3). Or due to my bad english I misunderstood? Please check what is in there once again and maybe make it more clear for non-native speakers. ;-)
Comment 7 Martin Mokrejš 2008-05-26 08:34:10 UTC
Actually, the problem has appeared sometimes again but now I really think it is gone with upgrade to x11-wm/fvwm-2.5.26, sys-apps/openrc-0.2.4-r1, or less likely by x11-drivers/xf86-video-i810-2.3.1, sys-apps/busybox-1.10.1-r3.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-08 03:45:24 UTC
Closing since it works in newer versions.
Comment 9 Martin Mokrejš 2008-07-08 06:50:55 UTC
Yes, it is really gone.