JDK-8272809 : JFR thread sampler SI_KERNEL SEGV in metaspace::VirtualSpaceList::contains
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-08-23
  • Updated: 2022-11-11
  • Resolved: 2021-12-12
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 17 JDK 18 JDK 19
17.0.6Fixed 18 b28Fixed 19Fixed
Related Reports
Relates :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f00c54b9a09, pid=13309, tid=13487
#
# JRE version: Java(TM) SE Runtime Environment (18.0+12) (fastdebug build 18-ea+12-580)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+12-580, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x1960a09]  metaspace::VirtualSpaceList::contains(MetaWordImpl* const*) const+0x9

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

Current thread (0x00007efe1d0ae270):  JfrThreadSampler "JFR Thread Sampler" [stack: 0x00007efe44440000,0x00007efe44540000] [id=13487] _threads_hazard_ptr=0x00007efd9830a7c0, _nested_threads_hazard_ptr_cnt=0

Stack: [0x00007efe44440000,0x00007efe44540000],  sp=0x00007efe4453d3b8,  free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1960a09]  metaspace::VirtualSpaceList::contains(MetaWordImpl* const*) const+0x9
V  [libjvm.so+0xbcb869]  frame::is_interpreted_frame_valid(JavaThread*) const+0x99
V  [libjvm.so+0xbcbe97]  frame::safe_for_sender(JavaThread*)+0x457
V  [libjvm.so+0xf32f1f]  JfrStackTrace::record_thread(JavaThread&, frame&)+0x27f
V  [libjvm.so+0xf4ff4a]  JfrNativeSamplerCallback::call()+0xea
V  [libjvm.so+0xf51118]  JfrThreadSampleClosure::sample_thread_in_native(JavaThread*, JfrStackFrame*, unsigned int)+0xf8
V  [libjvm.so+0xf514cb]  JfrThreadSampleClosure::do_sample_thread(JavaThread*, JfrStackFrame*, unsigned int, JfrSampleType)+0x2db
V  [libjvm.so+0xf54c72]  JfrThreadSampler::task_stacktrace(JfrSampleType, JavaThread**) [clone .constprop.0]+0x2f2
V  [libjvm.so+0xf55bdf]  JfrThreadSampler::run()+0x15f
V  [libjvm.so+0x1885e80]  Thread::call_run()+0x100
V  [libjvm.so+0x1565284]  thread_native_entry(Thread*)+0x104


siginfo: si_signo: 11 (SIGSEGV), si_code: 128 (SI_KERNEL), si_addr: 0x0000000000000000
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/870 Date: 2022-11-10 02:03:18 +0000
10-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/864 Date: 2022-11-08 03:35:43 +0000
08-11-2022

Changeset: 9a1bbaf8 Author: Scott Gibbons <scott.gibbons@intel.com> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2021-12-12 16:08:35 +0000 URL: https://git.openjdk.java.net/jdk18/commit/9a1bbaf8db0e869ab76be8ab1bd0ddeb23693e7e
12-12-2021