-
Bug
-
Resolution: Fixed
-
P2
-
21, 22
-
b02
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321919 | 22 | Jorn Vernee | P2 | Resolved | Fixed | b28 |
This behavior was introduced as pat of: https://bugs.openjdk.org/browse/JDK-8191278
But, the original fix was not applied to Unsafe_SetMemory0. Hence, it is possible to get a SIGBUS VM crash when using setMemory through e.g. MemorySegment::fill. (See attached test changes):
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f4f601afe6c, pid=30985, tid=31010
#
# JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-2023-11-28-1136385.jvernee...)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-2023-11-28-1136385.jvernee..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libc.so.6+0x18ee6c]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/jvernee/jdk/open/build/linux-x64-debug/test-support/jtreg_test_hotspot_jtreg_runtime_Unsafe_InternalErrorTest_java/scratch/0/core.30985)
#
- backported by
-
JDK-8321919 Unsafe_SetMemory0 is not guarded
-
- Resolved
-
- relates to
-
JDK-8322163 runtime/Unsafe/InternalErrorTest.java fails on Alpine after JDK-8320886
-
- Resolved
-
-
JDK-8324734 Relax too-strict assert(VM_Version::supports_evex()) in Assembler::locate_operand()
-
- Resolved
-
-
JDK-8191278 MappedByteBuffer bulk access memory failures are not handled gracefully
-
- Closed
-
-
JDK-8335238 multiple hotspot jtreg tests hang due to the sigbus error on x86 linux (Ubuntu i386) after JDK-8320886
-
- Open
-
- links to
-
Commit openjdk/jdk22/9f0469b9
-
Commit openjdk/jdk/ce4b257f
-
Review openjdk/jdk22/8
-
Review openjdk/jdk/16848