Opened 5 weeks ago
Closed 7 days ago
#11258 closed defect (duplicate)
7.1 regression: illegal instruction on riscv64
Reported by: | Sebastian Ramacher | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | 7.1 | Keywords: | |
Cc: | Sebastian Ramacher | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
7.1 regressed on riscv64 on Debian. When running the test suite, many tests fail with illegal instructions:
TEST srtp /<<PKGBUILDDIR>>/tests/fate-run.sh fate-srtp "" "" "/<<PKGBUILDDIR>>/debian/standard" 'run libavformat/tests/srtp' '' '' '' '1' '' '' '' '' '' '' '' '' '' '' /<<PKGBUILDDIR>>/debian/standard/libavformat/tests/srtp --- /<<PKGBUILDDIR>>/tests/ref/fate/srtp 2020-04-27 21:48:16.000000000 +0000 +++ tests/data/fate/srtp 2024-10-22 03:53:21.670605546 +0000 @@ -1,12 +0,0 @@ -80e0123412345678123456780102030405 -Decrypted content matches input -Decrypted content matches input -Decrypted content matches input -81c90007123456788765432100000000000012340000069ec73069ba000001fd -Decrypted content matches input -Decrypted content matches input -Decrypted content matches input -80e0123412345678123456780102030405 -81c90007123456788765432100000000000012340000069ec73069ba000001fd -80e0123412345678123456780102030405 -81c90007123456788765432100000000000012340000069ec73069ba000001fd Test srtp failed. Look at tests/data/fate/srtp.err for details. Illegal instruction threads=1 make[2]: *** [/<<PKGBUILDDIR>>/tests/Makefile:311: fate-srtp] Error 132
srtp is just the first test to fail. There are many more. See https://buildd.debian.org/status/fetch.php?pkg=ffmpeg&arch=riscv64&ver=7%3A7.1-2&stamp=1729570917&raw=0 for the full list.
Change History (3)
comment:1 by , 3 weeks ago
comment:2 by , 3 weeks ago
Duplicate of https://trac.ffmpeg.org/ticket/11251. There are additional commits producing the same error in different parts of the code:
https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=324899b7483529c336f399022c63721df14663ef
https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=98db1409102c5443491c2738aa601531f7f9b938
https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=f6d0a41c8ca67672f8e4b3c6e16cb3abd9f379bf
A (temporary) fix is to add __volatile__
to the __asm__
blocks to avoid compiling the runtime check of ff_rv_zbb_support
away.
comment:3 by , 7 days ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Here now with a backtrace:
The instruction causing the SIGILL according to gdb is:
git bisect suggests the commit at fault is 324899b7483529c336f399022c63721df14663ef.