GeezerVison is showing github.com — Profiling crashes in NMethod::isNMethod with JDK 23-ea · Issue #923 · async-profiler/async-profiler
Profiling crashes in NMethod::isNMethod with JDK 23-ea #923DescriptionI'm using async-profiler with the latest JDK built from git; recently the the JDK started crashing with:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000071cbb0806ecf, pid=928720, tid=928742
#
# JRE version: OpenJDK Runtime Environment (23.0) (build 23-internal-adhoc.daniel.jdk)
# Java VM: OpenJDK 64-Bit Server VM (23-internal-adhoc.daniel.jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libasyncProfiler.so+0x6ecf] NMethod::isNMethod()+0x1f
The crashes started after this commit. I tried profiler versions 2.9 and 3.0, same crash in both cases. I'm using JMH to run the profiler. Reacted by Andreas Woess and Michał Jonko Activitychanged the title [-]Profiling crashes in NMethod::isNMethod[/-] [+]Profiling crashes in NMethod::isNMethod with JDK 23-ea[/+] on May 8, 2024apangin commented on May 8, 2024 The problem is understood. The commit you mentined has changed the size of the HeapBlock header, which was stable for the last 18 years and was hard-coded in async-profiler. Profiler should query the size from VMStructs instead.
I will prepare a fix soon. Reacted by Daniel Jelinski, Tolya Korniltsev and bargitta apangin commented on May 13, 2024 I pushed the fix, please check it if helps.
cstack=vm is still not fully supported on JDK 23, it will be fixed in a separate commit. Otherwise everything should work fine. djelinski commented on May 13, 2024 I checked the CI build and I can confirm that it fixes the crash on 23-ea. Thanks for the quick fix! fmeum commented on Sep 19, 2024 Over at Bazel, which bundles async-profiler, we are trying to update to JDK 23, but face a similar crash to this one with 3.0. I checked that the nightly releases appear to work well, but we need stable (as in, SHA256 hash doesn't change) download locations. A minor release would be really helpful for us. Reacted by Hannes Greule, Peksa and Andrew Kvapil alexander-yakushev commented on Oct 4, 2024 ryantheleach commented on Oct 12, 2024 Thanks for fixing it, would it be possible to cut a release to fix this issue given the release of Java 23? apangin commented on Oct 12, 2024 mr-git commented on Jan 23, 2025 is there an ETA for new release? apangin commented on Jan 23, 2025 Reacted by Mareks Rampāns
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|