JDK-8343334 : JFR crash in JfrEmergencyDump::build_dump_path
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2024-10-31
  • Updated: 2024-11-12
  • Resolved: 2024-11-06
Related Reports
Duplicate :  
Description
When run the testcase 'jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithParallelScavenge.java' on host with AArch64, it can crash with a low probability.

===============================
Stack: [0x0000ffff8b860000,0x0000ffff8ba60000],  sp=0x0000ffff8ba5da80,  free space=2038k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x27b0c]  __strlen_mte+0xc
C  [libc.so.6+0x756e4]  __vsnprintf_internal+0xb0
C  [libc.so.6+0x7576c]  vsnprintf+0x2c
V  [libjvm.so+0x868134]  os::vsnprintf(char*, unsigned long, char const*, std::__va_list)+0x30
V  [libjvm.so+0x685ba8]  jio_vsnprintf+0x34
V  [libjvm.so+0x685c44]  jio_snprintf+0x78
V  [libjvm.so+0x5fd624]  JfrEmergencyDump::build_dump_path(char const*)+0xe0
V  [libjvm.so+0x61e634]  JfrRepository::open_chunk(bool)+0x98
V  [libjvm.so+0x61a860]  JfrRecorderService::prepare_for_vm_error_rotation()+0x90
V  [libjvm.so+0x61db50]  JfrRecorderService::rotate(int)+0x260
V  [libjvm.so+0x5fdc18]  JfrEmergencyDump::on_vm_shutdown(bool)+0x264
V  [libjvm.so+0x5e2210]  before_exit(JavaThread*)+0x124
V  [libjvm.so+0x9be134]  Threads::destroy_vm()+0x1cc
V  [libjvm.so+0x64901c]  jni_DestroyJavaVM+0x80
C  [libjli.so+0x2e44]  JavaMain+0x284
C  [libpthread.so.0+0x7f74]  start_thread+0xd0
C  [libc.so.6+0x28f9c]  thread_start+0xc
Comments
Resolved via backport of JDK-8261020
12-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk8u-dev/pull/599 Date: 2024-10-31 03:21:26 +0000
31-10-2024