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

Ashutosh Mehra asmehra at openjdk.org
Fri Sep 26 20:22:18 UTC 2025


On Fri, 26 Sep 2025 19:03:44 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Documentation for Asan is sparse in general, but it is documented in the header file. I don't know if it was ever not supported - the dlsym'ing I did out of an abundance of caution in case there are older Asan versions around without that functionality.

okay, I see it in the header file here https://github.com/llvm/llvm-project/blob/d2c189bc739c86bea28e9d603f8973f68869a772/compiler-rt/include/sanitizer/asan_interface.h#L270
If there is no official doc, perhaps just add a reference to this header file in the code where this symbol is referenced.

> Prediction of the core file path is difficult (with systemd, you'd need to interpret the sysctl kernel.core-pattern value - we don't even manage to do that correctly in hotspot when displaying the core file dumping message). And with Asan, core file size is a bit unpredictable.

Right, that comes with its own challenges. Scratch that.

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

PR Comment: https://git.openjdk.org/jdk/pull/27446#issuecomment-3340385615


More information about the hotspot-dev mailing list