qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stephane Epardaud <Stephane.Epardaud@inria.fr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Problem with threads in Scratchbox with Qemu for ARM
Date: Fri, 02 Feb 2007 14:39:16 +0100	[thread overview]
Message-ID: <45C33F04.3050205@inria.fr> (raw)

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.

             reply	other threads:[~2007-02-02 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-02 13:39 Stephane Epardaud [this message]
2007-02-02 14:33 ` [Qemu-devel] Problem with threads in Scratchbox with Qemu for ARM Vincent Palatin
2007-02-02 15:11   ` Stephane Epardaud
2007-02-02 15:53     ` Vincent Palatin
2007-02-02 16:01       ` Stephane Epardaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45C33F04.3050205@inria.fr \
    --to=stephane.epardaud@inria.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).