When the system boots, mpd starts after alsasound, as would be expected, and resumes playing from saved state (if applicable). On shutdown, alsasound is shutdown first, causing mpd to segfault, and not save state. Reproducible: Always Steps to Reproduce: With mpd and alsasound started, shut down alsasound (/etc/init.d/alsasound stop) Actual Results: mpd, which should be dependent on alsasound running, is not stopped first. alsasound is stopped and causes mpd to crash Expected Results: mpd should be stopped first, before alsasound is stopped. Changing the dependency line in /etc/init.d/mpd from "use alsasound" to "need alsasound" rectifies the problem emerge --info: Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 FX-53 Processor Gentoo Base System version 1.6.13 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="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64" CHOST="x86_64-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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.recoil.net.nz/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://gentoo.recoil.net.nz/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 arts avi berkdb bitmap-fonts cd cdr crypt cups curl dvd dvdr eds encode esd fam flac foomaticdb fortran gif gimpprint gpm gstreamer gtk gtk2 imagemagick imlib jack java jpeg junit kde libwww lzw lzw-tiff mad mp3 mpeg mysql ncurses nls ogg openal opengl pam pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd tetex 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
*** This bug has been marked as a duplicate of 99969 ***