Segfault when rewinding song with enabled SoX Resampler plugin
April 05, 2020
When rewinding songs a segfault occurs if:
- the SoX Resampler plugin is enabled
- the configured sample rate is higher than the actual sample rate of the audio file
Example: Configure the SoX plugin to use 48000 Hz and play audio files with 44100 Hz.
- Audacious 4.0
- SoX 14.4.2
Originally this has been reported here:
The crash does not happen if the Sample Rate Converter plugin (configured for the same sample rate)
is used together with the SoX Resampler plugin. Is this required or can we avoid the segfault differently?
Can you provide a stack trace?
The problem has to do with calling soxr_process() in flush. This causes SoX to free its buffers. Rewinding isn't necessary, any flush will cause it. Workaround seems to be to just not do that.
- Target version set to 4.0.1
- Status changed from New to Closed
Also available in: Atom