From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0eId-0002Dy-2o for qemu-devel@nongnu.org; Tue, 19 Jun 2007 10:03:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0eIb-00029u-Dk for qemu-devel@nongnu.org; Tue, 19 Jun 2007 10:03:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0eIb-00029h-Ba for qemu-devel@nongnu.org; Tue, 19 Jun 2007 10:03:13 -0400 Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0eIa-0005nf-OU for qemu-devel@nongnu.org; Tue, 19 Jun 2007 10:03:12 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 0C389122F9 for ; Tue, 19 Jun 2007 16:03:09 +0200 (CEST) Message-ID: <4677E260.2080002@suse.de> Date: Tue, 19 Jun 2007 16:04:16 +0200 From: Alexander Graf MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-user mmap not thread-safe? References: <4655A880.2000801@suse.de> <200705241645.58693.paul@codesourcery.com> In-Reply-To: <200705241645.58693.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Paul Brook wrote: > On Thursday 24 May 2007, Alexander Graf wrote: > >> Hi, >> >> while playing around with TLS on i386 i came across this problem which >> occurs even when no TLS is used at all. If two threads just malloc() >> memory all the time I get a segmentation fault after a short time. Might >> this be a serious bug? >> > > qemu is not even vaguely threadsafe. > > Paul > > > Hi, I somehow narrowed the problem down to x86_64. As soon as I use qemu-i386 on i386 or ppc the memory mapping tables are OK. When using x86_64 as host they are broken. Could this be a generic 64-bit host problem? I doubt that this actually has to do too much with the threading itself, because it works fine on other platforms. Alex