Public bug reported:

Binary package hint: linux-image-2.6.24-19-xen

Error occurs on: 
Ubuntu 8.0.4.1 (Server installation CD with online updates)

After freshly installing Hardy and switching to the xen kernel (install 
ubuntu-xen-server) the wrong tls libraries are used. The following warning is 
displayed during boot:
***************************************************************
***************************************************************
** WARNING: Currently emulating unsupported memory accesses  **
**          in /lib/tls glibc libraries. The emulation is    **
**          slow. To ensure full performance you should      **
**          install a 'xen-friendly' (nosegneg) version of   **
**          the library, or disable tls support by executing **
**          the following as root:                           **
**          mv /lib/tls /lib/tls.disabled                    **
** Offending process: init (pid=2710)                        **
***************************************************************
***************************************************************

ldd /bin/bash also show that the cmov variant of the libc is used, not
the nosegneg.

Moving  /lib/tls to /lib/tls.disabled fixes the warning, but this is prone to 
break again by installing updates.
The correct solution would be to use the nosegneg version of libc.
libc6-xen is installed and the neccessary libraries are in 
/lib/tls/i686/nosegneg but are not used, since /etc/ld.so.conf.d/xen.conf is 
missing.
Creating the missing file with the content "hwcap 1 nosegneg" and running 
ldconfig doesn't help. (Note: On Ubunto 7.10 the file had to read "hwcap 0 
nosegneg" The flag has been changed to 1. This is documented in the kernel 
sources: linux-2.6.24/arch/x86/kernel/vsyscall-note_32-S. Nevertheless I also 
tested "0" with the Hardy kernel to no avail).

Installing linux-image-2.6.22-15-xen from Ubuntu 7.10 and setting "hwcap 0 
nosegneg" fixes the problem.
ldd /bin/bash prove that the nosegneg libraries are now prefered.
Therfore I assume the linker itself is ok and the hwcap flag must be missing in 
the kernel. Unfortunatelly I'm unable to find an way to display the hwcap flags 
from the running kernel.

# uname -a
Linux Xen 2.6.24-19-xen #1 SMP Sat Jul 12 03:55:08 UTC 2008 i686 GNU/Linux

# cat /proc/version_signature
Ubuntu 2.6.24-4.6-generic

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Xen - nosegneg broken on hardy
https://bugs.launchpad.net/bugs/260825
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to