RFR: 8368365: ASAN errors should produce hs-err files and core dumps [v7]

Thomas Stuefe stuefe at openjdk.org
Mon Sep 29 08:36:15 UTC 2025


> When we run with ASAN enabled and ASAN catches an error, it reports, then stops the JVM. hs-err files and crash dumps at that point would be incredibly useful, though. The ASAN error report itself is seldom enlightening since it only contains native stacks.
> 
> After this patch, the JVM will always produce hs-err files when an ASAN-report happens. It will *only* produce core files if ASAN_OPTIONS `disable_coredump=0` and `abort_on_error=1` and the JVM option `CreateCoredumpOnCrash` had not been disabled (and the limit for core file size is high enough etc, all the usual restrictions on OS level still apply).
> 
> This means that ASAN builds, by default, will continue to *not* generate cores, since ASAN default options inhibit that. See detail in the comments below.
> 
> ---
> 
> Tested on Fedora 42 and Debian 12, both manually and by running the new companion jtreg test.

Thomas Stuefe has updated the pull request incrementally with 104 additional commits since the last revision:

 - 8368715: Serial: Add GCTraceTime for marking from roots subphases during full gc marking
   
   Reviewed-by: fandreuzzi, tschatzl, iwalulya
 - 8366582: Test jdk/jshell/ToolSimpleTest.java failed: provider not found
   
   Reviewed-by: asotona
 - 8368754: runtime/cds/appcds/SignedJar.java log regex is too strict
   
   Reviewed-by: iklam, dholmes
 - 8367795: HeadlessMalfunctionTest may fail due to timeout
   
   Reviewed-by: prr
 - 8368307: Shenandoah: get_next_bit_impl should special case weak and strong mark bits
   
   Reviewed-by: wkemper
 - 8368668: Several vmTestbase/vm/gc/compact tests timed out on large memory machine
   
   Reviewed-by: lmesnik
 - 8366561: Improve documentation for how the -Xlint flag works
   
   Reviewed-by: vromero
 - 8364305: Support AVX10 saturating floating point conversion instructions
   
   Reviewed-by: sviswanathan, sparasa, jbhateja
 - 8365057: Add support for java.util.concurrent lock information to Thread.dump_to_file
   
   Co-authored-by: Alex Menkov <amenkov at openjdk.org>
   Co-authored-by: Alan Bateman <alanb at openjdk.org>
   Reviewed-by: sspitsyn, alanb
 - 8368498: Use JUnit instead of TestNG for jdk_text tests
   
   Reviewed-by: naoto
 - ... and 94 more: https://git.openjdk.org/jdk/compare/e2503954...8412f5bf

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27446/files
  - new: https://git.openjdk.org/jdk/pull/27446/files/e2503954..8412f5bf

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27446&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27446&range=05-06

  Stats: 18580 lines in 510 files changed: 10485 ins; 5552 del; 2543 mod
  Patch: https://git.openjdk.org/jdk/pull/27446.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27446/head:pull/27446

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


More information about the hotspot-dev mailing list