Closed WorksButNotTested closed 2 years ago
I’ve checked it with a simple example as well as my target application. In both cases it writes out a core dump as expected (with the commented limitations).
I am merging this to get the new release out :) thank you!
Awesome. Thanks for that.
I get this in the CI:
#15 175.1 1400 | cs->exception_index = EXCP_DATA_ABORT;
#15 175.1 | ^~~~~~~~~~~~~~~
#15 175.1 /AFLplusplus/qemu_mode/qemuafl/qemuafl/asan-giovese-inl.h:1400:25: note: each undeclared identifier is reported only once for each function it appears in
ah it is only defined for arm but no other platform:
./qemuafl/target/arm/cpu.h:#define EXCP_DATA_ABORT 4
maybe EXCP_HLT ?
You can force a signal instead of an exception that it is os agnostic.
force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPN, pc);
for instace to trigger a sigill, but in theory it can be handled in the guest is there is a signal handler.
Or maybe you can call directly dump_and_abort() (IIRC that's the function, in linux-user/signal.c) from asan_giovese_report_and_crash
Everything seems correct, if you tested it and it works I'll merge it