[icecast-dev] ices segmentation fault..

Karl Heyes karl at xiph.org
Fri Aug 1 15:45:16 PDT 2003



On Fri, 2003-08-01 at 23:24, Deti Fliegl wrote:
> Hi,
> 
> ices does not work very reliable here in my place. I am using the latest 
>   CVS sources and I get up to three times a day something like that:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 2051 (LWP 8160)]
> 0x08051103 in resample_clear (s=0x40ef9338) at audio.c:142
> 142                     if (s->buffers[c])

<p>> btw: The way calling free in resample_clear does not look reasonable to me:
> 
>          if(s->buffers) {
>              for(c=0; c<s->channels; c++)
>                  if (s->buffers[c])
>                      free(s->buffers[c]);
>              free(s->buffers);
>          }
> 
> I think the last free(s->buffers) is too much or am I too stupid?

that isn't the problem, we do need to free that. The problem is quite
silly, as it's in the code actually identified.  I've just committed a
fix. 

karl.

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast-dev mailing list