dav1d segfaults with CFLAGS=-march=native
I'm using gcc 8.2.0 and configured dav1d with CFLAGS=-march=native meson build --buildtype release
.
$ gdb --args dav1d -i Chimera-AV1-8bit-1920x1080-6736kbps.ivf -o /dev/null --muxer yuv4mpeg2 --limit=50
GNU gdb (Gentoo 8.1 p1) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dav1d...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/kagami/.local/bin/dav1d -i Chimera-AV1-8bit-1920x1080-6736kbps.ivf -o /dev/null --muxer yuv4mpeg2 --limit=50
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Dav1d 9fd4ede - by Two Orioles
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7af64ea in inv_txfm_add_c.isra.0.constprop () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
(gdb) bt full
#0 0x00007ffff7af64ea in inv_txfm_add_c.isra.0.constprop () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#1 0x00007ffff7af69d3 in inv_txfm_add_dct_adst_16x8_c () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#2 0x00007ffff7b1a39d in recon_b_intra_8bpc () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#3 0x00007ffff7aa132d in decode_b () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#4 0x00007ffff7aa9498 in decode_sb () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#5 0x00007ffff7aa919c in decode_sb () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#6 0x00007ffff7aa9161 in decode_sb () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#7 0x00007ffff7aa9907 in decode_tile_sbrow () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#8 0x00007ffff7aaba51 in decode_frame () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#9 0x00007ffff7aaca20 in submit_frame () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#10 0x00007ffff7a9b3f7 in parse_obus () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#11 0x00007ffff7b6969b in dav1d_decode () from /home/kagami/code/tmp/dav1d/build/libdav1d.so.0
No symbol table info available.
#12 0x000055555555553d in main ()
No symbol table info available.