> * gcc.dg/asan/bitint-1.c: New test. > * gcc.dg/asan/bitint-2.c: New test.
Those two new tests are failing when "detect_stack_use_after_return" is disabled with at least -O1. This is a bit unexpected since the error raised by ASAN is "stack-use-after-scope" not "stack-use-after-return". Hence, I don't think that just forcing "detect_stack_use_after_return=1" through ASAN_OPTIONS in those tests is a solution. | $ $GCC_BUILD/gcc/xgcc --version | xgcc (GCC) 17.0.0 20260728 (experimental) | | $ $GCC_BUILD/gcc/xgcc -B$GCC_BUILD/gcc/ bitint-1.c \ | -B$GCC_BUILD/x86_64-pc-linux-gnu/libsanitizer/asan/ \ | -L$GCC_BUILD/x86_64-pc-linux-gnu/libsanitizer/asan/.libs \ | -fsanitize=address -O1 | | $ ASAN_OPTIONS=detect_stack_use_after_return=0 ./a.out | ================================================================= | ==102159==ERROR: AddressSanitizer: unknown-crash on address 0x7ffe269e9210 ... Do you have any idea what could be causing this error? Thanks, Clément
