Immediate Segfault [Linux x86]

Still get a segfault on 945GM graphics - not sure if it’s a shader issue. Get this same result with or without the shaders, so I’m assuming not… Fedora15, Core Solo, 1280x768 Intel 945GM 1GB

[josh@hargun GSB]$ gdb ./GSB.bin.x86
GNU gdb (GDB) Fedora (7.3.1-46.fc15)
Copyright (C) 2011 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 “i686-redhat-linux-gnu”.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/
Reading symbols from /usr/local/games/GSB/GSB.bin.x86…Missing separate debuginfo for /usr/local/games/GSB/GSB.bin.x86
(no debugging symbols found)…done.
(gdb) run
Starting program: /usr/local/games/GSB/GSB.bin.x86
[Thread debugging using libthread_db enabled]
Missing separate debuginfo for /usr/local/games/GSB/lib/libpng12.so.0
Missing separate debuginfo for /usr/local/games/GSB/lib/libjpeg.so.62
[New Thread 0xb7d1fb70 (LWP 5574)]
[New Thread 0xae4aeb70 (LWP 5575)]
[New Thread 0xadcadb70 (LWP 5576)]
[New Thread 0xad4acb70 (LWP 5577)]

Program received signal SIGSEGV, Segmentation fault.
__memcpy_ia32 () at …/sysdeps/i386/i686/memcpy.S:75
75 rep
Missing separate debuginfos, use: debuginfo-install alsa-plugins-pulseaudio-1.0.24-2.fc15.i686 freetype-2.4.4-7.fc15.i686 libXi-1.4.3-3.fc15.i686 libdrm-2.4.26-2.fc15.i686
(gdb) thread apply all bt

Thread 5 (Thread 0xad4acb70 (LWP 5577)):
#0 0x00110416 in __kernel_vsyscall ()
#1 0x4d2508a6 in nanosleep () at …/sysdeps/unix/syscall-template.S:82
#2 0x0019fa38 in SDL_Delay (ms=100) at ./src/timer/unix/SDL_systimer.c:118
#3 0x08399ec0 in UpdaterThread(void*) ()
#4 0x0015005b in SDL_RunThread (data=0x88b5bd8) at ./src/thread/SDL_thread.c:204
#5 0x0019d3dd in RunThread (data=0x88b5bd8) at ./src/thread/pthread/SDL_systhread.c:47
#6 0x4d249a2e in start_thread (arg=0xad4acb70) at pthread_create.c:305
#7 0x4d18834e in clone () at …/sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xadcadb70 (LWP 5576)):
#0 0x00110416 in __kernel_vsyscall ()
#1 0x4d17dc3e in __GI___poll (fds=0xadcad1d0, nfds=1, timeout=-1) at …/sysdeps/unix/sysv/linux/poll.c:87
#2 0x41a3050f in snd1_pcm_wait_nocheck (pcm=0x88b58a0, timeout=-1) at pcm.c:2367
#3 0x41a306d4 in snd_pcm_wait (pcm=0x88b58a0, timeout=-1) at pcm.c:2338
#4 0x41a36b8a in snd1_pcm_write_areas (pcm=0x88b58a0, areas=0xadcad2b0, offset=,
size=, func=0x41a7b430 <ioplug_priv_transfer_areas>) at pcm.c:6726
#5 0x41a7b7e7 in snd_pcm_ioplug_writei (pcm=0x88b58a0, buffer=0x88b66a8, size=1024) at pcm_ioplug.c:561
#6 0x41a2f479 in _snd_pcm_writei (size=1024, buffer=0x88b66a8, pcm=) at pcm_local.h:521
#7 snd_pcm_writei (pcm=0x88b58a0, buffer=0x88b66a8, size=1024) at pcm.c:1250
#8 0x00297937 in ALSANoMMapProc (ptr=0xb6641008) at /builddir/Frameworks/openal-soft-1.12.854/Alc/alsa.c:453
#9 0x00295aa2 in StarterFunc (ptr=0x88af778) at /builddir/Frameworks/openal-soft-1.12.854/Alc/alcThread.c:95
#10 0x4d249a2e in start_thread (arg=0xadcadb70) at pthread_create.c:305
#11 0x4d18834e in clone () at …/sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xae4aeb70 (LWP 5575)):
#0 0x00110416 in __kernel_vsyscall ()
#1 0x4d17dc3e in __GI___poll (fds=0xb6201310, nfds=2, timeout=178) at …/sysdeps/unix/sysv/linux/poll.c:87
#2 0x443665b7 in poll_func (ufds=0xb6201310, nfds=2, timeout=178, userdata=0x88b37f8)
at pulse/thread-mainloop.c:75
#3 0x443551ed in pa_mainloop_poll (m=0x88b3758) at pulse/mainloop.c:879
#4 0x443559e8 in pa_mainloop_iterate (m=0x88b3758, block=1, retval=0x0) at pulse/mainloop.c:961
#5 0x44355ab4 in pa_mainloop_run (m=0x88b3758, retval=0x0) at pulse/mainloop.c:979
#6 0x4436653f in thread (userdata=0x88b3718) at pulse/thread-mainloop.c:94
#7 0x440113a7 in internal_thread_func (userdata=0x88b4400) at pulsecore/thread-posix.c:83
#8 0x4d249a2e in start_thread (arg=0xae4aeb70) at pthread_create.c:305
#9 0x4d18834e in clone () at …/sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb7d1fb70 (LWP 5574)):
#0 0x00110416 in __kernel_vsyscall ()
#1 0x4d2508a6 in nanosleep () at …/sysdeps/unix/syscall-template.S:82
#2 0x0019fa38 in SDL_Delay (ms=1) at ./src/timer/unix/SDL_systimer.c:118
#3 0x0019fa81 in RunTimer (unused=0x0) at ./src/timer/unix/SDL_systimer.c:203
#4 0x0015005b in SDL_RunThread (data=0x84fc268) at ./src/thread/SDL_thread.c:204
#5 0x0019d3dd in RunThread (data=0x84fc268) at ./src/thread/pthread/SDL_systhread.c:47
#6 0x4d249a2e in start_thread (arg=0xb7d1fb70) at pthread_create.c:305
#7 0x4d18834e in clone () at …/sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb7fd96d0 (LWP 5571)):
#0 __memcpy_ia32 () at …/sysdeps/i386/i686/memcpy.S:75
#1 0x00000001 in ?? ()
#2 0x08117d4d in GVertexBuffer::CopyIn(_D3DTLVERTEX*, int) ()
#3 0x08115b5e in LibTextEngine::ProcessTextQueue(int) ()
#4 0x0821596a in GUI_MainMenu::Draw() ()
#5 0x08257a9f in Game::GameProc() ()
#6 0x082e2b98 in WinMain(void*, void*, char*, int) ()
#7 0x083865ba in main ()

certainly, this is the result it could be noted the I do hear the opening music for a minute before if crashes.

Starting program: /media/New Volume/GSB/GSB.bin.x86
[Thread debugging using libthread_db enabled]
[New Thread 0x77549b70 (LWP 10286)]
[New Thread 0x70f87b70 (LWP 10287)]
[New Thread 0x6c785b70 (LWP 10288)]

Program received signal SIGSEGV, Segmentation fault.
0x77aa8b00 in ?? () from /lib/i386-linux-gnu/libc.so.6
(gdb) thread apply all bt

Thread 4 (Thread 0x6c785b70 (LWP 10288)):
#0 0x77fe1424 in __kernel_vsyscall ()
#1 0x77f69d46 in nanosleep () from /lib/i386-linux-gnu/libpthread.so.0
#2 0x77d79a38 in SDL_Delay (ms=100) at ./src/timer/unix/SDL_systimer.c:118
#3 0x08399ec0 in UpdaterThread(void*) ()
#4 0x77d2a05b in SDL_RunThread (data=0x856ca38)
at ./src/thread/SDL_thread.c:204
#5 0x77d773dd in RunThread (data=0x856ca38)
at ./src/thread/pthread/SDL_systhread.c:47
#6 0x77f61e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7 0x77a6473e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0x70f87b70 (LWP 10287)):
#0 0x77fe1424 in __kernel_vsyscall ()
#1 0x77a55f76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2 0x75b674a2 in ?? () from /usr/lib/libpulse.so.0
#3 0x75b563a9 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#4 0x75b56b84 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#5 0x75b56c64 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#6 0x75b67443 in ?? () from /usr/lib/libpulse.so.0
#7 0x757faa75 in ?? () from /usr/lib/libpulsecommon-0.9.22.so
#8 0x77f61e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
—Type to continue, or q to quit—
#9 0x77a6473e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0x77549b70 (LWP 10286)):
#0 0x77fe1424 in __kernel_vsyscall ()
#1 0x77f69d46 in nanosleep () from /lib/i386-linux-gnu/libpthread.so.0
#2 0x77d79a38 in SDL_Delay (ms=1) at ./src/timer/unix/SDL_systimer.c:118
#3 0x77d79a81 in RunTimer (unused=0x0) at ./src/timer/unix/SDL_systimer.c:203
#4 0x77d2a05b in SDL_RunThread (data=0x84f9700)
at ./src/thread/SDL_thread.c:204
#5 0x77d773dd in RunThread (data=0x84f9700)
at ./src/thread/pthread/SDL_systhread.c:47
#6 0x77f61e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7 0x77a6473e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0x7780bad0 (LWP 10283)):
#0 0x77aa8b00 in ?? () from /lib/i386-linux-gnu/libc.so.6
#1 0x08117d4d in GVertexBuffer::CopyIn(_D3DTLVERTEX*, int) ()
#2 0x08115b5e in LibTextEngine::ProcessTextQueue(int) ()
#3 0x0821596a in GUI_MainMenu::Draw() ()
#4 0x08257a9f in Game::GameProc() ()
#5 0x082e2b98 in WinMain(void*, void*, char*, int) ()
#6 0x083865ba in main ()
(gdb)

I’m also having this problem on one of my PCs… Running old Catalyst 9.3 drivers, launching the game gives an instant SegFault … If I try to run GDB on it, it totally locks the whole PC up solid, requiring a hard reboot. So I don’t think there’s much I can do to help debug the problem on that PC… Maybe I could run an strace or ltrace and take a photo of the screen when it stops. I’m able to play most other games in Humble Bundles though, aside from games like Trine where the game requires newer hardware or it doesn’t try to run at all.

Super Meat Boy and Shank is also not working for me on this PC for similar reasons (Instant SegFault)… Though I think they traced that back to some code that was using OpenGL extensions before checking if they were actually supported in the hardware and drivers. There’s several bug threads about that over at icculus’s website. . Under certain situations of 32-bit MESA compiled with ASM optimizations, mesa functions can return a non-null pointer to extensions that aren’t actually supported on the hardware/drivers and the app has to make sure it checks that the extensions are supported and not depend on the pointer being non-null… Otherwise the app tries to use a pointer to garbage and just crashes. Might be a similar problem, or might not.

Are you using the latest version of GSB? It was just updated on Dec 15th, and resolved all of my Seg Fault issues.

You were right… I redownloaded it on the Dec 17th and extracted it, but it extracted to a different folder and I had a link to the old version…

No more seg faults here…

I’ve got an asus UL30Vt laptop (vt=discrete nvidia video card) with a 1366x768 running linux mint 12 x86-64 (Ubuntu 11.10 derivative) with the nvidia binary driver.

When I run GSB that I downloaded from HiB last night I get:

$ /opt/GSB.bin.x86_64 Starting up GSB for Linux, Build: 2011-12-23T15:20:26Z ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5) ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started

The crash file:

[code]Crash Log: GSB for Linux, Build: 2011-12-23T15:20:26Z

=====================
==== STACK TRACE ====

/opt/GSB.bin.x86_64[0x75dcd6]
/lib/x86_64-linux-gnu/libc.so.6(+0x36420)[0x7ff0494d7420]
/lib/x86_64-linux-gnu/libc.so.6(fread+0x34)[0x7ff04950a624]
/opt/GSB.bin.x86_64(_ZN7LibFont10InitialiseEPcS0_iiii+0x96)[0x4e9cb6]
/opt/GSB.bin.x86_64(_ZN13LibTextEngine7AddFontEPcS0_iiii+0x80)[0x4e9f90]
/opt/GSB.bin.x86_64(_ZN4Game8InitTextEv+0x5c)[0x629a0c]
/opt/GSB.bin.x86_64(_ZN4Game7InitAppEv+0x273)[0x62b723]
/opt/GSB.bin.x86_64(_Z7WinMainPvS_Pci+0x33)[0x6b49e3]
/opt/GSB.bin.x86_64(main+0x78)[0x75dbf8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ff0494c230d]
/opt/GSB.bin.x86_64(__gxx_personality_v0+0x479)[0x4e1869][/code]

I tried disabling pulse audio with ~.alsoftrc “drivers=also”, which helped a bit, I get no also errors, but then I get:

GSB has unexpectedly encountered a fatal error. A full description of the error can be found in the file /home/bill/.positech/GSB/crash.log

And the crash log:

[code]Crash Log: GSB for Linux, Build: 2011-12-23T15:20:26Z

=====================
==== STACK TRACE ====

/opt/GSB.bin.x86_64[0x75dcd6]
/lib/x86_64-linux-gnu/libc.so.6(+0x36420)[0x7f04c905e420]
/lib/x86_64-linux-gnu/libc.so.6(fread+0x34)[0x7f04c9091624]
/opt/GSB.bin.x86_64(_ZN7LibFont10InitialiseEPcS0_iiii+0x96)[0x4e9cb6]
/opt/GSB.bin.x86_64(_ZN13LibTextEngine7AddFontEPcS0_iiii+0x80)[0x4e9f90]
/opt/GSB.bin.x86_64(_ZN4Game8InitTextEv+0x5c)[0x629a0c]
/opt/GSB.bin.x86_64(_ZN4Game7InitAppEv+0x273)[0x62b723]
/opt/GSB.bin.x86_64(_Z7WinMainPvS_Pci+0x33)[0x6b49e3]
/opt/GSB.bin.x86_64(main+0x78)[0x75dbf8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f04c904930d]
/opt/GSB.bin.x86_64(__gxx_personality_v0+0x479)[0x4e1869]

Segmentation fault
[/code]

I just read this thread (up to this post) and tried the various tweaks (deleting ~/.positech, forcing audio to alsa, and installing various jpg/libpng packages).

Inside nvidia-settings it reports I’m using driver version 280.13.

Any ideas?

It seems it’s having issues opening the font data file.

Can you check the gaqme installation folder and ensure that there are cwfont20.dds.dat and zekton16.dds.dat in the data/fonts folder? They should each be 400 bytes.

greetings all, I just downloaded GSB from the Humble Bundle 6 (version 1.56:0) and I have had the same errors as posted here for the x86_64 version of the game on ubuntu 12.04. I fixed the problem by moving the lib64 directory that comes with the game to force the game to use my native libs instead of its own, and that seems to have worked.

simply:

sudo mv /usr/local/games/GSB/lib64 /usr/local/games/GSB/lib64-bak

replacing /usr/local/games with your installtion location of course. I hope it works for you as well as it did for me.