RFR: 8334763: --enable-asan: assert(_thread->is_in_live_stack((address)this)) failed: not on stack? [v3]
Thomas Stuefe
stuefe at openjdk.org
Mon Jun 24 14:21:14 UTC 2024
On Mon, 24 Jun 2024 14:14:36 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
>> 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.
Curious. Thanks for the digging, Jan!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19843#discussion_r1651122333
More information about the build-dev
mailing list