-
Enhancement
-
Resolution: Fixed
-
P4
-
11
-
b01
-
aarch64
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8283630 | 11.0.16-oracle | Harold Seigel | P4 | Resolved | Fixed | b01 |
In JDK 11 only, we see errors in runtime/ErrorHandling/ErrorHandler.java. The test induces an artificial (but real) segfault and checks the VMs reaction to it (that the hs-err file is written correctly and contains expected output).
The test does this by reading from `char* p = NULL;`. This is not guaranteed to work, and does not in this case: the process gets a "BPT/Trap" message instead and dies.
This code (`VMError::controlled_crash()`) has been streamlined and rewritten for later releases, and there we consistently use a known non-null, volatile address to invalid memory instead, which seems to work reliably. We should do this in 11 too (without having to downport the reworkings).
The test does this by reading from `char* p = NULL;`. This is not guaranteed to work, and does not in this case: the process gets a "BPT/Trap" message instead and dies.
This code (`VMError::controlled_crash()`) has been streamlined and rewritten for later releases, and there we consistently use a known non-null, volatile address to invalid memory instead, which seems to work reliably. We should do this in 11 too (without having to downport the reworkings).
- backported by
-
JDK-8283630 runtime/ErrorHandling/ErrorHandler.java fails on macOS AArch64 in JDK 11
- Resolved