[Openal] Segmentation Fault on calling alcOpenDevice
Chris Robinson
chris.kcat at gmail.com
Sun Jun 8 14:38:08 PDT 2008
On Sunday 08 June 2008 11:59:55 am Ravi Kumar wrote:
> CONTEXT [backends/alc_backend_sdl.c:337] SDL backend opened successfully
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007fa76bb91bcb in free () from /lib/libc.so.6
>
> Any suggesstions on what can be wrong here, and/or how can i fix it ? :)
I could've sworn I fixed that bug. The problem is when it probes the SDL
backend (opens then closes it to make sure it's useable), the allocated data
struct isn't cleared to 0, so when it's closed, it tries to free an internal
pointer that's a garbage value.
I just committed a fix for it, if you want to grab the trunk again. However,
you may be better off using OpenAL-Soft in the repo instead of OpenAL-Sample
(it's more up to date and better for ALSA/OSS users).
More information about the Openal
mailing list