JDK-8345270 : Test TestEvilSyncBug.java#generational intermittent crash C [libpthread.so.0] pthread_getcpuclockid
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 24
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: linux
  • CPU: aarch64
  • Submitted: 2024-12-01
  • Updated: 2024-12-02
Description
The newly added test gc/shenandoah/TestEvilSyncBug.java#generational intermittent crash on linux-aarch64 with release build and the tested jvm crash caused jtreg test timed out, the test log snippet:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffffb07e0780, pid=3950215, tid=3963665
#
# JRE version: OpenJDK Runtime Environment (24.0) (build 24-internal-28ae281b)
# Java VM: OpenJDK 64-Bit Server VM (24-internal-28ae281b, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, shenandoah gc, linux-aarch64)
# Problematic frame:
# C  [libpthread.so.0+0x10780]  pthread_getcpuclockid+0x0
#
# Core dump will be written. Default location: /tmp/tone/run/jtreg/jt-work/index-297/gc/shenandoah/TestEvilSyncBug_generational/core.3950215
#
# An error report file with more information is saved as:
# /tmp/tone/run/jtreg/jt-work/index-297/gc/shenandoah/TestEvilSyncBug_generational/hs_err_pid3950215.log
#
# If you would like to submit a bug report, please visit:
#   mailto:yansendao.ysd@alibaba-inc.com
#
];
 stderr: []
 exitValue = 134

java.util.concurrent.ExecutionException: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:124)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:193)
	at TestEvilSyncBug.main(TestEvilSyncBug.java:85)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:458)
Comments
Fail probability about: 500/20k
01-12-2024