From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8pAv-0004a5-1g for qemu-devel@nongnu.org; Sun, 10 Apr 2011 03:35:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8pAs-0005UW-Lf for qemu-devel@nongnu.org; Sun, 10 Apr 2011 03:35:11 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:40839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8pAs-0005Sx-5S for qemu-devel@nongnu.org; Sun, 10 Apr 2011 03:35:10 -0400 Message-ID: <4DA15D9F.3070401@web.de> Date: Sun, 10 Apr 2011 09:34:55 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <20110408100032.GA5104@edde.se.axis.com> <1302383601-9955-1-git-send-email-michael@walle.cc> In-Reply-To: <1302383601-9955-1-git-send-email-michael@walle.cc> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig441B9AC8C36DD6706E914C00" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH] configure: disable opengl per default List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Walle Cc: blauwirbel@gmail.com, "Edgar E. Iglesias" , Benjamin Poirier , qemu-devel@nongnu.org, Alexander Graf This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig441B9AC8C36DD6706E914C00 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 2011-04-09 23:13, Michael Walle wrote: > There is a bug in nvidia's binary GPU driver, which causes a segmentati= on > fault if linked to libGL. >=20 > Signed-off-by: Michael Walle > --- > configure | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) >=20 > diff --git a/configure b/configure > index 2bb3faa..be40a31 100755 > --- a/configure > +++ b/configure > @@ -177,6 +177,7 @@ spice=3D"" > rbd=3D"" > smartcard=3D"" > smartcard_nss=3D"" > +opengl=3D"no" > =20 > # parse CC options first > for opt do I stumbled over this issue as well, but was unhappy about simply disabling OpenGL without understanding what goes wrong. Still, I can't provide a better solution yet, just some maybe helpful insights: =2E.. 00908000-0134f000 rw-p 00000000 00:00 0 [heap] 41944000-43944000 rwxp 00000000 00:00 0 =2E.. That's an extract of /proc/$QEMU_PID/maps with -lGL, and below without it= : 00908000-010bd000 rw-p 00000000 00:00 0 010bd000-010be000 rwxp 00000000 00:00 0 010be000-01335000 rw-p 00000000 00:00 0 [heap] 40514000-42514000 rwxp 00000000 00:00 0 IOW, we are lacking the executable code_gen_prologue page. This problem behaves like a heisenbug, ie. it disappears here when I run qemu in gdb or under strace. But ftrace confirms that the qemu process issues mprotect to make the whole heap non-executable after setting up that TCG buffer - it just doesn't tell me which part of qemu is responsible for th= is. Note that I'm still forced to use this wonderful binary nvidia stuff. Anyone any ideas? Jan --------------enig441B9AC8C36DD6706E914C00 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk2hXaUACgkQitSsb3rl5xT2rQCg10dgcJQyaiWnjb/6cnZ6+j4F YnkAoNmDcKXSz5iD2UKp7jV0wPV7THe4 =pXF+ -----END PGP SIGNATURE----- --------------enig441B9AC8C36DD6706E914C00--