[Home]

Summary:ASTERISK-00522: pcm.c / chan_alsa.c -- asterisk crashes with: Assertion val < pcm->buffer_size failed
Reporter:Dorian Gray (dorian)Labels:
Date Opened:2003-11-12 13:36:31.000-0600Date Closed:2004-09-25 02:49:15
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) silencethreshold.patch
Description:Asterisk CVS-11/12/03-13:32:12 (10/06 showed same behavior)

my /etc/modules.conf has:
load => chan_alsa.so
noload => chan_oss.so

I get the following error and then asterisk crashes:

...
[chan_alsa.so] => (ALSA Console Channel Driver)
asterisk: pcm.c:5486: snd_pcm_sw_params_set_silence_threshold: Assertion `val < pcm->buffer_size' failed.
Aborted
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe


****** ADDITIONAL INFORMATION ******

error was first noted:
http://lists.digium.com/pipermail/asterisk-dev/2003-May/000729.html

I have been successfully using 10/06 cvs up until today with Emanuele Pucciarelli's patch (attached); 11/12 cvs also appears to be working fine with the same patch (actually, I applied the fix manually, but I believe the line #s are still the same...)

NB: zaptel, zapata, asterisk were built with -fstack-protector under a propolice-hardened gcc/glibc, but I do not believe this to be related as there was no stack smashing error output.
Comments:By: Mark Spencer (markster) 2003-11-13 15:31:40.000-0600

Fixed in CVS