Jump to content
Visual Boy Advance-M
Sign in to follow this  
powered_by_tux

Segmentation fault on Ubuntu 10.04

Recommended Posts

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:

 

Program received signal SIGSEGV, Segmentation fault.

 

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×