RFR: 8360791: [ubsan] Adjust signal handling when using clang [v2]

Matthias Baesken mbaesken at openjdk.org
Mon Jun 30 07:02:31 UTC 2025


> 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

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  Remove the clang check

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26015/files
  - new: https://git.openjdk.org/jdk/pull/26015/files/8fedbca0..cd68ac5b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26015&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26015&range=00-01

  Stats: 5 lines in 1 file changed: 0 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/26015.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26015/head:pull/26015

PR: https://git.openjdk.org/jdk/pull/26015


More information about the build-dev mailing list