Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#34 segfault on exit - alsa audio

open
Rob Leslie
madplay (5)
5
2010-04-21
2010-04-21
Edward Sheldrake
No

madplay segfaults on exit, apparently only on x86_64, when using alsa audio.

I think the problem is snd_pcm_hw_params_get_buffer_size returns the buffer size in frames not bytes, resulting in a too small buffer being allocated. Well, at least the patch appears to fix the problem for me, I'm just surprised that it doesn't segfault on i686 with the wrong size buffer.

Discussion