Bugzilla – Bug 4
using alsa backend results in segmentation fault
Last modified: 2005-12-12 17:19:27 CET
When I try to use the alsa backend tX crashes with a segmentation fault:
+ tX_warning: ALSA: The PCM device "hw:0,0" doesnt support 44100 Hz playback -
using 44100 instead
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1361)]
0x43417910 in _int_free () from /lib/libc.so.6
#0 0x43417910 in _int_free () from /lib/libc.so.6
#1 0x4341676c in free () from /lib/libc.so.6
#2 0x43273b4e in snd_pcm_hw_params_free () from /usr/lib/libasound.so.2
I have a SBlive, alsa-lib and alsa-driver are version 0.9.6 and work correctly.
Using the OSS backend works fine.
This is a rather strange bug, seems to be an ALSA issue however. On some ALSA installations snd_hw_params_free() succeeds as it should on other systems it just dumps core. As a workaround I have new configuration option in CVS that allows the user to disable the free() call. Probably causes a tiny memory leak but better the segfaulting however.
I'll keep the bug open hoping to find a _real_ fix sometime.
No more reports of this issue. Seems fixed.