RFR: JDK-8296906: VMError::controlled_crash crashes with wrong code and address [v4]

David Holmes dholmes at openjdk.org
Thu Nov 17 02:46:33 UTC 2022


On Mon, 14 Nov 2022 06:37:38 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> test/hotspot/jtreg/runtime/ErrorHandling/HsErrFileUtils.java line 15:
>> 
>>> 13: 
>>> 14:         // extract hs-err file
>>> 15:         String hs_err_file = output.firstMatch("# *(\\S*hs_err_pid\\d+\\.log)", 1);
>> 
>> I'm not sure this is going to be useful in the way you are trying to use it. This will show the original path to the hs_err file at the time it is created. But jtreg can move things around in the final test result output and place the hs_err file somewhere else.
>
> We use this pattern in a number of places, e.g. in BadNativeStackInErrorHandlingTest and SafeFetchInErrorHandlingTest.java. Seems to work ok so far.

hmm - okay. I'm surprised.

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

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


More information about the hotspot-dev mailing list