From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro) Date: Sun, 07 Oct 2018 22:06:37 +0200 Message-ID: <87a7npiks2.fsf@fastmail.com> References: <4990ca3b-560e-6049-4f54-d597bf8a2dc4@yahoo.de> <87ftz8pxde.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9FKT-0006lF-VT for bug-guix@gnu.org; Sun, 07 Oct 2018 16:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9FKQ-0004cc-Nj for bug-guix@gnu.org; Sun, 07 Oct 2018 16:07:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9FKQ-0004av-Br for bug-guix@gnu.org; Sun, 07 Oct 2018 16:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g9FKQ-0000Fd-2j for bug-guix@gnu.org; Sun, 07 Oct 2018 16:07:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Tim Gesthuizen , 32458@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello! Sorry for dropping the ball on this. Tim Gesthuizen writes: > Hi, > I tried to find some free time to investigate a little bit further in > what exactly triggers the crash to happen. > A few days ago I had the idea of getting a GL context through GLUT and > don't use SDL at all. So I quickly investigated whether this would also > crash. > So I fetched the cube example (cube.c) from the OpenGL example archive: > > https://www.opengl.org/archives/resources/code/samples/glut_examples/exam= ples/examples.html > > and compiled it through guix. You can find the exact procedure by > inspecting the log attached. If I did not make an error this should > proof that the problem lies in OpenGL and not in SDL. > > Tim. > tibbe@tibbe-pc:~/src/glut-example$ guix environment --ad-hoc freeglut > tibbe@tibbe-pc:~/src/glut-example$ echo $GUIX_ENVIRONMENT > /gnu/store/gsfq0h6hpjz9ddvgn4g3gkl5r6gg3ink-profile > tibbe@tibbe-pc:~/src/glut-example$ ls $GUIX_ENVIRONMENT > etc include lib manifest share > tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l= glut -l GL -I $GUIX_ENVIRONMENT/include > /tmp/ccXMXGNS.o: In function `init': > cube.c:(.text+0x321): undefined reference to `gluPerspective' > cube.c:(.text+0x372): undefined reference to `gluLookAt' > collect2: error: ld returned 1 exit status > tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l= glut -l glu -l GL -I $GUIX_ENVIRONMENT/include > ld: cannot find -lglu > collect2: error: ld returned 1 exit status > tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l= glut -l GLU -l GL -I $GUIX_ENVIRONMENT/include > tibbe@tibbe-pc:~/src/glut-example$ ls > a.out cube.c > tibbe@tibbe-pc:~/src/glut-example$ ./a.out=20 > Segmentation fault Nice catch! Earlier in the bisect, you found 5318b103ff277efbac248a066d162589a9083baa (gnu: libepoxy: Update to 1.5.1.). Can you try this patch and see if it makes a difference? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-libepoxy-Downgrade-to-1.5.0.patch Content-Transfer-Encoding: quoted-printable From=202fa87c8c06b0a20e1f6c5c4e9edcc6a6fdd0c3d1 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 7 Oct 2018 22:04:27 +0200 Subject: [PATCH] gnu: libepoxy: Downgrade to 1.5.0. This reverts commit 5318b103ff277efbac248a066d162589a9083baa. =2D-- gnu/packages/gl.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index b88fab492..d512f10f7 100644 =2D-- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -550,7 +550,7 @@ OpenGL graphics API.") (define-public libepoxy (package (name "libepoxy") =2D (version "1.5.2") + (version "1.5.0") (source (origin (method url-fetch) (uri (string-append @@ -558,7 +558,7 @@ OpenGL graphics API.") version "/libepoxy-" version ".tar.xz")) (sha256 (base32 =2D "1n57xj5i6giw4mp5s59w1m9bm33sd6gjg7r00dzzvcwya6326mm9"))= )) + "1md58amxyp34yjnw4xa185hw5jm0hnb2xnhdc28zdsx6k19rk52c")))) (arguments `(#:phases (modify-phases %standard-phases =2D-=20 2.19.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlu6Z00ACgkQoqBt8qM6 VPqYWAgAxLYOzq1sxz6PEEH9623XcC0CxPBo0jJKKBpvuoeaxVLvjfnCW7b2hVRN uswNQ4iFEpFQjgSVYNGLXKzTCR+/7jXd/sjFSzxmFbE3B74TEQdusNcugUPilgdP /d0tPhgePcc5/eYq5BuOHZIe9UWNk9z8OSZXp5ZwG+igzNTEk7JnA+/XG4TNGS/4 lgL4LUoNoKt1tYk2ayEkaIQbb2gvZEywh6ojWOrcWdF7BI90gFmwwWMDUJapnSXR CIc+fGJ/63UmWmb4q1U264aumD9unQsQ895+oHKrMajcGLgyRNOqANqhbtOo/U5o 2OCmpagSFisWFQR9q3mnNhArKz7G0Q== =DT/r -----END PGP SIGNATURE----- --==-=-=--