From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPAdU-0005Pm-Jg for qemu-devel@nongnu.org; Fri, 10 Jul 2009 03:35:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPAdP-0005PT-6P for qemu-devel@nongnu.org; Fri, 10 Jul 2009 03:35:12 -0400 Received: from [199.232.76.173] (port=58448 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPAdO-0005PQ-Tf for qemu-devel@nongnu.org; Fri, 10 Jul 2009 03:35:06 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2781) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPAdO-0000Rh-Gt for qemu-devel@nongnu.org; Fri, 10 Jul 2009 03:35:06 -0400 Received: from mow300.securemx.jp ([210.130.202.48] helo=mow.securemx.jp) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPAdL-00019Z-DK for qemu-devel@nongnu.org; Fri, 10 Jul 2009 03:35:03 -0400 Received: from [192.168.128.141] (xdsl-205-43.nblnetworks.fi [83.145.205.43]) by smtp.securemx.jp (mx-mbox301) id n6A7Yrlt015013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 10 Jul 2009 16:34:56 +0900 Message-ID: <4A56EF1B.8010803@acrodea.co.jp> Date: Fri, 10 Jul 2009 10:34:51 +0300 From: Timo Suoranta MIME-Version: 1.0 Subject: Re: [Qemu-devel] ARM multithreading status References: <3646AB84-79BE-4327-A732-57661E3C8919@acrodea.co.jp> <94a0d4530907091440i65d16776vc1b575f9c5a8d454@mail.gmail.com> In-Reply-To: <94a0d4530907091440i65d16776vc1b575f9c5a8d454@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu-devel Felipe Contreras wrote: >> My problem is that my threading test code manages to create and join one >> pthread, but the next pthread_create, while it starts a new thread, doesn't >> return, and in fact the whole linux system is unable to start any new >> processes until the test program ends. > > I don't know if this helps, but I had a problem when joining a thread > in arm linux user, and this patch fixed it: > http://git.savannah.gnu.org/cgit/qemu.git/commit/?id=c2764719914ff0c4d6c06adafea17629600f21ba I'm using qemu-system-arm - so I guess the patch would not help. I've simplified my test program - I could perhaps share a binary (or maybe even sources after some further cleanup) - in case someone could investigate this further. I've built it from the very same sources running 2.6.26-1 kernel on both x86 and qemu / arm. Running on x86 Lenny in VMWare works. Running on ARM (some real device) works. Running on ARM Lenny in QEMU hangs. Running on Android emulator works. The android emulator is based on Qemu, but it uses different kernel. I suspect there is something in the combination of QEMU and the kernel I'm using which makes multi threading go bad :/ -- timo