On Jul 03 2023, Alex Bennée wrote: > Andreas Schwab <sch...@suse.de> writes: > >> On Jul 03 2023, Andreas Schwab wrote: >> >>> This is a regression in 8.0. It causes the testsuite of mold to fail: >>> >>> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/mold/standard/riscv64 >>> >>> + out/test/elf/riscv64/section-start/exe2 >>> ** >>> ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu >>> == current_cpu) >>> ** >>> ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu >>> == current_cpu) >> >> This bisects down to commit 86f04735ac ("linux-user: Fix brk() to >> release pages"). See the attached test case. >> >> $ ./qemu-riscv64 ../exe1 >> ** >> ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion failed: >> (cpu == current_cpu) >> Bail out! ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion >> failed: (cpu == current_cpu) >> ** >> ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion failed: >> (cpu == current_cpu) >> Bail out! ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion >> failed: (cpu == current_cpu) > > I wonder if applying c5ffd16ba4c8fd fixes this?
No, the error still happens with current master, and reverting 86f04735ac on top of it fixes it. > I tried to double check with the test case but I can't run it as it's a > dynamic binary so needs an ld.so. You can download the glibc package from <https://download.opensuse.org/ports/riscv/tumbleweed/repo/oss/>. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."