Page 1 of 1

Segmentation fault on Ubuntu 10.04

Posted: Mon May 10, 2010 12:01 pm
by powered_by_tux

I am using VBA-M rev 945, which I have compiled by myself. The very same revision worked fine on Ubuntu 9.10 64 bit but on 10.04 gvbam will segfault shortly after starting gameplay. gdb prints the following backtrace:

 

Code: Select all

Program received signal SIGSEGV, Segmentation fault.

 

Code: Select all

#0  0x00007fffe718eb20 in ?? ()
No symbol table info available.
#1  0x00007fffecef2c22 in snd_pcm_recover () from /usr/lib/libasound.so.2
No symbol table info available.
#2  0x00007ffff30b4858 in ?? () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#3  0x00007ffff308736f in ?? () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#4  0x00007ffff308f265 in ?? () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#5  0x00007ffff30d8c19 in ?? () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#6  0x00007ffff2e669ca in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00007fffefe7469d in clone () from /lib/libc.so.6
No symbol table info available.
#8  0x0000000000000000 in ?? ()
No symbol table info available.

 

That looks like a problem with audio, doesn't it? For reference, I am not using PulseAudio which comes by default with Ubuntu. My sound card is a SB Live! 24-Bit.


Segmentation fault on Ubuntu 10.04

Posted: Mon May 10, 2010 12:14 pm
by spacy51

It looks like the audio signal is send from VBA thorugh the SDL API to ASOUND (whatever that is).

 

It's either a problem in ASOUND or SDL.

 

It might sometimes be the case that VBA doesn't provide audio date fast enough, if emulation is too slow, but the audio APIs shouldn't crash in that case..


Segmentation fault on Ubuntu 10.04

Posted: Sat May 15, 2010 2:15 pm
by powered_by_tux

New findings. It seems that my installation was slightly borked, although I am pretty sure about not having messed with audio libs on this setup.

 

I downgraded libasound2 to the version of the previous Ubuntu release to test vbam with it. Indeed, it worked without segfaulting but every other audio application was complaining about the old lib. So I reinstalled the current version and vbam still works now. Hardly explicable.