For me it worked to build the guest system from scratch as long as glibc was built with "--without-tls". I don't think you need to rebuild the host.

I've built a root_fs for i686, based on gentoo, with tls disabled. Works for me. If you're interested it's at

  http://gathering.itm.mh.se/~joepal/uml/root_fs-i686minimal.bz2

For use flags and etc, see

  http://gathering.itm.mh.se/~joepal/uml/make.conf.i686minimal

(The trick here was to set host as i386, while in gcc flags explicitly setting arch to i686. That way you get an i686-optimized system, but without TLS)

  // Joel

On Wed, 2 Nov 2005, Tassilo Horn wrote:

Hi,

when I want to start uml I get:

NET: Registered protocol family 1
Initialized stdio console driver
Console initialized on /dev/tty0
ubda: unknown partition table
VFS: Mounted root (ext2 filesystem) readonly.
cannot set up thread-local storage: set_thread_area failed when setting
up thread-local storage

Kernel panic - not syncing: Attempted to kill init!

EIP: 0073:[<400109df>] CPU: 0 Not tainted ESP: 007b:bf59ca40 EFLAGS:
00200246
   Not tainted
EAX: ffffffda EBX: 0000007f ECX: bf59c820 EDX: 00000003
ESI: 400129a0 EDI: 40012960 EBP: bf59cc18 DS: 007b ES: 007b
a08a3b40:  [<a0030e1b>] printk+0x1b/0x20
a08a3b50:  [<a004294d>] notifier_call_chain+0x2d/0x50
a08a3b60:  [<a010d664>] bust_spinlocks+0x44/0x50
a08a3b70:  [<a0030275>] panic+0x75/0x130
a08a3ba0:  [<a00332fb>] do_exit+0x2cb/0x340
a08a3bc0:  [<a007695c>] vfs_writev+0x4c/0x70
a08a3be0:  [<a0033426>] do_group_exit+0x76/0xc0
a08a3c10:  [<a001b834>] execute_syscall_skas+0xf4/0x180
a08a3c34:  [<a0033470>] sys_exit_group+0x0/0x20
a08a3c70:  [<a001b8de>] handle_syscall+0x1e/0x40
a08a3c80:  [<a001b148>] userspace+0x238/0x360
a08a3ce8:  [<a000d1b0>] init+0x0/0x110
a08a3cf0:  [<a001b3c8>] new_thread_handler+0xb8/0xd0

When I searched the mailing list archives I found a tip about
moving /lib/tls, but I don't have such a directory: Neither on my host
nor on my root_fs.

I think the problem is that I've built glibc with NTPL support and
without linux threads. So do I have to rebuild it with linux threads to
get it work? Only on the uml guests root_fs or do I have to rebuild my
hosts glibc, too?

Much thanks in advance,
Tassilo



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to