After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786292 - audioresample: ARM NEON crashes resampling 192k/24 -> 44.1k/16 with resample-method=cubic and quality=0
audioresample: ARM NEON crashes resampling 192k/24 -> 44.1k/16 with resample-...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.10.3
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-14 20:57 UTC by GstBlub
Modified: 2018-11-03 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description GstBlub 2017-08-14 20:57:06 UTC
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 inner_product_gint16_full_1_neon
    at audio-resampler-neon.h line 27
  • #1 resample_gint16_full_1_neon
    at audio-resampler-neon.h line 653
  • #2 gst_audio_resampler_resample
    at audio-resampler.c line 1763
  • #3 converter_resample
    at audio-converter.c line 892
  • #4 gst_audio_converter_samples
    at audio-converter.c line 1139
  • #5 gst_audio_resample_process
    at gstaudioresample.c line 782
  • #6 gst_audio_resample_transform
    at gstaudioresample.c line 892
  • #7 ??
    from /usr/lib/libgstbase-1.0.so.0
  • #8 ??
    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
Comment 1 GstBlub 2017-08-14 21:01:18 UTC
Resampling from 96k/24 to 44.1k/16 works, though.
Comment 2 GstBlub 2017-08-16 14:53:27 UTC
This reproduces the crash, using this .wav file: http://www.kozco.com/tech/piano2.wav

gst-launch-1.0 -v filesrc location=/tmp/piano2.wav ! wavparse ! audioconvert ! audioresample quality=0 resample-method=cubic ! "audio/x-raw,format=S24LE,channels=2,layout=interleaved,rate=192000" ! audioco
nvert ! audioresample quality=0 resample-method=cubic ! "audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=44100" ! fakesink
Comment 3 GstBlub 2017-08-16 16:06:54 UTC
Downsampling from 48k/24 town to 44.1/16 with resample-method=linear also crashes:

gst-launch-1.0 -v filesrc location=/tmp/piano2.wav ! wavparse ! audioconvert ! audioresample quality=0 resample-method=cubic ! "audio/x-raw,format=S24LE,channels=2,layout=interleaved,rate=48000" ! audiocon
vert ! audioresample quality=0 resample-method=linear ! "audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=44100" ! fakesink
Comment 4 GstBlub 2017-09-29 15:26:41 UTC
FYI, this was working fine in 1.6.3.
Comment 5 GStreamer system administrator 2018-11-03 11:59:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/377.