Bug#601657: libffado2 thread crashes with assertion failure

Max Kellermann max at duempel.org
Thu Oct 28 11:54:25 UTC 2010


On 2010/10/28 13:44, Adrian Knoth <adi at drcomp.erfurt.thur.de> wrote:
> When I compare
> 
>    http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=test.c;att=1;bug=601657
> 
> to the code in jackd1's drivers/firewire/ directory or to ffado's
> tests/streaming/teststreaming3.cpp, I wonder if you might simply miss to
> fill the buffers or to iterate/wait for FFADO.

It is intentionally missing.  It is a timing related bug, it triggers
only under certain circumstances.  It seems this happens when the
application does not fill the buffers quickly enough after
initialization.  I simulated that by blocking the main thread forever
with getchar().  This triggers the crash reliably.

While setting realtime may (or may not) reduce the chances to hit that
bug, it is not a solution.

When libffado2 notices that a buffer hasn't been filled in time, I
would expect it to report that error to the application, instead of
crashing.

Max





More information about the pkg-multimedia-maintainers mailing list