Segmentation fault on Ubuntu 10.04

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


Post Reply
powered_by_tux
Junior Member
Posts: 5
Joined: Thu Dec 18, 2008 1:09 pm

Segmentation fault on Ubuntu 10.04

Post 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.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

Segmentation fault on Ubuntu 10.04

Post 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..

powered_by_tux
Junior Member
Posts: 5
Joined: Thu Dec 18, 2008 1:09 pm

Segmentation fault on Ubuntu 10.04

Post 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.

Post Reply