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

Jan Kratochvil jkratochvil at openjdk.org
Thu Jun 27 01:51:12 UTC 2024


On Mon, 24 Jun 2024 18:43:51 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Jan Kratochvil has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Change the comment
>>    - suggested by Thomas Stuefe
>
> make/autoconf/jdk-options.m4 line 449:
> 
>> 447:           if test "x$TOOLCHAIN_TYPE" = "xclang"; then
>> 448:             ASAN_CFLAGS="$ASAN_CFLAGS -fsanitize-address-use-after-return=never"
>> 449:           fi
> 
> There's no change being made for the microsoft toolchain.  It seems like the same issues with the fake stack
> should arise there.

So I have tried it in AWS and added the [new comment](https://github.com/openjdk/jdk/pull/19843/commits/08153d9cf2ab8d0721fc1f257f9d662de4814212) about it as MSVC has it off by default.
But I have filed [JDK-8335228](https://bugs.openjdk.org/browse/JDK-8335228) as the MS-Windows build crashes if one explicitly enables `-fsanitize-address-use-after-return` there.

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

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


More information about the build-dev mailing list