IVAS_dec segfault
Basic info
- Encoder and Decoder (float):
- Decoder (fixed): 07b86fd4
Bug description
Segmentation fault in basop decoder, frame 1883
Ways to reproduce
./IVAS_dec -q -fr 20 -no_delay_cmp -Tracefile out.dectrace -VOIP BINAURAL_ROOM_IR 32 crash.netsimout dec.wav
./IVAS_dec -q -fr 20 -no_delay_cmp -Tracefile out.dectrace -VOIP BINAURAL_ROOM_IR 32 crash.netsimout dec.wav
==================================================================================================
3GPP TS26.251 IVAS Codec Version IVAS-FX-3.0 (fixed-point C-Code)
Based on EVS Codec (Alternative Fixed Point) 3GPP TS26.452 Nov 04, 2021,
Version 16.4.0
==================================================================================================
Input bitstream file: crash.netsimout
Output synthesis file: dec.wav
Output sampling rate: 32000 Hz
Output configuration: Binaural: room with impulse responses
Render framesize: 20ms
TSM mode: ON
JBM trace file: out.dectrace
-- Start the decoder (quiet mode) --
Assertion failed: (0), function L_add, file basop32.c, line 1661.
Abort trap: 6
Process 9078 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #4: 0x000000010000c748 IVAS_dec`L_add(L_var1=1093265114, L_var2=1068638660) at basop32.c:1661:13
1658 if ( ( L_var_out ^ L_var1 ) & MIN_32 )
1659 {
1660 L_var_out = ( L_var1 < 0 ) ? MIN_32 : MAX_32;
-> 1661 assert( 0 );
1662 }
1663 }
1664
Target 0: (IVAS_dec) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #0: 0x000000019fb6a388 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x000000019fba3848 libsystem_pthread.dylib`pthread_kill + 296
frame #2: 0x000000019faaca2c libsystem_c.dylib`abort + 124
frame #3: 0x000000019faabc60 libsystem_c.dylib`__assert_rtn + 284
* frame #4: 0x000000010000c748 IVAS_dec`L_add(L_var1=1093265114, L_var2=1068638660) at basop32.c:1661:13
frame #5: 0x000000010000e824 IVAS_dec`CL_add(inp1=(re = 1093265114, im = -336903069), inp2=(re = 1068638660, im = -339271734)) at complex_basop.c:49:14
frame #6: 0x000000010031cde0 IVAS_dec`fft_lenN(x=0x000000016fddf2a8, W=0x0000000100771422, len=640, dim1=20, dim2=8, sc=2, Woff=40) at fft_fx.c:6214:28
frame #7: 0x000000010031a340 IVAS_dec`fft_fx(x=0x000000016fddf2a8, length=160) at fft_fx.c:6549:13
frame #8: 0x0000000100364e2c IVAS_dec`ivas_mdft_fx(pIn=0x000000013b015400, pOut_re=0x000000013b013500, pOut_im=0x000000013b045700, input_length=160, mdft_length=160) at ivas_mdft_imdft_fx.c:305:5
frame #9: 0x0000000100205418 IVAS_dec`ivas_rend_crendConvolver_fx(pCrend=0x000060000241c000, inConfig=IVAS_AUDIO_CONFIG_7_1_4, outConfig=IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR, pcm_in=0x000000016fde29f8, pcm_out=0x000000016fde2258, output_Fs=32000, i_ts=0, pos_idx=0) at ivas_crend_fx.c:1927:13
frame #10: 0x0000000100204bd0 IVAS_dec`ivas_rend_crendProcessSubframe_fx(pCrend=0x000060000241c000, inConfig=IVAS_AUDIO_CONFIG_7_1_4, outConfig=IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR, hDecoderConfig=0x0000600001518000, hCombinedOrientationData=0x0000000000000000, hIntSetup=0x0000000000000000, hEFAPdata=0x0000000000000000, hTcBuffer=0x000000013af07c60, input_f=0x000000016fde2ca8, output=0x000000016fde2ca8, n_samples_to_render=160, output_Fs=32000, pos_idx=0) at ivas_crend_fx.c:2198:13
frame #11: 0x00000001000d21d0 IVAS_dec`ivas_jbm_dec_flush_renderer_fx(st_ivas=0x000000013b808200, tc_granularity_new=40, renderer_type_old=RENDERER_BINAURAL_MIXER_CONV_ROOM, intern_config_old=IVAS_AUDIO_CONFIG_7_1_4, hIntSetupOld=0x000000013b808248, mc_mode_old=MC_MODE_NONE, ism_mode_old=ISM_MODE_DISC, nSamplesRendered=0x0000600002418040, data=0x000000013af05150) at ivas_dec_render_fx.c:1089:21
frame #12: 0x00000001001b3dec IVAS_dec`IVAS_DEC_ReadFormat(hIvasDec=0x0000600002418000, binaural_renderer=0x000000016fdfe578, binaural_renderer_sec=0x000000016fdfe580, hrtf_set_audio_cfg=0x000000016fdfe588) at lib_dec_fx.c:3768:17
frame #13: 0x0000000100004d34 IVAS_dec`decodeVoIP(arg=DecArguments @ 0x000000016fdfd700, hBsReader=0x0000600000e18000, hHrtf=0x000000016fdfe568, headRotReader=0x0000000000000000, externalOrientationFileReader=0x0000000000000000, refRotReader=0x0000000000000000, referenceVectorReader=0x0000000000000000, objectEditFileReader=0x0000000000000000, splitRendBits=0x0000000000000000, renderConfig=0x000000016fdfe188, phIvasDec=0x000000016fdfe5e0, pcmBuf=0x000000013b836e00) at decoder.c:3238:32
frame #14: 0x0000000100001a80 IVAS_dec`main(argc=12, argv=0x000000016fdff548) at decoder.c:671:17
frame #15: 0x000000019f802b98 dyld`start + 6076
Edited by Manuel Jander