lkml.org 
[lkml]   [1998]   [Sep]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 18 Sep 1998 06:40:46 +0200 (CEST)
From"Michael L. Galbraith" <>
SubjectRe: IMPORTANT: SysVinit & umounting
On Thu, 17 Sep 1998, Roderich Schupp wrote:

> 
> 
> 
> 
> miquels@cistron.nl (Miquel van Smoorenburg) said:
> > If the rootfs cannot be unmounted (which is really remounted R/O)
> > cleanly at shutdown with newer kernels, you should investigate the
> > reason and fix the bug instead of guessing what is could be and
> > inventing a workaround.
> 
> What's happening is that init still has mmaped a deleted version
> of /etc/ld.so.cache (ldconfig deleted the old one when building
> a new one). This deleted file which still has some live reference
> prevents the RO remount of root.
> Using -static linking fixes this (and also the case when you
> just reinstalled your libc). Or you could still link dynamically, but with
> "-Wl,-rpath,/lib". When ld-linux.so looks for libc, it first
> checks the RPATH contained in the executable (if any). Failing that
> it will mmap /etc/ld.so.cache and use the information there.
> I'm using the latter and the dirty shutdowns have gone away :)
> 
> Cheers, Roderich

Hi,

Well, now I know why I don't have the problem at least.  Any idea why
I don't even _have_ a map for /etc/ld.so.cache?  This is sysvinit-2.74
compiled straight out of the box (no -rpath).

	-Mike

08048000-0804f000 r-xp 00000000 08:32 10244      /sbin/init
0804f000-08050000 rw-p 00006000 08:32 10244      /sbin/init
08050000-08054000 rwxp 00000000 00:00 0
40000000-40013000 r-xp 00000000 08:32 260205     /lib/ld-2.0.95.so
40013000-40014000 rw-p 00012000 08:32 260205     /lib/ld-2.0.95.so
40014000-400ff000 r-xp 00000000 08:32 260141     /lib/libc-2.0.95.so
400ff000-40104000 rw-p 000ea000 08:32 260141     /lib/libc-2.0.95.so
40104000-40108000 rw-p 00000000 00:00 0
bfffe000-c0000000 rwxp fffff000 00:00 0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2008