IVAS DEC : segmentation fault errors with "-funsafe-math-optimizations" option
We have observed 24 segmentation fault errors in IVAS decoder mode (f95498190f2ec37b8e0305ae7b244e08aff74b9b) with "-O3 -funsafe-math-optimizations" option. ``` ./IVAS_dec -T $VEC_DIR/testvec/trajectories/rotate_euler_quaternion_30s_delayed.csv -render_config $VEC_DIR/testvec/testv/split_rendering/renderer_configs/split_renderer_config_0dof_256k_default.txt -fr 20 BINAURAL_SPLIT_CODED 48 $VEC_DIR/testvec/testv/split_rendering/ref/7_1_4_128000_SPLIT_CODED_full_cfg_split_renderer_config_0dof_256k_default_fr_pre_20_post_20.192 $VEC_DIR/scripts/CUT_OUTPUTS/split_rendering/7_1_4_128000_SPLIT_CODED_full_cfg_split_renderer_config_0dof_256k_default_fr_pre_20_post_20.splt.bit ``` All failing commands have following common pattern : - input multichannel layout (5.1, 5.1.2, 7.1, 7.1.4) - BINAURAL/BRR or BRIR/ rendering path - Bitrate switching or fixed bitrate at 48/64/80kbps Steps to reproduce are listed below : 1. Set path for clang 18.1.6 2. Append "-funsafe-math-optimizations" in CFLAGS 3. `make -f Makefile all CC=clang OPTIM=3 VERBOSE=1 -j` All failing commands are attached in [dec_failing_commands.sh](/uploads/e50956b0c11e5e6ed0714df52a30f04d/dec_failing_commands.sh)
issue