On Fri, 27 Jun 2025 09:30:19 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> A couple of tests e.g. VendorInfoPluginsTest but also some Hotspot like > runtime/ErrorHandling/CreateCoredumpOnCrash.java put (write) to special > addresses like 0 to provoke crashs. > However this does not work well with ubsan-enabled binaries on the clang > based platforms (macOS, AIX). > The mentioned tests generate a SIGSEGV. > > Some other tests generate a SIGBUS, e.g. > > runtime/memory/ReserveMemory.java > runtime/memory/ReadFromNoaccessArea.java > > and this leads to similar issues with ubsan-enabled binaries. > > We should adjust the signal handling with the sanitizer options, how to do > this is documented here : > https://github.com/google/sanitizers/wiki/SanitizerCommonFlags This pull request has now been integrated. Changeset: aeca49e4 Author: Matthias Baesken <mbaes...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/aeca49e43fab951c2031895fee32703fb4a19524 Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod 8360791: [ubsan] Adjust signal handling Reviewed-by: ihse, lucy ------------- PR: https://git.openjdk.org/jdk/pull/26015