unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32458: SDL SEGFAULTs on foreign distro
@ 2018-08-16 17:25 Tim Gesthuizen
       [not found] ` <handler.32458.B.153444037626013.ack@debbugs.gnu.org>
       [not found] ` <87zhs0hbre.fsf@fastmail.com>
  0 siblings, 2 replies; 20+ messages in thread
From: Tim Gesthuizen @ 2018-08-16 17:25 UTC (permalink / raw)
  To: 32458


[-- Attachment #1.1.1: Type: text/plain, Size: 933 bytes --]

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 driver.
An invocation of memcpy causes a SEGFAULT during this operation.
I am running Guix on top of Debian Stretch with the radeon graphics driver.
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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: gdb.log --]
[-- Type: text/x-log; name="gdb.log", Size: 7525 bytes --]

~/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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-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 `auto-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 shell:
	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/dz8yvn7pnlgr2cqx2jik98jxpv9yyqg1-teeworlds-0.6.4/share/teeworlds/data')
[5b75af71][storage]: added path '$CURRENTDIR' ('/home/tibbe/src/guix-tg')
[5b75af71][binds]: bound f1 (282) = toggle_local_console
[5b75af71][binds]: bound f2 (283) = toggle_remote_console
[5b75af71][binds]: bound tab (9) = +scoreboard
[5b75af71][binds]: bound u (117) = +show_chat
[5b75af71][binds]: bound f10 (291) = screenshot
[5b75af71][binds]: bound a (97) = +left
[5b75af71][binds]: bound d (100) = +right
[5b75af71][binds]: bound space (32) = +jump
[5b75af71][binds]: bound mouse1 (323) = +fire
[5b75af71][binds]: bound mouse2 (324) = +hook
[5b75af71][binds]: bound lshift (304) = +emote
[5b75af71][binds]: bound rshift (303) = +spectate
[5b75af71][binds]: bound right (275) = spectate_next
[5b75af71][binds]: bound left (276) = spectate_previous
[5b75af71][binds]: bound 1 (49) = +weapon1
[5b75af71][binds]: bound 2 (50) = +weapon2
[5b75af71][binds]: bound 3 (51) = +weapon3
[5b75af71][binds]: bound 4 (52) = +weapon4
[5b75af71][binds]: bound 5 (53) = +weapon5
[5b75af71][binds]: bound mousewheelup (331) = +prevweapon
[5b75af71][binds]: bound mousewheeldown (332) = +nextweapon
[5b75af71][binds]: bound t (116) = chat all
[5b75af71][binds]: bound y (121) = chat team
[5b75af71][binds]: bound f3 (284) = vote yes
[5b75af71][binds]: bound f4 (285) = vote no
[5b75af71][console]: executing 'settings.cfg'
[5b75af71][binds]: bound tab (9) = +scoreboard
[5b75af71][binds]: bound space (32) = +jump
[5b75af71][binds]: bound 1 (49) = +weapon1
[5b75af71][binds]: bound 2 (50) = +weapon2
[5b75af71][binds]: bound 3 (51) = +weapon3
[5b75af71][binds]: bound 4 (52) = +weapon4
[5b75af71][binds]: bound 5 (53) = +weapon5
[5b75af71][binds]: bound a (97) = +left
[5b75af71][binds]: bound d (100) = +right
[5b75af71][binds]: bound t (116) = chat all
[5b75af71][binds]: bound u (117) = +show_chat
[5b75af71][binds]: bound y (121) = chat team
[5b75af71][binds]: bound right (275) = spectate_next
[5b75af71][binds]: bound left (276) = spectate_previous
[5b75af71][binds]: bound f1 (282) = toggle_local_console
[5b75af71][binds]: bound f2 (283) = toggle_remote_console
[5b75af71][binds]: bound f3 (284) = vote yes
[5b75af71][binds]: bound f4 (285) = vote no
[5b75af71][binds]: bound f10 (291) = screenshot
[5b75af71][binds]: bound rshift (303) = +spectate
[5b75af71][binds]: bound lshift (304) = +emote
[5b75af71][binds]: bound mouse1 (323) = +fire
[5b75af71][binds]: bound mouse2 (324) = +hook
[5b75af71][binds]: bound mousewheelup (331) = +prevweapon
[5b75af71][binds]: bound mousewheeldown (332) = +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/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6
(gdb) bt
#0  0x00007ffff5e5e2b0 in __memcpy_ssse3 () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6
#1  0x00007fffef8c0c48 in read_chunk () from /gnu/store/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so
#2  0x00007fffef8c0da3 in si_load_shader_binary () from /gnu/store/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so
#3  0x00007fffef8c2ef8 in si_init_shader_selector_async () from /gnu/store/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so
#4  0x00007fffef45e145 in util_queue_thread_func () from /gnu/store/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so
#5  0x00007fffef45de17 in impl_thrd_routine () from /gnu/store/lzzc5v2a0czrn5jan6vxbrrzafwjqvs4-mesa-18.1.2/lib/dri/radeonsi_dri.so
#6  0x00007ffff7bc1567 in start_thread () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libpthread.so.0
#7  0x00007ffff5e20eaf in clone () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-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/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6
(gdb) bt
#0  0x00007ffff5e171d1 in ppoll () from /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6
#1  0x00007ffff26a5855 in pa_mainloop_poll () from /gnu/store/6hl9a8myw9a2m4ws0dplb1la5k7dgn5r-pulseaudio-11.1/lib/libpulse.so.0
#2  0x00007ffff26a5dfe in pa_mainloop_iterate () from /gnu/store/6hl9a8myw9a2m4ws0dplb1la5k7dgn5r-pulseaudio-11.1/lib/libpulse.so.0
#3  0x00007ffff6a467cb in PULSE_OpenAudio () from /gnu/store/qvs87bzy84al73y7brz90chr319m16db-sdl-1.2.15/lib/libSDL-1.2.so.0
#4  0x00007ffff6a1aafb in SDL_OpenAudio () from /gnu/store/qvs87bzy84al73y7brz90chr319m16db-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) 

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-01-23 17:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-16 17:25 bug#32458: SDL SEGFAULTs on foreign distro Tim Gesthuizen
     [not found] ` <handler.32458.B.153444037626013.ack@debbugs.gnu.org>
2018-08-20 16:12   ` bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro) Tim Gesthuizen
2018-08-20 20:35     ` Marius Bakke
2018-08-20 20:59     ` Marius Bakke
2018-08-22 19:18       ` Tim Gesthuizen
2018-10-07 16:22         ` Tim Gesthuizen
2018-10-07 20:06           ` Marius Bakke
2018-10-08 18:07             ` Tim Gesthuizen
2018-10-08 18:28               ` Marius Bakke
2018-10-10 15:35                 ` Tim Gesthuizen
2018-10-15 19:19                   ` Marius Bakke
2018-10-15 19:31                     ` Marius Bakke
2018-10-16 18:20                       ` Tim Gesthuizen
2018-10-17 15:13                         ` Marius Bakke
2018-10-22 17:23                           ` Tim Gesthuizen
2018-10-22 20:50                             ` Marius Bakke
2018-10-29 18:43                               ` Tim Gesthuizen
2018-11-14 19:49                                 ` Marius Bakke
     [not found] ` <87zhs0hbre.fsf@fastmail.com>
2019-01-18 20:14   ` Tim Gesthuizen
2019-01-23 17:32   ` Tim Gesthuizen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).