Re: [LAU] Segfault using zita-j2a

From: Jannis Achstetter <jannis_achstetter@email-addr-hidden>
Date: Thu Oct 25 2012 - 19:52:10 EEST

Am 25.10.2012 17:51, schrieb Fons Adriaensen:
> On Thu, Oct 25, 2012 at 05:23:28PM +0200, Robin Gareus wrote:
>
>> Classic race condition. The jack_client is activated before the
>> resampler is initialized.
>>
>> zita-j2a.cc:200 creates the jack-client and calls jack_activate.
>> process_callbacks can arrive starting now.
>>
>> but not until zita-j2a.cc:211 calls J->start() the data-structures
>> required to do the processing are initialized.
>>
>> Easiest solution is probably to check if start() has been called in the
>> process callback:
>
> The code to do that is already present: jackclient:cc line 311.
> There must be some other problem.

valgrind's output is here: http://dpaste.com/hold/818241/

when running in the debugger, one can see the input buffer full of 0x00s
(as floats). Should be okay since we are not connected via JACK to anything.

        Jannis

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Oct 25 20:15:04 2012

This archive was generated by hypermail 2.1.8 : Thu Oct 25 2012 - 20:15:04 EEST