Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Jan 2017 22:22:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215701] unbootable system with 'Shared object "librt.so.1" not found, required by "sh"' message after clang 3.9.1 import
Message-ID:  <bug-215701-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215701

            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@FreeBSD.org
          Reporter: op@hardenedbsd.org
                CC: dim@FreeBSD.org
             Flags: mfc-stable11?

I have a system, where the WITH_DYNAMICROOT=3D is specified in src.conf and=
 the
/usr lives in a separated partition. This constellation triggers the follow=
ing
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]=20
[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=3D setting depends on
/usr/lib/librt.so.1:

op@opn ~> ldd /bin/ls=20
/bin/ls:
        libxo.so.0 =3D> /lib/libxo.so.0 (0x47cb7677000)
        libutil.so.9 =3D> /lib/libutil.so.9 (0x47cb7892000)
        libncursesw.so.8 =3D> /lib/libncursesw.so.8 (0x47cb7aa6000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x47c75a79000)
        librt.so.1 =3D> /usr/lib/librt.so.1 (0x47c75ca1000)
        libm.so.5 =3D> /lib/libm.so.5 (0x47c75ea7000)
        libc.so.7 =3D> /lib/libc.so.7 (0x47c760d2000)

and in early boot stage, where other than the root filesystems are not moun=
ted,
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215701-8>