Skip to content

Assert in OMASA encoder with bit rate switching LTV ASAN/USAN tests -- cannot reproduce

Basic info

  • Fixed point:

Bug description

Assert reported in ASAN/USAN tests, same test case:

tests/codec_be_on_mr_nonselection/test_param_file.py::test_param_file_tests\[ltv-OMASA 2TC 1ISM at br sw techs 13.2 to 512 kbps start 24.4 kbps, 48kHz in, 48kHz out, BINAURAL_ROOM_IR out, JBM Prof 5\]

See pipeline https://forge.3gpp.org/rep/sa4/audio/ivas-basop/-/pipelines/66666

Note that it is not a sanitizer error, but a BASOP assert

REF encoder command:
	/builds/rep/sa4/audio/ivas-basop/IVAS_cod -q -ism_masa 1 2 /builds/rep/sa4/audio/ivas-basop/scripts/testv/ltv48_OMASA_1ISM_2TC_ISM1.csv /builds/rep/sa4/audio/ivas-basop/scripts/testv/ltv48_OMASA_1ISM_2TC.met /builds/rep/sa4/audio/ivas-basop/scripts/switchPaths/sw_13k2_512k_2fr_start_24k4_omasatechs_1ism.bin 48 /builds/rep/sa4/audio/ivas-basop/scripts/testv/ltv48_OMASA_1ISM_2TC.wav /builds/rep/sa4/audio/ivas-basop/tests/ref/param_file/enc/ltv48_OMASA_1ISM_2TC.wav_OMASA_2TC_1ISM_at_br_sw_techs_13_2_to_512_kbps_start_24_4_kbps_48kHz_in_48kHz_out_BINAURAL_ROOM_IR_out_JBM_Prof_5.192
REF encoder stderr:

	==================================================================================================
	 IVAS Codec BASOP Baseline
 
	 Based on EVS Codec (Alternative Fixed Point) 3GPP TS26.452 Aug 12, 2021,
	 Version 16.3.0
	==================================================================================================

	IVAS_cod: lib_basop/basop32.c:1661: Word32 L_add(Word32, Word32): Assertion `0' failed.

The same test case passes in the LTV fx-fx test. The only thing that differs then would be the compiler, but I was still not able to reproduce it.

Ways to reproduce

I cannot reproduce this. The steps to trigger this would be:

cp /usr/local/ltv/* scripts/testv
make CLANG=2 -j
./IVAS_cod -ism_masa 1 2 scripts/testv/ltv48_OMASA_1ISM_2TC_ISM1.csv scripts/testv/ltv48_OMASA_1ISM_2TC.met scripts/switchPaths/sw_13k2_512k_2fr_start_24k4_omasatechs_1ism.bin 48 scripts/testv/ltv48_OMASA_1ISM_2TC.wav bs.192