RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=]

SendaoYan syan at openjdk.org
Sat Dec 14 03:46:48 UTC 2024


On Fri, 13 Dec 2024 20:40:45 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> using both at the same time could lead to strange conflicts between them

The gcc [documentation](https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html) only mention that `-fsanitize=thread` could not use combined with `-fsanitize=address, -fsanitize=leak` or `-fsanitize=address` can not conbined with `-fsanitize=hwaddress`.

Currently jdk do not support `-fsanitize=thread`, which being developd by [JDK-8208520](https://bugs.openjdk.org/browse/JDK-8208520) ?

So I think use `--enable-asan --enable-ubsan` together seems to be OK.

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

PR Comment: https://git.openjdk.org/jdk/pull/22546#issuecomment-2542726949


More information about the core-libs-dev mailing list