JDK-8371012 : Test crashed with SIGSEGV in JfrStackTrace::equals
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 26
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-10-31
  • Updated: 2025-12-01
  • Resolved: 2025-11-21
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 :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001074f6224, pid=59795, tid=25347
#
# JRE version: Java(TM) SE Runtime Environment (26.0+23) (fastdebug build 26-ea+23-2282)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-ea+23-2282, mixed mode, tiered, compressed oops, compressed class ptrs, parallel gc, bsd-aarch64)
# Problematic frame:
# V  [libjvm.dylib+0x9a2224]  JfrStackTrace::equals(JfrStackTrace const&) const+0x18
#
# Core dump will be written. Default location: core.59795
#
# JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid59795.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:/System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/wb.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=5 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/25/37/bundles/macos-aarch64/jdk-25_macos-aarch64_bin.tar.gz/jdk-25.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/tmp -XX:+UseParallelGC -XX:+UseNUMA -XX:MaxRAMPercentage=50 -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError -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 --enable-preview --add-exports=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/java.io.tmpdir -Duser.home=/System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/user.home -agentpath:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-26+23-2282/macosx-aarch64-debug.test/hotspot/jtreg/native/libJvmtiStressModule.dylib -Xverify:all -javaagent:redefineagent.jar -XX:NativeMemoryTracking=detail -Djdk.test.lib.random.seed=1195044750 applications.kitchensink.process.stress.Main /System/Volumes/Data/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S19210/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c9fd69d-6c4b-4773-96d0-ba38d450a604/runs/1615f564-18ae-4b6a-816e-d51991120a3b/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/kitchensink.final.properties

Host: "Mac16,10" arm64, 10 cores, 16G, Darwin 24.6.0, macOS 15.7 (24G222)
Time: Fri Oct 31 02:44:54 2025 GMT elapsed time: 1722.358122 seconds (0d 0h 28m 42s)

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

Current thread (0x000000011e023410):  JavaThread "ExceptionStressModule"        [_thread_in_vm, id=25347, stack(0x000000016d61c000,0x000000016d81f000) (2060K)]

Stack: [0x000000016d61c000,0x000000016d81f000],  sp=0x000000016d81cf30,  free space=2051k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x9a2224]  JfrStackTrace::equals(JfrStackTrace const&) const+0x18
V  [libjvm.dylib+0x9a45cc]  JfrStackTraceRepository::add_trace(JfrStackTrace const&)+0xd4
V  [libjvm.dylib+0x9a484c]  JfrStackTraceRepository::record_for_leak_profiler(JavaThread*, int)+0xd8
V  [libjvm.dylib+0xeb6704]  ObjectSampler::sample(HeapWordImpl**, unsigned long, JavaThread*)+0x264
V  [libjvm.dylib+0x92e1e0]  JfrAllocationTracer::JfrAllocationTracer(Klass const*, HeapWordImpl**, unsigned long, bool, JavaThread*)+0x44
V  [libjvm.dylib+0x223eec]  AllocTracer::send_allocation_in_new_tlab(Klass*, HeapWordImpl**, unsigned long, unsigned long, JavaThread*)+0x44
V  [libjvm.dylib+0xdcece8]  MemAllocator::Allocation::notify_allocation_jfr_sampler()+0x178
V  [libjvm.dylib+0xdcf710]  MemAllocator::allocate() const+0xe4
V  [libjvm.dylib+0x4f4f64]  CollectedHeap::array_allocate(Klass*, unsigned long, int, bool, JavaThread*)+0x6c
V  [libjvm.dylib+0x11c259c]  TypeArrayKlass::allocate_common(int, bool, JavaThread*)+0xf4
V  [libjvm.dylib+0x91db50]  BacktraceBuilder::expand(JavaThread*)+0x1ac
V  [libjvm.dylib+0x91d81c]  BacktraceBuilder::BacktraceBuilder(JavaThread*)+0xbc
V  [libjvm.dylib+0x902024]  java_lang_Throwable::fill_in_stack_trace(Handle, methodHandle const&, JavaThread*)+0x1d4
V  [libjvm.dylib+0x9034f8]  java_lang_Throwable::fill_in_stack_trace(Handle, methodHandle const&)+0xa0
V  [libjvm.dylib+0xa5e5f8]  JVM_FillInStackTrace+0x1e8
C  [libjava.dylib+0x8900]  Java_java_lang_Throwable_fillInStackTrace+0x14
J 726  java.lang.Throwable.fillInStackTrace(I)Ljava/lang/Throwable; java.base@26-ea (0 bytes) @ 0x000000013fafa460 [0x000000013fafa3c0+0x00000000000000a0]
J 256357 c2 applications.kitchensink.process.stress.modules.KitchensinkTestRuntimeException.<init>()V (5 bytes) @ 0x000000013fb96170 [0x000000013fb96000+0x0000000000000170]
J 259710 c1 applications.kitchensink.process.stress.modules.ExceptionStressModule.testThrowRuntime()V (10 bytes) @ 0x000000013917d410 [0x000000013917d300+0x0000000000000110]
j  applications.kitchensink.process.stress.modules.ExceptionStressModule.runOneIteration()V+41
j  applications.kitchensink.process.stress.modules.ExceptionStressModule.execute()V+20
j  applications.kitchensink.process.stress.modules.StressModule.run()V+118
j  java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@26-ea
j  java.lang.Thread.run()V+19 java.base@26-ea
v  ~StubRoutines::Stub Generator call_stub_stub 0x000000013f53449c
V  [libjvm.dylib+0x8eb0b4]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x444
V  [libjvm.dylib+0x8e9c6c]  JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x1c8
V  [libjvm.dylib+0x8e9e20]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x84
V  [libjvm.dylib+0xa828a8]  thread_entry(JavaThread*, JavaThread*)+0x160
V  [libjvm.dylib+0x922d00]  JavaThread::thread_main_inner()+0x1d0
V  [libjvm.dylib+0x117e184]  Thread::call_run()+0xf0
V  [libjvm.dylib+0xedafac]  thread_native_entry(Thread*)+0x138
C  [libsystem_pthread.dylib+0x6bc8]  _pthread_start+0x88
Comments
[~mgronlun] Please note that issues closed as duplicates should go directly to 'closed', not 'resolved'. See https://openjdk.org/guide/#resolving-or-closing-an-issue for more information.
23-11-2025

Apple has recently acknowledged and fixed a bug in their malloc() implementation of macos. Details of that are in JDK-8350455. They fixed it in macos 26 and have noted that it won't be backported to older releases of macos.
21-11-2025

I believe it is the same crash that was reported here: https://github.com/adoptium/adoptium-support/issues/1375#issuecomment-3532716695
17-11-2025