Re: [Qemu-devel] bug in ARM thumb usermode emulation

2006-09-29 Thread Rafael Espíndola
TLS and multithreaded applications are known to not work with usermode emulation. In the end, it was an uninitialized stack allocated variable in libc that was causing this problem (http://sources.redhat.com/ml/libc-alpha/2006-09/msg00063.html). Paul Thanks, Rafael ___

Re: [Qemu-devel] bug in ARM thumb usermode emulation

2006-09-19 Thread Rafael Espíndola
On 9/18/06, Paul Brook <[EMAIL PROTECTED]> wrote: TLS and multithreaded applications are known to not work with usermode emulation. It looks like this is a memory corruption problem and the assert that fails is just a coincidence! I started to remove code from python to find what triggers the a

Re: [Qemu-devel] bug in ARM thumb usermode emulation

2006-09-18 Thread Paul Brook
> What must be done for implementing TLS + multithread in qemu? Maybe I can > help. * Implement the TLS syscalls (futexes and the architecture specific bits). There's a patch for clone() here: https://nowt.dyndns.org/patch.qemu_nptl * Fix all the bits of qemu that aren't threadsafe (mainly the TB

Re: [Qemu-devel] bug in ARM thumb usermode emulation

2006-09-18 Thread Rafael Espíndola
TLS and multithreaded applications are known to not work with usermode emulation. We use python for compiling python modules inside scratchbox. So I need to fix this or find a workaround (undef Py_HAVE_NATIVE_TLS?). What must be done for implementing TLS + multithread in qemu? Maybe I can hel

Re: [Qemu-devel] bug in ARM thumb usermode emulation

2006-09-18 Thread Paul Brook
On Monday 18 September 2006 21:05, Rafael Espíndola wrote: > Running python 2.4 in qemu sometimes causes this assert > > Inconsistency detected by ld.so: rtld.c: 288: _dl_start_final: > Assertion `info->l.l_tls_modid == 0' failed! TLS and multithreaded applications are known to not work with userm

[Qemu-devel] bug in ARM thumb usermode emulation

2006-09-18 Thread Rafael Espíndola
Running python 2.4 in qemu sometimes causes this assert Inconsistency detected by ld.so: rtld.c: 288: _dl_start_final: Assertion `info->l.l_tls_modid == 0' failed! The same error is present in all versions tested (0.8.1, 0.8.2 and CVS). I have been able to create a "small" ARM chroot that conta