PulseAudio orc code crashes in emulation mode
Reproducible in both 0.4.33 and master in the PulseAudio tree with:
ORC_DEBUG=99 ORC_CODE=debug,emulate CK_FORK=no meson test cpu-volume-test
Backtrace:
#0 0x00007ffff7810cd3 in orc_executor_emulate (ex=0x7fffffffb830) at ../subprojects/orc/orc/orcexecutor.c:320
#1 0x00007ffff7e04b82 in pa_volume_s16ne_orc_2ch (d1=0x7fffffffcc5e, p1=180444461064589, n=510) at src/pulsecore/svolume-orc-gen.c:551
#2 0x00007ffff7e8e189 in pa_volume_s16ne_orc (samples=0x7fffffffcc5e, volumes=0x7fffffffbbc0, channels=2, length=2040) at ../src/pulsecore/svolume_orc.c:38
#3 0x0000000000401592 in run_volume_test (func=0x7ffff7e8e130 <pa_volume_s16ne_orc>, orig_func=0x7ffff7e82470 <pa_volume_s16ne_sse2>, align=1, channels=2, correct=true, perf=false) at ../src/tests/cpu-volume-test.c:74
#4 0x000000000040207e in svolume_orc_test_fn (_i=0) at ../src/tests/cpu-volume-test.c:211
#5 0x00007ffff7dbd943 in tcase_run_tfun_nofork (sr=sr@entry=0x406680, tc=tc@entry=0x406420, tfun=tfun@entry=0x406630, i=i@entry=0) at /usr/src/debug/check-0.15.2-10.fc39.x86_64/src/check_run.c:420
#6 0x00007ffff7dbdf75 in srunner_iterate_tcase_tfuns (tc=0x406420, sr=<optimized out>) at /usr/src/debug/check-0.15.2-10.fc39.x86_64/src/check_run.c:263
#7 srunner_run_tcase (tc=0x406420, sr=0x406680) at /usr/src/debug/check-0.15.2-10.fc39.x86_64/src/check_run.c:402
#8 srunner_iterate_suites (print_mode=<optimized out>, exclude_tags=0x0, include_tags=0x0, tcname=<optimized out>, sname=0x0, sr=0x406680) at /usr/src/debug/check-0.15.2-10.fc39.x86_64/src/check_run.c:222
#9 srunner_run_tagged (sr=0x406680, sname=0x0, tcname=<optimized out>, include_tags=0x0, exclude_tags=0x0, print_mode=<optimized out>) at /usr/src/debug/check-0.15.2-10.fc39.x86_64/src/check_run.c:814
#10 0x00000000004021da in main (argc=1, argv=0x7fffffffd8a8) at ../src/tests/cpu-volume-test.c:241