JDK-8357087 : JfrThreadSampler crash: SEGV in PcDescCache::find_pc_desc
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 25
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-05-16
  • Updated: 2025-05-19
  • Resolved: 2025-05-19
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.
Other
tbdResolved
Related Reports
Duplicate :  
Duplicate :  
Description
Test: applications/runthese/RunThese8H.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0fe50b822a, pid=2998048, tid=2998141
#
# JRE version: Java(TM) SE Runtime Environment (25.0+23) (fastdebug build 25-ea+23-LTS-2796)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+23-LTS-2796, mixed mode, tiered, compressed class ptrs, z gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x169d22a]  PcDescCache::find_pc_desc(int, bool)+0x2a
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/core.2998048)
#
# JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/hs_err_pid2998048.jfr
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Xbootclasspath/a:/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/tmp -XX:+UseZGC -XX:MaxRAMPercentage=50 -Djava.net.preferIPv6Addresses=false -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener -XX:CompileCommand=memlimit,*.*,0 -Xlog:monitorinflation=info:file=../monitorinflation.log::filesize=500m -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/java.io.tmpdir -Duser.home=/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/user.home -agentpath:/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+23-2796/linux-x64-debug.test/hotspot/jtreg/native/libJvmtiStressModule.so -Xverify:all -javaagent:redefineagent.jar -XX:NativeMemoryTracking=detail -Djdk.test.lib.random.seed=663762501488102370 applications.kitchensink.process.stress.Main /opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S300043/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c7762a77-129a-4f3e-b857-6d9d178013dd/runs/e7d2d673-61cc-446e-823d-b3066469caf1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese8H_java/scratch/0/kitchensink.final.properties

Host: AMD EPYC 7J13 64-Core Processor, 12 cores, 23G, Oracle Linux Server release 8.10
Time: Thu May 15 14:18:02 2025 UTC elapsed time: 6859.155432 seconds (0d 1h 54m 19s)

---------------  T H R E A D  ---------------

Current thread (0x00007f0f39086d30):  JfrThreadSampler "JFR Thread Sampler" [id=2998141, stack(0x00007f0f12cee000,0x00007f0f12dee000) (1024K)] _threads_hazard_ptr=0x00007f0e940fd180, _nested_threads_hazard_ptr_cnt=0

Stack: [0x00007f0f12cee000,0x00007f0f12dee000],  sp=0x00007f0f12deb348,  free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x169d22a]  PcDescCache::find_pc_desc(int, bool)+0x2a  (pcDesc.hpp:57)
V  [libjvm.so+0x112c83b]  JfrVframeStream::next_vframe()+0x75b  (nmethod.hpp:360)
V  [libjvm.so+0x112da89]  JfrStackTrace::record_async(JavaThread*, frame const&)+0x1a9  (jfrStackTrace.cpp:273)
V  [libjvm.so+0x114e9c4]  OSThreadSampler::protected_task(SuspendedThreadTaskContext const&)+0xb4  (jfrThreadSampler.cpp:193)
V  [libjvm.so+0x190b9d7]  SuspendedThreadTask::internal_do_task()+0x47  (signals_posix.cpp:1840)
V  [libjvm.so+0x1a2b841]  SuspendedThreadTask::run()+0x11  (suspendedThreadTask.cpp:29)
V  [libjvm.so+0x114eb7a]  JfrThreadSampleClosure::sample_thread_in_java(JavaThread*, JfrStackFrame*, unsigned int)+0xba  (jfrThreadSampler.cpp:209)
V  [libjvm.so+0x114f983]  JfrThreadSampleClosure::do_sample_thread(JavaThread*, JfrStackFrame*, unsigned int, JfrSampleType)+0x2f3  (jfrThreadSampler.cpp:407)
V  [libjvm.so+0x1154874]  JfrThreadSampler::task_stacktrace(JfrSampleType, JavaThread**) [clone .constprop.1]+0x4c4  (jfrThreadSampler.cpp:626)
V  [libjvm.so+0x1155434]  JfrThreadSampler::run()+0x224  (jfrThreadSampler.cpp:560)
V  [libjvm.so+0x1aa9a76]  Thread::call_run()+0xb6  (thread.cpp:224)
V  [libjvm.so+0x17386d8]  thread_native_entry(Thread*)+0x128  (os_linux.cpp:870)

siginfo: si_signo: 11 (SIGSEGV), si_code: 128 (SI_KERNEL), si_addr: 0x0000000000000000
Comments
This is the canonical example of the failure mode that JFR Cooperative Sampling will resolve.
19-05-2025

This seems familiar but I couldn't locate an open JBS issue.
16-05-2025