GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #923

New issue
Copy link
New issue
Copy link
Closed
Closed
Profiling crashes in NMethod::isNMethod with JDK 23-ea#923
Copy link
Labels
bug

Description

@djelinski
djelinski
opened on May 6, 2024
Issue body actions

I'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

Activity

  1. apangin
    changed the title [-]Profiling crashes in NMethod::isNMethod[/-] [+]Profiling crashes in NMethod::isNMethod with JDK 23-ea[/+] on May 8, 2024
  2. apangin
    added
    bug
    on May 8, 2024
  3. apangin commented on May 8, 2024

    @apangin
    apangin
    on May 8, 2024
    Collaborator
    More actions

    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
  4. apangin
    added a commit that references this issue on May 13, 2024

    #923: Adjust VMStructs for JDK 23

    048cafa
  5. apangin commented on May 13, 2024

    @apangin
    apangin
    on May 13, 2024
    Collaborator
    More actions

    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.

  6. djelinski commented on May 13, 2024

    @djelinski
    djelinski
    on May 13, 2024
    Author
    More actions

    I checked the CI build and I can confirm that it fixes the crash on 23-ea. Thanks for the quick fix!

    Reacted by Andrei Pangin
  7. djelinski
    closed this as completedon May 13, 2024
  8. apangin
    added a commit that references this issue on May 24, 2024

    #923: cstack=vm support for JDK 23+

    34a9e13
  9. fmeum commented on Sep 19, 2024

    @fmeum
    fmeum
    on Sep 19, 2024
    More actions

    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
  10. alexander-yakushev commented on Oct 4, 2024

    @alexander-yakushev
    alexander-yakushev
    on Oct 4, 2024
    More actions

    Another datapoint – https://github.com/clojure-goes-fast/clj-async-profiler crashes with the same error when on async-profiler 3.0 and JDK23. Nightly build appears to work well.

  11. ryantheleach commented on Oct 12, 2024

    @ryantheleach
    ryantheleach
    on Oct 12, 2024
    More actions

    Thanks for fixing it, would it be possible to cut a release to fix this issue given the release of Java 23?

  12. apangin commented on Oct 12, 2024

    @apangin
    apangin
    on Oct 12, 2024
    Collaborator
    More actions

    @ryantheleach New release is being prepared. In the meantime, you may take a pre-release version.

    Reacted by Ryan Leach
  13. mr-git commented on Jan 23, 2025

    @mr-git
    mr-git
    on Jan 23, 2025
    More actions

    is there an ETA for new release?

  14. apangin commented on Jan 23, 2025

    @apangin
    apangin
    on Jan 23, 2025
    Collaborator
    More actions

    @mr-git Answered here

    Reacted by Mareks Rampāns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.