JDK-8368365 : ASAN errors should produce hs-err files and core dumps
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-09-23
  • Updated: 2025-09-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26Unresolved
Related Reports
Relates :  
Relates :  
Description
ASAN errors would be a lot more useful if they came with hs-err files. ASAN allows user callbacks into error report generation. We should use this in order to get both ASAN error reports and hs-err files+core dumps.

Note:

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 - by default - ASAN builds will *not* generate cores, since ASAN default options inhibit that by setting `disable_coredump=1` and `abort_on_error=0`;



Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27446 Date: 2025-09-23 07:37:12 +0000
23-09-2025