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

Thomas Stuefe stuefe at openjdk.org
Tue Sep 23 14:39:53 UTC 2025


On Tue, 23 Sep 2025 13:46:37 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update address.cpp
>
> Is there some XX flag to enable the new behavior ?
> It would be quite horrible for us to always get a hserr+core when running into an ASAN issue.

@MBaesken I am fine with adding some sort of option, but we need to figure out what the default behavior would be. It would be sad to disable this by default. I see developers using the ASAN build regularly, and typically they don't know which switches exist. Or, they have no possibility to even set switches, since the command line cannot be modified.

Therefore, I'd like to understand better what the problem is. hs-err files are quite small, at least in comparison to typical cores. We can disable core files by default, while hs-err files would still be generated. Would that be a compromise?

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

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


More information about the hotspot-dev mailing list