audioresample: ARM NEON crashes resampling 192k/24 -> 44.1k/16 with resample-method=cubic and quality=0
Submitted by GstBlub
Link to original bug (#786292)
Description
We're seeing a crash on ARM NEON platforms when resampling pcm audio from 192k/24 down to 44.1k/16 with resample-method=cubic and quality=0
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 13272]
0x40b83720 in inner_product_gint16_full_1_neon (o=0x2e6250, a=0x3450e0, b=0x354250, len=16, icoeff=0x44500a78, bstride=0) at audio-resampler-neon.h:27
27 audio-resampler-neon.h: No such file or directory.
(gdb) bt
#0 0x40b83720 in inner_product_gint16_full_1_neon (o=0x2e6250, a=0x3450e0, b=0x354250, len=16, icoeff=0x44500a78, bstride=0) at audio-resampler-neon.h:27
#1 0x40b84708 in resample_gint16_full_1_neon (resampler=0x25fe50, in=0x2993f0, in_len=4615, out=0x44500b48, out_len=1057, consumed=0x44500ad4) at audio-resampler-neon.h:653
#2 0x40b88000 in gst_audio_resampler_resample (resampler=0x25fe50, in=0x44500b4c, in_frames=4608, out=0x44500b48, out_frames=1057) at audio-resampler.c:1763
#3 0x40b78940 in converter_resample (convert=0x2a0388, flags=GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE, in=0x44500b4c, in_frames=4608, out=0x44500b48, out_frames=1057)
at audio-converter.c:892
#4 0x40b79084 in gst_audio_converter_samples (convert=0x2a0388, flags=GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE, in=0x44500b4c, in_frames=4608, out=0x44500b48, out_frames=1057)
at audio-converter.c:1139
#5 0x44476878 in gst_audio_resample_process (resample=0x1b3498, inbuf=0x256498, outbuf=0x31b5f8) at gstaudioresample.c:782
#6 0x44476c9c in gst_audio_resample_transform (base=0x1b3498, inbuf=0x256498, outbuf=0x31b5f8) at gstaudioresample.c:892
#7 0x40be7fe4 in ?? () from /usr/lib/libgstbase-1.0.so.0
#8 0x40be7fe4 in ?? () from /usr/lib/libgstbase-1.0.so.0
(gdb) info registers
r0 0x38ae90 3714704
r1 0x39a000 3776512
r2 0x0 0
r3 0xfffdd139 4294824249
r4 0x0 0
r5 0x0 0
r6 0x256498 2450584
r7 0x1b3498 1782936
r8 0x1aed88 1764744
r9 0x1b3408 1782792
r10 0x44500c6c 1146096748
r11 0x44500a5c 1146096220
r12 0x2e6250 3039824
sp 0x44500a40 0x44500a40
lr 0x40b84708 1085818632
pc 0x40b83720 0x40b83720 <inner_product_gint16_full_1_neon+152>
cpsr 0xa0000010 -1610612720
Version: 1.10.3