Re: [Qemu-devel] qemu-arm user mode does not work with ARM EABI

2006-09-29 Thread Rafael Espíndola
- Voipio's "eabi-rootfs" which I gather uses EABI internally and glibc shims to convert the system calls to old-ABI just before they hit the kernel (glibc-2.3.4) I have a similar setup with a maemo 2.0 rootstrap (glibc 2.3.5). I am currently able to compile a functional python package. I am not

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] qemu & arm eabi (armel)

2006-09-26 Thread Rafael Espíndola
On 9/26/06, K. Richard Pixley <[EMAIL PROTECTED]> wrote: Does anyone have qemu running in user emulation with arm eabi, (armel), traps? I am hunting some strange asserts failures in ld.so, but it is mostly working. It is a maemo 2.0 rootstrap that I am using. Best Regards, 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 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

[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

[Qemu-devel] [PATCH] avoid creating a circular list of cpus

2006-09-15 Thread Rafael Espíndola
The attached patch avoids creating a circular list of cpus in do_fork. Currently, cpu_init returns a pointer to the last element of the list. This element is then overwritten by memcpy, including the cpu_index and next_cpu fields. The patch simply restores these fields to the correct values. The

[Qemu-devel] cpustate patch

2006-09-14 Thread Rafael Espíndola
While hunting a tls related bug in ARM emulation, I found that that qemu distributed with scratchbox includes the attached patch. Without the patch python's configure halts when checking for the -pthread option. The patch inverts the order of the list and makes the code simpler. I think that the