RFR: 8334763: --enable-asan: assert(_thread->is_in_live_stack((address)this)) failed: not on stack? [v3]

Jan Kratochvil jkratochvil at openjdk.org
Mon Jun 24 14:17:13 UTC 2024


On Mon, 24 Jun 2024 14:04:15 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> Jan Kratochvil has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Revert "Implement address-use-after-return"
>>   
>>   This reverts commit 7e089829f1ebf3d4e5aafe0934bd18db0234136b.
>
> make/autoconf/jdk-options.m4 line 448:
> 
>> 446:           if test "x$TOOLCHAIN_TYPE" = "xclang"; then
>> 447:             ASAN_CFLAGS="$ASAN_CFLAGS -fsanitize-address-use-after-return=never"
>> 448:           fi
> 
> Curious, the other ASAN options work across clang and GCC? Only use-after-return requires different flags for GCC and clang?

Most of the options are compatible, for example these (a subset): `-fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment`
But compile-time `use-after-return` setting is not. There are only 8 gcc `--param` `asan-*` keywords, I do not know why.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19843#discussion_r1651116823


More information about the build-dev mailing list