From: "Emilio G. Cota" <cota@braap.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Riku Voipio <riku.voipio@iki.fi>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
Alexander Graf <agraf@suse.de>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] linux-user crashes on clone(2) when run on ppc host
Date: Wed, 17 Jun 2015 17:36:25 -0400 [thread overview]
Message-ID: <20150617213625.GA16082@flamenco> (raw)
In-Reply-To: <CAFEAcA_y0d3T3368Ya9rnvKVTCsHvonnQguGAs=kaDdMS3Gh2w@mail.gmail.com>
On Wed, Jun 17, 2015 at 09:58:27 +0100, Peter Maydell wrote:
> On 17 June 2015 at 01:52, Emilio G. Cota <cota@braap.org> wrote:
> > I'm having trouble running a simple multithreaded program on a PowerPC host machine.
> >
> > The machine I'm using is a ppc VM--I think it's running under KVM (I'm using
> > OVH's RunAbove Power8 service):
> > admin@adsf:~/qemu$ uname -a
> > Linux adsf 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:27:09 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
> >
> > admin@adsf:~/qemu$ ppc64le-linux-user/qemu-ppc64le foo
>
> Multithreaded binaries don't work with linux-user; there are a bunch
> of known race conditions involving data structures we don't correctly
> lock or make per-thread.
>
> This is a long-standing issue; we're hoping we might get to fixing
> it some time this year.
I don't think this is a race because it also breaks when
run on a single core (with taskset -c 0).
What data structures are you referring to? Are they ppc-specific?
On x86 hosts linux-user works reliably with multithreaded apps.
I'd expect any races on common code to show up on x86 as well.
Thanks,
Emilio
next prev parent reply other threads:[~2015-06-17 21:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 0:52 [Qemu-devel] linux-user crashes on clone(2) when run on ppc host Emilio G. Cota
2015-06-17 8:58 ` Peter Maydell
2015-06-17 21:36 ` Emilio G. Cota [this message]
2015-06-18 7:42 ` Peter Maydell
2015-06-18 14:23 ` Emilio G. Cota
2015-06-18 14:55 ` Peter Maydell
2015-06-18 18:36 ` Emilio G. Cota
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=20150617213625.GA16082@flamenco \
--to=cota@braap.org \
--cc=agraf@suse.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=riku.voipio@iki.fi \
/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).