Subject: bin/3677: /etc/rc recreates ld.so.hints too late
To: None <gnats-bugs@gnats.netbsd.org>
From: Paul Goyette <paul@whooppee.com>
List: netbsd-bugs
Date: 05/28/1997 06:30:09
>Number: 3677
>Category: bin
>Synopsis: /etc/rc recreates ld.so.hints too late
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 28 06:35:01 1997
>Last-Modified:
>Originator: Paul Goyette
>Organization:
>Release: 24 May 1997
>Environment:
System: NetBSD mac1.whooppee.com 1.2E NetBSD 1.2E (PGOYETTE) #60: Sun May 25 14:15:18 PDT 1997 paul@mac1.whooppee.com:/home/paul/src/sys/arch/mac68k/compile/PGOYETTE (current as of Sat May 24 04:53:29 1997) mac68k
>Description:
/etc/rc cleans out /var/run and then proceeds to execute various
utilities that are linked with dynamic libraries. Since /var/run/ld.so.hints
has been deleted, rtld fails and thus several utilities do not get
started.
>How-To-Repeat:
Just do a normal single-user boot, and then type `exit' and watch
the console messages.
>Fix:
--- /etc/rc Wed May 28 06:19:45 1997
+++ src/etc/rc Sun May 11 04:08:04 1997
@@ -92,16 +92,7 @@
rm -f /etc/nologin
rm -f /var/spool/lock/LCK.*
rm -f /var/spool/uucp/STST/*
-(cd /var/run && rm -rf -- *)
-
-# create the run-time library cache
-
-if [ -f /sbin/ldconfig ]
-then
- /sbin/ldconfig
-fi
-
-(cd /var/run && install -c -m 664 -g utmp /dev/null utmp; )
+(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
# start the system logger first, so that all messages
# from daemons are logged, and the name server next.
>Audit-Trail:
>Unformatted:
<[ yes | no ] (one line)>
<synopsis of the problem (one line)>
<[ non-critical | serious | critical ] (one line)>
<[ low | medium | high ] (one line)>
<name of the product (one line)>
<[ sw-bug | doc-bug | change-request | support ] (one line)>
<NetBSD-current source date>