Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 99436
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 104657
Assigned To: Gentoo X packagers <x11@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tyler Montbriand <tsm@accesscomm.ca>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 99436 depends on: Show dependency tree
Bug 99436 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-18 08:34 0000
Using KDM login manager, /etc/init.d/xdm stop gives this message:
 * Stopping KDM ...
 * Error stopping KDM.

Subsequent attempts at /etc/init.d/xdm stop give this detailed and useful
error message:
 * Stopping  ...
 * Error stopping .

Nothing else appears in any logs, and I've been unable to figure out just
what it's puking on or why.  If anyone can tell me how to induce it to produce
more useful messages I will do so.

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/xdm stop


Actual Results:  
The xdm init script failed to stop the X service.

Expected Results:  
It should have stopped the X service.

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.3.3,
glibc-2.3.4.20041102-r0, 2.6.11ac1 x86_64)
=================================================================
System uname: 2.6.11ac1 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.6.11
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -m64 -mmmx -momit-leaf-frame-pointer -fomit-frame-pointer -pipe
-ffast-math -fmerge-all-constants"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -m64 -mmmx -momit-leaf-frame-pointer -fomit-frame-pointer -pipe
-ffast-math -fmerge-all-constants"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo
ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/var/backup"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa arts avi berkdb bitmap-fonts cdr crypt cups curl dga dvd
encode esd fam flac foomaticdb fortran gdbm ggi gif gnome gpm gstreamer gtk gtk2
guile imagemagick imlib innodb ipv6 java jpeg kde libwww lzw lzw-tiff mad mikmod
motif mozilla mp3 mpeg mysql ncurses nls nptl ogg opengl pam pdflib perl png
ppds python qt quicktime readline scanner sdl slang speex spell ssl tcltk tcpd
tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From Stian Skjelstad 2005-07-18 08:38:06 0000 -------
fast check:

does kdm/xdm/gdm run (check with `ps ax`)

If not, zap it:

/etc/init.d/xdm zap


and start it again. (and yes, a lot of init scripts fails to detect some types
of errors during service start and needs to be fixed)

------- Comment #2 From Carsten Lohrke 2005-07-18 08:43:22 0000 -------
> and yes, a lot of init scripts fails to detect some types
of errors during service start and needs to be fixed

Please file bug reports, nothing else helps! :)

------- Comment #3 From Donnie Berkholz 2005-07-18 11:50:48 0000 -------
I'm unable to reproduce this with gdm or kdm.

------- Comment #4 From Stian Skjelstad 2005-07-18 12:02:43 0000 -------
Tyler?

Does it still happen for you?

------- Comment #5 From Tyler Montbriand 2005-07-18 14:53:42 0000 -------
Yes, it still happens, and yes, kdm is still running.  I don't need ps to
diagnose this when I can still ctrl-alt-f7 and login via the window manager.

------- Comment #6 From Joshua Baergen (RETIRED) 2005-07-18 18:48:46 0000 -------
When did this start?

Quick check:
1) Make sure etc-update has been done.
2) Run emerge -uavDN world
3) Run revdep-rebuild from the 'gentoolkit' package.

------- Comment #7 From Tyler Montbriand 2005-07-18 23:24:32 0000 -------
> When did this start?
I can't tell you.  I very seldom need to shut down XDM.

> 1) Make sure etc-update has been done.
Done.  No change.

> 2) Run emerge -uavDN world
I'm not going to rebuild my system world for a "quick check", especially when
I'd need to make heavy modifications to my portage.mask to deal with all the
annoying circularly-blocking packages the portage tree's aquired lately.  Even
if that solves it, I'd rather know WHY it was breaking.

> 3) Run revdep-rebuild from the 'gentoolkit' package.
See above.

------- Comment #8 From Joshua Baergen (RETIRED) 2005-07-19 20:23:39 0000 -------
> 2) Run emerge -uavDN world
I'm not going to rebuild my system world for a "quick check", especially when
I'd need to make heavy modifications to my portage.mask to deal with all the
annoying circularly-blocking packages the portage tree's aquired lately.  Even
if that solves it, I'd rather know WHY it was breaking.

> 3) Run revdep-rebuild from the 'gentoolkit' package.
See above.

2 is actually the proper updating method.  Rebuilding your system would be
`emerge -e world`.  That checks for updates and new USE flags for all packages,
world and deps.  Not doing that can break stuff.  This should only take a long
time if your deps are out of date.

3 does a further check to see if any depedency updates have broken other packages.

------- Comment #9 From Thorsten Kampe 2005-07-22 07:39:18 0000 -------
I can confirm that with kdm. I had a look at the init script and executed 
"start-stop-daemon --stop --exe --exe /usr/kde/3.4/bin/kdm" (which should be the 
main command in the "stop" function of the script) and that stopped kdm.

Then I removed the "--quiet" and the ">& > /dev/null" in the invocation of the 
"start-stop-daemon" in the script and still got no error message (although xdm 
didn't stop).

Maybe a bug in the rc-script? But why does "start-stop-daemon" doesn't show any 
error even if stopping kdm fails??

----------------------
baselayout 1.12.0_pre1-r1
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-
r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System version 
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US"
LINGUAS="de en en_GB pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="x86 kdeenablefinal pam readline samba usepackagedmakefiles linguas_de 
linguas_en linguas_en_GB linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY

------- Comment #10 From Derek Dolney 2005-09-01 08:47:17 0000 -------
/etc/init.d/xdm from the baselayout 1.12 series also fails to stop gdm. Running
`/etc/init.d/xdm stop` says "Stopping gdm... OK", but a ps shows that there are
still two gdm processes and a gdmgreeter running.

------- Comment #11 From Joshua Baergen (RETIRED) 2005-09-01 19:11:59 0000 -------
I still haven't seen this happen on any of the up-to-date systems I've worked
on.  In any case, X should provide the xdm script, not baselayout.  What X
version do you have installed?

------- Comment #12 From Derek Dolney 2005-09-02 09:53:59 0000 -------
Well, the xdm script might be OK, I don't know, but baselayout-1.11.13-r1
works.

I'm using xorg-x11-6.8.2-r2.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -Os -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.tds.net/gentoo http://cudlug.cudenver.edu/gentoo/
http://gentoo.netnitco.net http://gentoo.mirrors.easynews.com/linux/gentoo/
http://mirror.datapipe.net/gentoo http://gentoo.seren.com/gentoo
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acpi adns alsa apache2 atlas avi berkdb bitmap-fonts
browserplugin bzlib crypt curl dvd eds emboss fam fbcon fftw fortran gd gdbm
gif
gimpprint gnome gpm gstreamer gtk gtk2 guile imagemagick imap imlib java jpeg
libg++ libwww mad maildir mime mmx mmxext motif mozilla moznoirc moznomail mp3
mpeg ncurses nntp nptl nptlonly nsplugin ogg oggvorbis opengl pam pdflib perl
pic png python quicktime readline real rtc sdl shared spell sse ssl tcpd tetex
tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml2
xmms xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #13 From Donnie Berkholz 2005-09-05 17:34:13 0000 -------
I've actually seen similar on my system. Perhaps one of the baselayout guys
could clue us in why xdm fails to stop with newer baselayout versions.

------- Comment #14 From Donnie Berkholz 2005-09-05 17:41:33 0000 -------
Nevermind, saw the other bug.

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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug