[LAU] Segfault using zita-j2a

Fons Adriaensen fons at linuxaudio.org
Fri Oct 26 07:59:42 UTC 2012


On Fri, Oct 26, 2012 at 07:37:42AM +0000, Fons Adriaensen wrote:
> On Thu, Oct 25, 2012 at 11:37:30PM +0200, Jannis Achstetter wrote:
>  
> > Okay, the different classes explain the different behavoirs then because
> > zretune crashes instantly:
> 
> If you install libzita-resampler from source, try this:
> 
> int VResampler::process (void)
> {
> -    unsigned int   k, hl, np, in, nr, nz, i, n, c;
> +    unsigned int   k, np, in, nr, n, c;
> +    int            i, hl, nz;
>      double         ph, dp, dd; 
>      float          a, b, *p1, *p2, *q1, *q2;
> 
> 
> In line 217 the index [i - hl] goes negative. If it is extended
> to 64 bit as unsigned that would explain the segfault.
> 
> Ciao,

P.S.  To make sure you replace the library installed by your
package manager, you need to change PREFIX at the top of the
Makefile to 

PREFIX=/usr

Ciao,

-- 
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)



More information about the Linux-audio-user mailing list