Re: [PATCH] set_thread_area fails in IA32 chroot

2007-11-20 Thread Kyle McMartin
On Tue, Nov 20, 2007 at 02:12:46PM +1100, Ian Wienand wrote: > I think the solution is flushing the tls array on exec as below. > It is indeed. I had debugged this too but haven't had time to play with my ia64 boxes recently and clean it up and submit. Good catch. cheers, Kyle > Signed

[PATCH] set_thread_area fails in IA32 chroot

2007-11-19 Thread Ian Wienand
Hi, I tried to upgrade an IA32 chroot on my IA64 to a new glibc with TLS. It kept dying because set_thread_area was returning -ESRCH (bugs.debian.org/451939). I instrumented arch/ia64/ia32/sys_ia32.c:get_free_idx() and ended up seeing output like [pid] idx desc->a desc->b