Michael
2007-May-09 11:31 UTC
[Pkg-xen-devel] Bug#423006: xen-hypervisor-3.0.3-1-i386-pae: /bin/sh : error while loading shared library libcrypt.so.1
Package: xen-hypervisor-3.0.3-1-i386-pae Version: 3.0.3-0-2 Severity: critical Justification: breaks the whole system I use Debian Sid and Xen 3.0.3-1, and recently after an apt-dist upgrade, i reboot my server and now when i restart the server, i receive these error : /bin/sh : error while loading shared library libcrypt.so.1 cannot open shared object file :no such file ... I reboot the server on non-xen kernel, if i search the file libcrypt.so.1 i found in these file in many directory : /lib/i686/nosegneg/libcrypt.so.1 /lib what's wrong ? -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.12.6-xen Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages xen-hypervisor-3.0.3-1-i386-pae depends on: ii xen-utils-3.0.3-1 3.0.3-0-2 XEN administrative tools xen-hypervisor-3.0.3-1-i386-pae recommends no packages. -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_CA:en_US:en_GB:en", LC_ALL = (unset), LANG = "en_CA" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory
Olivier Berger
2007-Jun-08 10:33 UTC
[Pkg-xen-devel] Bug#423006: More details digging into the xen initrd...
Le mercredi 09 mai 2007 ? 07:29 -0400, Michael a ?crit :> > I use Debian Sid and Xen 3.0.3-1, and recently after an apt-dist upgrade, i reboot my > server and now when i restart the server, i receive these error : /bin/sh : error while > loading shared library libcrypt.so.1 cannot open shared object file :no such file ... I > reboot the server on non-xen kernel, if i search the file libcrypt.so.1 i found in these > file in many directory : > > /lib/i686/nosegneg/libcrypt.so.1 > /lib > > what's wrong ? >I think the problem lies in the initrd used to boot the hypervisor (/boot/initrd.img-2.6.18-4-xen-686). I uncompressed it (using gunzip then cpio -i --make-directories), and found out the following : hortense:~/initrd.img-2.6.18-4-xen-686.out# ldd bin/sh linux-gate.so.1 => (0xffffe000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7f9a000) libm.so.6 => /lib/libm.so.6 (0xb7f73000) libc.so.6 => /lib/libc.so.6 (0xb7e30000) /lib/ld-linux.so.2 (0xb7fdb000) but : hortense:~/initrd.img-2.6.18-4-xen-686.out# ls -l lib total 1212 drwxr-xr-x 3 root root 4096 2007-06-08 12:23 i686 -rwxr-xr-x 1 root root 64572 2007-06-08 12:23 klibc-rOj3PRLKBA9FcF5ZuoqKQLmOWcA.so -rwxr-xr-x 1 root root 117460 2007-06-08 12:23 ld-linux.so.2 -rw-r--r-- 1 root root 10644 2007-06-08 12:23 libcfont.so.0 -rw-r--r-- 1 root root 73540 2007-06-08 12:23 libconsole.so.0 -rw-r--r-- 1 root root 18380 2007-06-08 12:23 libctutils.so.0 -rw-r--r-- 1 root root 65332 2007-06-08 12:23 libdevmapper.so.1.02 -rw-r--r-- 1 root root 271320 2007-06-08 12:23 libncurses.so.5 -rw-r--r-- 1 root root 26444 2007-06-08 12:23 libpopt.so.0 -rw-r--r-- 1 root root 196484 2007-06-08 12:23 libreadline.so.5 -rw-r--r-- 1 root root 79368 2007-06-08 12:23 libselinux.so.1 -rw-r--r-- 1 root root 219156 2007-06-08 12:23 libsepol.so.1 -rw-r--r-- 1 root root 9128 2007-06-08 12:23 libuuid.so.1 -rw-r--r-- 1 root root 23264 2007-06-08 12:23 libvolume_id.so.0 drwxr-xr-x 3 root root 4096 2007-06-08 12:23 modules drwxr-xr-x 2 root root 4096 2007-06-08 12:23 udev So there's no /lib/libcrypt.so.1 Actually, I find it in : hortense:~/initrd.img-2.6.18-4-xen-686.out# ls -l lib/i686/nosegneg/ total 1496 -rw-r--r-- 1 root root 21908 2007-06-08 12:23 libcrypt.so.1 -rw-r--r-- 1 root root 1327616 2007-06-08 12:23 libc.so.6 -rw-r--r-- 1 root root 9684 2007-06-08 12:23 libdl.so.2 -rw-r--r-- 1 root root 153424 2007-06-08 12:23 libm.so.6 Soo... I think there's something wrong with the initrd generation for the xen hypervisor :( I'm gonna try and symlink so that the libcrypt.so.1 gets available in lib and see if this solves the problem... however I'm not sure the nosegneg is right for starting the dom0... Hope this helps. Best regards, -- Olivier BERGER <olivier.berger at int-edu.eu> (ATTENTION : new address) Ing?nieur Recherche - Dept INF GET/INT at Evry (http://www.int-edu.eu/) OpenPGP-Id: 1024D/6B829EEC
Olivier Berger
2007-Jun-08 10:44 UTC
[Pkg-xen-devel] Bug#423006: Problem apparently reported already in initramfs-tools
FYI, the bug report #420754 seems to correspond to this problem, and proposes a workaround. I'm gonna try it and test if this solves the issue. Best regards, -- Olivier BERGER <olivier.berger at int-edu.eu> (ATTENTION : new address) Ing?nieur Recherche - Dept INF GET/INT at Evry (http://www.int-edu.eu/) OpenPGP-Id: 1024D/6B829EEC