LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

CI triggers an assert when running qemu_launcher with --enable-debug-tcg

Open rmalmain opened this issue 1 year ago • 0 comments

Whenever qemu_launcher is built with --enable-debug-tcg, the CI triggers an assert:

[cargo-make] INFO - Running Task: test
+ cd /home/runner/work/LibAFL/LibAFL/fuzzers/qemu_launcher
+ echo Profile: dev
Profile: dev
+ cd injection_test
+ make
gcc -g -o static sqltest.c -l sqlite3 -lm -static -lpthread -ldl
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libsqlite3.a(os_unix.o): in function `unixDlOpen':
(.text+0x8ad): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
gcc -g -o sqltest sqltest.c -l sqlite3 -lm -lpthread 
+ mkdir in
+ echo aaaaaaaaaa
+ find /home/runner/work/LibAFL/LibAFL/target/x86_64 -name qemu_launcher
+ timeout 10s /home/runner/work/LibAFL/LibAFL/target/x86_64/debug/qemu_launcher -o out -i in -j ../injections.toml -v -- ./static
+ grep -Ei found.*injection fuzz.log
Fuzzer does not generate any testcases or any crashes
+ [ -z  ]
Logs:
+ echo Fuzzer does not generate any testcases or any crashes
+ echo Logs:
+ cat fuzz.log
qemu_launcher: ../tcg/tcg.c:6205: tcg_gen_code: Assertion `num_insns + 1 == s->gen_tb->icount' failed.
qemu_launcher: QEMU internal SIGSEGV {code=128, addr=(nil)}
Crashed with signal 11
qemu_launcher: ../tcg/tcg.c:6205: tcg_gen_code: Assertion `num_insns + 1 == s->gen_tb->icount' failed.
qemu_launcher: QEMU internal SIGSEGV {code=128, addr=(nil)}
Crashed with signal 11
qemu_launcher: ../tcg/tcg.c:6205: tcg_gen_code: Assertion `num_insns + 1 == s->gen_tb->icount' failed.
qemu_launcher: QEMU internal SIGSEGV {code=128, addr=(nil)}
Crashed with signal 11
qemu_launcher: ../tcg/tcg.c:6205: tcg_gen_code: Assertion `num_insns + 1 == s->gen_tb->icount' failed.
qemu_launcher: QEMU internal SIGSEGV {code=128, addr=(nil)}
Crashed with signal 11
Context:
...

The full report is available here.

It's an error I've met once in the past, so this error is not specific to this target.

rmalmain avatar Apr 16 '24 08:04 rmalmain