pw_filter: this fault was caused by a dereference of a high value address
I am not sure if it started with 0.3.56
or 0.3.55
but it is a recent bug. Sometimes when PipeWire changes sampling rate from 48 kHz
to 44.1 kHz
I see a crash in EasyEffects when trying to read values from the buffers returned by pw_filter_get_dsp_buffer
. In a binary compiled with sanatizer support the sanatizer gives the error message in this issue's title.
I check if the pointer pw_filter_get_dsp_buffer
returns is null. So that is not the problem. In my system when the latency changes from 48 kHz to 44.1 kHz the quantum size changes from 2048
to 1024
. It is when trying to read values from the new buffer that the crash happens.
It isn't an easy to reproduce bug. Most of the times nothing bad happens when PipeWire switches rate. The bug seems to be random.