qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problem with threads in Scratchbox with Qemu for ARM
@ 2007-02-02 13:39 Stephane Epardaud
  2007-02-02 14:33 ` Vincent Palatin
  0 siblings, 1 reply; 5+ messages in thread
From: Stephane Epardaud @ 2007-02-02 13:39 UTC (permalink / raw)
  To: qemu-devel

Hello,

I'm trying the Scratchbox/Maemo devkit for the Nokia770/N800 ARM device, and I'm 
having a problem running a multi-threaded program under application Qemu ARM 
emulation on my x86 linux box.
The application I'm trying to run is the Boehm GC, which seems to run fine on 
the N770 device, but fails to work on that scratchbox/qemu ARM emulation.
The application is available here:
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc7.0alpha7.tar.gz
In order to make it work on scratchbox/maemo you have to change the line 1729 of 
include/private/gcconfig.h from:
#       define LINUX_STACKBOTTOM
to:
#       define HEURISTIC2

For a real ARM the original file should work.

To reproduce the problem:
./configure
make
make gctest
./gctest

This deadlocks and strace hints that signals sent by pthreads are delivered to 
the wrong threads. We've discussed this already on the GC mailing list there:
http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/1556

Does anyone know of known problems under Qemu for ARM and pthreads ?
Or any way I could verify that it's really Qemu's fault ?
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-02 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-02 13:39 [Qemu-devel] Problem with threads in Scratchbox with Qemu for ARM Stephane Epardaud
2007-02-02 14:33 ` Vincent Palatin
2007-02-02 15:11   ` Stephane Epardaud
2007-02-02 15:53     ` Vincent Palatin
2007-02-02 16:01       ` Stephane Epardaud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).