From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5KzJ-0000Nm-6j for qemu-devel@nongnu.org; Wed, 17 Jun 2015 17:35:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5KzF-0001aQ-10 for qemu-devel@nongnu.org; Wed, 17 Jun 2015 17:35:13 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5KzE-0001aC-Tq for qemu-devel@nongnu.org; Wed, 17 Jun 2015 17:35:08 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 184A12098E for ; Wed, 17 Jun 2015 17:35:08 -0400 (EDT) Date: Wed, 17 Jun 2015 17:36:25 -0400 From: "Emilio G. Cota" Message-ID: <20150617213625.GA16082@flamenco> References: <20150617005222.GA18884@flamenco> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] linux-user crashes on clone(2) when run on ppc host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , "qemu-ppc@nongnu.org" , Alexander Graf , QEMU Developers On Wed, Jun 17, 2015 at 09:58:27 +0100, Peter Maydell wrote: > On 17 June 2015 at 01:52, Emilio G. Cota 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