JDK-8207832 : serviceability/sa/ClhsdbCDSCore.java failed with java.lang.Error: Couldn't find core file location in:
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,12
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2018-07-19
  • Updated: 2023-12-12
  • Resolved: 2018-08-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12 JDK 8
11.0.7-oracleFixed 12 b07Fixed 8u411Fixed
Related Reports
Relates :  
Sub Tasks
JDK-8208092 :  
Description
----------System.err:(55/9776)----------
java.lang.Error: Couldn't find core file location in: '#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd39387bc38, pid=14294, tid=14295
#
# JRE version: Java(TM) SE Runtime Environment (12.0) (fastdebug build 12-internal+0-jdk12-jdk.90)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 12-internal+0-jdk12-jdk.90, mixed mode, sharing, tiered, compressed oops, parallel gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x1830c38]  Unsafe_PutInt+0x3a8
#
# Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S367215/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d617cfd4-1208-48c4-81f2-7042c4205518/runs/600eb851-d51d-4160-a3d7-068321a2a126/testoutput/jtreg/JTwork/scratch/3/core.%p
#
# An error report file with more information is saved as:
# /scratch/opt/mach5/mesos/work_dir/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S367215/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d617cfd4-1208-48c4-81f2-7042c4205518/runs/600eb851-d51d-4160-a3d7-068321a2a126/testoutput/jtreg/JTwork/scratch/3/hs_err_pid14294.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 14295
Dumping core ...
sh: line 1: 14294 Aborted                 (core dumped) /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.90/linux-x64-debug.jdk/jdk-12/fastdebug/bin/java -cp /scratch/opt/mach5/mesos/work_dir/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S367215/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d617cfd4-1208-48c4-81f2-7042c4205518/runs/600eb851-d51d-4160-a3d7-068321a2a126/testoutput/jtreg/JTwork/classes/1/serviceability/sa/ClhsdbCDSCore.d:/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.90/src.full/open/test/hotspot/jtreg/serviceability/sa:/scratch/opt/mach5/mesos/work_dir/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S367215/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d617cfd4-1208-48c4-81f2-7042c4205518/runs/600eb851-d51d-4160-a3d7-068321a2a126/testoutput/jtreg/JTwork/classes/1/test/lib:/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.90/src.full/open/test/lib:/scratch/opt/mach5/mesos/work_dir/jib-master/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-SNAPSHOT-distribution.zip/jib-3.0-SNAPSHOT-distribution/lib/jib-3.0-SNAPSHOT.jar:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b12/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b12/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=6 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseNUMA -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=ArchiveForClhsdbCDSCore.jsa -XX:+CreateCoredumpOnCrash -Xshare:auto -XX:+ProfileInterpreter --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED CrashApp
'
	at ClhsdbCDSCore.main(ClhsdbCDSCore.java:128)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:834)
Comments
Fix request This patch applies with fuzz and fixes a bug.It worked in our nightly jdk11u tests. It should be ported to jdk11u
13-12-2019

No failures observed in CI in the past 3 months. Verified.
05-01-2019

URL: http://hg.openjdk.java.net/jdk/jdk/rev/45d1f2ec5342 User: iklam Date: 2018-08-16 04:42:35 +0000
16-08-2018

The core-pattern handling code was added by JDK-8059586
16-08-2018

On one of the hosts that failed: $ cat /proc/sys/kernel/core_pattern core.%p The Linux version of os::get_core_path needs to convert the %p to the process id.
14-08-2018

The problem is ClhsdbCDSCore.getCoreFileLocation is unable to process the "%p" in the output # Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S367215/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d617cfd4-1208-48c4-81f2-7042c4205518/runs/600eb851-d51d-4160-a3d7-068321a2a126/testoutput/jtreg/JTwork/scratch/3/core.%p %p should be substituted with the process's pid, but somehow has not been substituted by VMError::record_coredump_status(), or one of its callers.
14-08-2018

All of the failures linked to this bug are Linux-X64 failures (so far).
23-07-2018