From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Gesthuizen Subject: bug#32458: SDL SEGFAULTs on foreign distro Date: Thu, 16 Aug 2018 19:25:35 +0200 Message-ID: <4990ca3b-560e-6049-4f54-d597bf8a2dc4@yahoo.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3BPQMfQuFGBjCASl5jwdSTGEjMlqsPpb9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqM39-0004oi-8G for bug-guix@gnu.org; Thu, 16 Aug 2018 13:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqM34-0004LN-Mp for bug-guix@gnu.org; Thu, 16 Aug 2018 13:27:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqM34-0004L0-BB for bug-guix@gnu.org; Thu, 16 Aug 2018 13:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fqM34-0006ma-2e for bug-guix@gnu.org; Thu, 16 Aug 2018 13:27:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqM28-00041C-PF for bug-guix@gnu.org; Thu, 16 Aug 2018 13:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqM22-0003R6-G2 for bug-guix@gnu.org; Thu, 16 Aug 2018 13:26:02 -0400 Received: from sonic311-31.consmr.mail.ir2.yahoo.com ([77.238.176.163]:40822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqM1w-0003QD-Fa for bug-guix@gnu.org; Thu, 16 Aug 2018 13:25:54 -0400 Received: from p5B221788.dip0.t-ipconnect.de (EHLO [192.168.178.27]) ([91.34.23.136]) by smtp405.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1381f295599dbb5f5275db585d7b865a for ; Thu, 16 Aug 2018 17:25:49 +0000 (UTC) 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: 32458@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3BPQMfQuFGBjCASl5jwdSTGEjMlqsPpb9 Content-Type: multipart/mixed; boundary="i9dSG585vPaEPHBUJmKskZ1aNeY2DPF9I"; protected-headers="v1" From: Tim Gesthuizen To: bug-guix@gnu.org Message-ID: <4990ca3b-560e-6049-4f54-d597bf8a2dc4@yahoo.de> Subject: SDL SEGFAULTs on foreign distro --i9dSG585vPaEPHBUJmKskZ1aNeY2DPF9I Content-Type: multipart/mixed; boundary="------------54E289EDDE76B344048F7CC1" Content-Language: en-US This is a multi-part message in MIME format. --------------54E289EDDE76B344048F7CC1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, since a few days now SDL2 and SDL-1.2 are broken for me through Guix. Running any kind of application that uses SDLs rendering mechanisms crashes immediately while initializing window and renderer. I tried tracking down the bug using GDB and found out that the bug occurs while compiling/loading the shader code in my local graphics drive= r. An invocation of memcpy causes a SEGFAULT during this operation. I am running Guix on top of Debian Stretch with the radeon graphics drive= r. I suspect binary incompatibility between Guix and Debians compiler to be the cause of this problem but I cannot verify anything. You find a log of my gdb session which includes some stacktraces from where the program crashed. If you need more information about my setup or technical details feel free to ask. I also want to note that SDL-1.2 definitely worked for me a few weeks ago through Guix. Sincerely, Tim Gesthuizen --------------54E289EDDE76B344048F7CC1 Content-Type: text/x-log; name="gdb.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gdb.log" ~/src/guix-tg$ gdb teeworlds GNU gdb (GDB) 8.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying= " and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from teeworlds...(no debugging symbols found)...done. (gdb) run Starting program: /gnu/store/d2j6sb9c9ydcy0yqji53glh5mrxh9rfh-profile/bin= /teeworlds=20 [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yy= pr3-glibc-2.27/lib/libthread_db.so.1". warning: File "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/= lib/libstdc++.so.6.0.21-gdb.py" auto-loading has been declined by your `a= uto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-= 5.5.0-lib/lib/libstdc++.so.6.0.21-gdb.py line to your configuration file "/home/tibbe/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/tibbe/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the s= hell: info "(gdb)Auto-loading safe path" [5b75af71][engine]: running on unix-linux-amd64 [5b75af71][engine]: arch is little endian [New Thread 0x7ffff0ab6700 (LWP 13457)] [5b75af71][storage]: couldn't open storage.cfg [5b75af71][storage]: using standard paths [5b75af71][storage]: added path '$USERDIR' ('/home/tibbe/.teeworlds') [5b75af71][storage]: added path '$DATADIR' ('/gnu/store/dz8yvn7pnlgr2cqx2= jik98jxpv9yyqg1-teeworlds-0.6.4/share/teeworlds/data') [5b75af71][storage]: added path '$CURRENTDIR' ('/home/tibbe/src/guix-tg')= [5b75af71][binds]: bound f1 (282) =3D toggle_local_console [5b75af71][binds]: bound f2 (283) =3D toggle_remote_console [5b75af71][binds]: bound tab (9) =3D +scoreboard [5b75af71][binds]: bound u (117) =3D +show_chat [5b75af71][binds]: bound f10 (291) =3D screenshot [5b75af71][binds]: bound a (97) =3D +left [5b75af71][binds]: bound d (100) =3D +right [5b75af71][binds]: bound space (32) =3D +jump [5b75af71][binds]: bound mouse1 (323) =3D +fire [5b75af71][binds]: bound mouse2 (324) =3D +hook [5b75af71][binds]: bound lshift (304) =3D +emote [5b75af71][binds]: bound rshift (303) =3D +spectate [5b75af71][binds]: bound right (275) =3D spectate_next [5b75af71][binds]: bound left (276) =3D spectate_previous [5b75af71][binds]: bound 1 (49) =3D +weapon1 [5b75af71][binds]: bound 2 (50) =3D +weapon2 [5b75af71][binds]: bound 3 (51) =3D +weapon3 [5b75af71][binds]: bound 4 (52) =3D +weapon4 [5b75af71][binds]: bound 5 (53) =3D +weapon5 [5b75af71][binds]: bound mousewheelup (331) =3D +prevweapon [5b75af71][binds]: bound mousewheeldown (332) =3D +nextweapon [5b75af71][binds]: bound t (116) =3D chat all [5b75af71][binds]: bound y (121) =3D chat team [5b75af71][binds]: bound f3 (284) =3D vote yes [5b75af71][binds]: bound f4 (285) =3D vote no [5b75af71][console]: executing 'settings.cfg' [5b75af71][binds]: bound tab (9) =3D +scoreboard [5b75af71][binds]: bound space (32) =3D +jump [5b75af71][binds]: bound 1 (49) =3D +weapon1 [5b75af71][binds]: bound 2 (50) =3D +weapon2 [5b75af71][binds]: bound 3 (51) =3D +weapon3 [5b75af71][binds]: bound 4 (52) =3D +weapon4 [5b75af71][binds]: bound 5 (53) =3D +weapon5 [5b75af71][binds]: bound a (97) =3D +left [5b75af71][binds]: bound d (100) =3D +right [5b75af71][binds]: bound t (116) =3D chat all [5b75af71][binds]: bound u (117) =3D +show_chat [5b75af71][binds]: bound y (121) =3D chat team [5b75af71][binds]: bound right (275) =3D spectate_next [5b75af71][binds]: bound left (276) =3D spectate_previous [5b75af71][binds]: bound f1 (282) =3D toggle_local_console [5b75af71][binds]: bound f2 (283) =3D toggle_remote_console [5b75af71][binds]: bound f3 (284) =3D vote yes [5b75af71][binds]: bound f4 (285) =3D vote no [5b75af71][binds]: bound f10 (291) =3D screenshot [5b75af71][binds]: bound rshift (303) =3D +spectate [5b75af71][binds]: bound lshift (304) =3D +emote [5b75af71][binds]: bound mouse1 (323) =3D +fire [5b75af71][binds]: bound mouse2 (324) =3D +hook [5b75af71][binds]: bound mousewheelup (331) =3D +prevweapon [5b75af71][binds]: bound mousewheeldown (332) =3D +nextweapon [5b75af71][console]: failed to open 'autoexec.cfg' [5b75af71][client]: starting... [New Thread 0x7fffec084700 (LWP 13458)] [Thread 0x7fffec084700 (LWP 13458) exited] [New Thread 0x7fffec084700 (LWP 13459)] [New Thread 0x7fffe1883700 (LWP 13460)] [New Thread 0x7fffdbfff700 (LWP 13461)] [New Thread 0x7fffe1082700 (LWP 13462)] [New Thread 0x7fffe0881700 (LWP 13463)] [New Thread 0x7fffdb7fe700 (LWP 13464)] [New Thread 0x7fffdaffd700 (LWP 13465)] [New Thread 0x7fffda7fc700 (LWP 13466)] Thread 6 "si_shader:0" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffdbfff700 (LWP 13461)] 0x00007ffff5e5e2b0 in __memcpy_ssse3 () from /gnu/store/l4lr0f5cjd0nbsaaf= 8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6 (gdb) bt #0 0x00007ffff5e5e2b0 in __memcpy_ssse3 () from /gnu/store/l4lr0f5cjd0nb= saaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6 #1 0x00007fffef8c0c48 in read_chunk () from /gnu/store/lzzc5v2a0czrn5jan= 6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so #2 0x00007fffef8c0da3 in si_load_shader_binary () from /gnu/store/lzzc5v= 2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so #3 0x00007fffef8c2ef8 in si_init_shader_selector_async () from /gnu/stor= e/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so #4 0x00007fffef45e145 in util_queue_thread_func () from /gnu/store/lzzc5= v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so #5 0x00007fffef45de17 in impl_thrd_routine () from /gnu/store/lzzc5v2a0c= zrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so #6 0x00007ffff7bc1567 in start_thread () from /gnu/store/l4lr0f5cjd0nbsa= af8b5dmcw1a1yypr3-glibc-2.27/lib/libpthread.so.0 #7 0x00007ffff5e20eaf in clone () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dm= cw1a1yypr3-glibc-2.27/lib/libc.so.6 (gdb) thread 1 [Switching to thread 1 (Thread 0x7ffff7fdb780 (LWP 13453))] #0 0x00007ffff5e171d1 in ppoll () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dm= cw1a1yypr3-glibc-2.27/lib/libc.so.6 (gdb) bt #0 0x00007ffff5e171d1 in ppoll () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dm= cw1a1yypr3-glibc-2.27/lib/libc.so.6 #1 0x00007ffff26a5855 in pa_mainloop_poll () from /gnu/store/6hl9a8myw9a= 2m4ws0dplb1la5k7dgn5r-pulseaudio-11.1/lib/libpulse.so.0 #2 0x00007ffff26a5dfe in pa_mainloop_iterate () from /gnu/store/6hl9a8my= w9a2m4ws0dplb1la5k7dgn5r-pulseaudio-11.1/lib/libpulse.so.0 #3 0x00007ffff6a467cb in PULSE_OpenAudio () from /gnu/store/qvs87bzy84al= 73y7brz90chr319m16db-sdl-1.2.15/lib/libSDL-1.2.so.0 #4 0x00007ffff6a1aafb in SDL_OpenAudio () from /gnu/store/qvs87bzy84al73= y7brz90chr319m16db-sdl-1.2.15/lib/libSDL-1.2.so.0 #5 0x000000000045549f in CSound::Init() () #6 0x0000000000460f7b in CClient::Run() () #7 0x00000000004052a0 in main () (gdb)=20 --------------54E289EDDE76B344048F7CC1-- --i9dSG585vPaEPHBUJmKskZ1aNeY2DPF9I-- --3BPQMfQuFGBjCASl5jwdSTGEjMlqsPpb9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEKUiC5+8BRKEri5fa0uWPaa77GdUFAlt1s50ACgkQ0uWPaa77 GdWHQgf/UYDig4AwX6a2Dy8Qgw6AE2zh9qrWKkNz8Q/tUvomsWV8molrm4nRxTF3 KYxhuMHaYRcxEfNAvvGKckRXDp+JpkUXoS8xEf5Bd9VvON+TBdUkBLWyFamkKoKy 1ozXBx8yFJrVvkNI/Fj+JXJmACr8MA5BEIJiXmvV4P0jsFwqo0gRKbBvjAN5ce1p ykFvrzQdtGD/SWbu/hvsGgxYlU2+953cLV7tOGEI1n7Bzl0M/pEmB7zRQuZoD//E /A2A231j0dswB11muABo5fuBetDE5VstWWEcXBJzSsFBribFC8d261Sa5AW1/tGE 528gZo3rlknb8GO58OinYwwPTxq9iw== =xgsT -----END PGP SIGNATURE----- --3BPQMfQuFGBjCASl5jwdSTGEjMlqsPpb9--