Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354785 - sys-apps/baselayout-1.12.14 start-stop-daemon can't find running programs with deleted files
Summary: sys-apps/baselayout-1.12.14 start-stop-daemon can't find running programs wit...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 361727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-13 20:45 UTC by William Throwe
Modified: 2011-05-30 23:02 UTC (History)
2 users (show)

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 William Throwe 2011-02-13 20:45:23 UTC
# /etc/init.d/sshd reload
 * Reloading sshd ...
No /usr/sbin/sshd found running; none killed.                            [ ok ]
# /sbin/start-stop-daemon --stop --signal HUP --oknodo --exec /usr/sbin/sshd --pidfile /var/run/sshd.pid
No /usr/sbin/sshd found running; none killed.
# cat /var/run/sshd.pid
3639
# ps wp 3639
  PID TTY      STAT   TIME COMMAND
 3639 ?        Ss     0:06 /usr/sbin/sshd



Reproducible: Always




$ emerge --info baselayout openssh
Portage 2.1.9.25 (hardened/linux/x86, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-hardened-r6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-hardened-r6-i686-Intel-R-_Pentium-R-_4_CPU_1700MHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 13 Feb 2011 07:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 3.1.2-r4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/wthrowe"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl berkdb bindist bzip2 cli cracklib crypt cxx emacs gdbm hardened modules mudflap ncurses nptl nptlonly openmp pam pcre perl pic pppd python readline ssl sysfs tcpd urandom x86 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 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/baselayout-1.12.14-r1 was built with the following:
USE="-bootstrap -build -static -unicode"


net-misc/openssh-5.8_p1 was built with the following:
USE="hpn pam tcpd -X -X509 -kerberos -ldap -libedit (-selinux) -skey -static"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-15 15:12:33 UTC
misha ~ # eversion baselayout
sys-apps/baselayout-1.12.14-r1
misha ~ # /etc/init.d/sshd reload
 * Reloading sshd ...       [ ok ]
astrid ~ # eversion baselayout
sys-apps/baselayout-2.0.1-r1
astrid ~ # /etc/init.d/sshd reload
 * Reloading sshd ...       [ ok ]

Works for me. What if you use restart instead of reload?
Comment 2 William Throwe 2011-02-15 20:38:21 UTC
(In reply to comment #1)
> Works for me. What if you use restart instead of reload?
> 

Restart works.  And in fact, after restarting, reloading starts working again.

Experimenting, remerging openssh makes the problem come back.  In fact, from a state where reload works, running
# cp -a /usr/sbin/sshd{,.bak}
# mv /usr/sbin/sshd{.bak,}
causes reload to start failing again.
Comment 3 SpanKY gentoo-dev 2011-02-15 22:01:03 UTC
it's a known issue when upgrading files and using ssd from baselayout-1.  look at the /proc/<pid>/exe and notice how it says "deleted".  it's already been fixed in openrc and there arent any plans on fixing this for baselayout-1.
Comment 4 William Throwe 2011-02-15 22:15:10 UTC
Ok.  It has an easy workaround, so I can live with it.

If this command is known to not work, maybe the openssh ebuild shouldn't tell you to run it, though?
Comment 5 SpanKY gentoo-dev 2011-02-17 05:23:39 UTC
the issue isnt specific to openssh.  just about any init.d using ssd and being upgraded while it is running would hit the same issue.

i dont know exactly what code went in to fix it ... if it were simple, adding to baselayout-1 is fine, but i dont plan on researching it.
Comment 6 SpanKY gentoo-dev 2011-04-04 15:57:35 UTC
*** Bug 361727 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2011-05-30 23:02:38 UTC
openrc is stable and my understanding is that it doesnt have this problem