From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdmVD-0002Aq-D3 for qemu-devel@nongnu.org; Mon, 04 Jul 2011 13:00:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdmVA-0007Lc-PB for qemu-devel@nongnu.org; Mon, 04 Jul 2011 13:00:06 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:36745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdmVA-0007Ka-F1 for qemu-devel@nongnu.org; Mon, 04 Jul 2011 13:00:04 -0400 Received: by pzk30 with SMTP id 30so1484507pzk.4 for ; Mon, 04 Jul 2011 10:00:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <44BCFF82-C7A3-4F3F-B1BC-F7FB54429528@cisco.com> From: Alexandre Raymond Date: Mon, 4 Jul 2011 12:59:41 -0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] qemu crashes on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Damjan Marion Cc: qemu-devel@nongnu.org Hi Damjan, On Fri, Jul 1, 2011 at 10:56 AM, Damjan Marion wr= ote: > > On Jul 1, 2011, at 11:17 AM, Damjan Marion (damarion) wrote: > >> >> Hi, >> >> I have an issue when I try to run qemu-system-arm on Mac OS X. >> Sometime between 1 and 15 secs after qemu is started it crashes >> as shown bellow. >> >> Same thing on linux host works fine. >> >> Is anybody else experiencing this? >> Any Hints? > > After bisection seems that this starts happening after following patch: > > commit 09716e45a05cc0c93bcf55bd0c0888dd678e490f > Author: Alexander Graf > Date: =C2=A0 Thu Jun 9 00:55:37 2011 +0200 > > =C2=A0 =C2=A0sigfd: use pthread_sigmask > > > diff --git a/compatfd.c b/compatfd.c > index bd377c4..41586ce 100644 > --- a/compatfd.c > +++ b/compatfd.c > @@ -29,7 +29,7 @@ static void *sigwait_compat(void *opaque) > =C2=A0 =C2=A0 sigset_t all; > > =C2=A0 =C2=A0 sigfillset(&all); > - =C2=A0 =C2=A0sigprocmask(SIG_BLOCK, &all, NULL); > + =C2=A0 =C2=A0pthread_sigmask(SIG_BLOCK, &all, NULL); > > =C2=A0 =C2=A0 while (1) { > > > However before this patch qemu doesn't respond to keyboard (i.e. commit 3= 1b7c261). > > Last full working commit is 630ecca. > > Thanks, > > Damjan > Can you try applying the following two patches and see if it solves your problem? http://patchwork.ozlabs.org/patch/100348/ http://patchwork.ozlabs.org/patch/100477/ Alexandre