https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108021
Bug ID: 108021 Summary: sanitizer used with qemu Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: laurent.alfonsi at linaro dot org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Hi, I m running gcc testsuite with qemu, and I am facing an issue in sanitizer. Before (12.x), the asan was incompatible with ptrace. $ cat emtpy.c int main(void) { return 0; } $ aarch64-linux-gnu-gcc emtpy.c -fsanitize=address $ qemu-aarch64 -L ./sysroot-with-libasan-from-release ./a.out ==135765==LeakSanitizer has encountered a fatal error. ==135765==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1 ==135765==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc) # fiishes quickly : return status=1 Now (13.x), $ qemu-aarch64 -L ./sysroot-with-libasan-from-master-branch ./a.out # RAM memory grows exponentially without message It happens of course on most asan-dg.exp tests Either, it has been changed and not incompatible anymore with ptrace, or the error message was removed by error. It happens of course on most asan-dg.exp tests. Is this supposed to work now ?