[Bug 215701] unbootable system with 'Shared object "librt.so.1" not found, required by "sh"' message after clang 3.9.1 import
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 1 22:22:42 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215701
Bug ID: 215701
Summary: unbootable system with 'Shared object "librt.so.1" not
found, required by "sh"' message after clang 3.9.1
import
Product: Base System
Version: 11.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: op at hardenedbsd.org
CC: dim at FreeBSD.org
Flags: mfc-stable11?
I have a system, where the WITH_DYNAMICROOT= is specified in src.conf and the
/usr lives in a separated partition. This constellation triggers the following
error:
[1] Timecounter "TSC-low" frequency 1147369867 Hz quality 1000
[1] Trying to mount root from ufs:/dev/ada0s4a [rw]...
[2] uhub0: 13 ports with 13 removable, self powered
[2] uhub1: 2 ports with 2 removable, self powered
[2] Shared object "librt.so.1" not found, required by "sh"
[2] Enter root password, or ^D to go multi-user
[2] Password:
[3] ugen1.2: <vendor 0x8087 product 0x8000> at usbus1
[3] uhub2: <vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.04, addr 2> on
usbus1
[3] uhub2: 8 ports with 8 removable, self powered
[37]
[37] Jan 1 23:09:04 init: single-user login failed
[37] Password:
[42] Enter full pathname of shell or RETURN for /bin/sh: Shared object
"librt.so.1" not found, required by "sh"
[44] Shared object "librt.so.1" not found, required by "sh"
[44] Enter root password, or ^D to go multi-user
[44] Password:
[49] Enter full pathname of shell or RETURN for /bin/sh: Cannot read termcap
database;
[56] using dumb terminal settings.
[56] # dmesg
[64] Shared object "librt.so.1" not found, required by "dmesg"
[64] # ls /bin
[77] Shared object "librt.so.1" not found, required by "ls"
The base system utilities with WITH_DYNAMICROOT= setting depends on
/usr/lib/librt.so.1:
op at opn ~> ldd /bin/ls
/bin/ls:
libxo.so.0 => /lib/libxo.so.0 (0x47cb7677000)
libutil.so.9 => /lib/libutil.so.9 (0x47cb7892000)
libncursesw.so.8 => /lib/libncursesw.so.8 (0x47cb7aa6000)
libthr.so.3 => /lib/libthr.so.3 (0x47c75a79000)
librt.so.1 => /usr/lib/librt.so.1 (0x47c75ca1000)
libm.so.5 => /lib/libm.so.5 (0x47c75ea7000)
libc.so.7 => /lib/libc.so.7 (0x47c760d2000)
and in early boot stage, where other than the root filesystems are not mounted,
the /usr/lib/librt.so.1 isn't accessible.
As workaround I can enter to the rescue shell with specifying /rescue/sh in
fallback case, then mount manually the /usr directory, and then exit.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list