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

Thomas Stuefe stuefe at openjdk.org
Sat Sep 27 08:14:14 UTC 2025


On Fri, 26 Sep 2025 20:19:32 GMT, Ashutosh Mehra <asmehra 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.

Thank you, @ashu-mehra ! If you are happy with the current version, mind marking the PR as reviewed?

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

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


More information about the hotspot-dev mailing list