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 — Segmentation fault on Azul Zing · Issue #934 · async-profiler/async-profiler

Segmentation fault on Azul Zing #934

New issue
Copy link
New issue
Copy link
Closed
Closed
Segmentation fault on Azul Zing#934
Copy link
Labels
bugzing

Description

@70data
70data
opened on May 22, 2024
Issue body actions

We're using async-profiler.
Frequent JVM crashes with Segmentation fault.

async-profile: v3.0
Java VM: Zing 64-Bit Tiered VM (1.8.0_322-zing_22.02.0.0-b3-product-linux-X86_64, mixed mode)
Command: ./asprof --cstack dwarf -d 30 -f a.html pid

hs_err_pid.log

We tried to follow the answer of the issue, but it didn't work.
#916

Activity

  1. apangin
    added a commit that references this issue on May 23, 2024

    #934: Fix crash on Zing in a native thread

    0c4cd5c
  2. apangin commented on May 23, 2024

    @apangin
    apangin
    on May 23, 2024
    Collaborator
    More actions

    According to hs_err_pid.log, the crash happened in a native thread not managed by the JVM, however, the thread somehow pointed back to VMThread structure.

    I could not reproduce the crash myself, but I pushed a change that should fix the issue. Please verify if it helps.

  3. apangin
    added
    bug
    on May 23, 2024
  4. 70data commented on May 23, 2024

    @70data
    70data
    on May 23, 2024
    ContributorAuthor
    More actions

    The whole call, which involves some interaction between JNI and so, may have similar problems.
    Can you point out the approximate call location in hs_err_pid.log and we can help confirm it.

  5. apangin commented on May 23, 2024

    @apangin
    apangin
    on May 23, 2024
    Collaborator
    More actions

    Sorry, I'm not sure what call you are referring to. In any case, if the JVM no longer crashes or still crashes after the fix, please let me know. Thanks.

  6. 70data commented on May 23, 2024

    @70data
    70data
    on May 23, 2024
    ContributorAuthor
    More actions

    In fact, I would like to ask how to confirm this reason.

    the crash happened in a native thread not managed by the JVM, however, the thread somehow pointed back to VMThread structure.

    No problem. We'll test it and get back to you as soon as possible. Thanks.

  7. perrynzhou commented on May 29, 2024

    @perrynzhou
    perrynzhou
    on May 29, 2024
    More actions

    @apangin hello,i has a problem,is that release?

  8. apangin commented on May 29, 2024

    @apangin
    apangin
    on May 29, 2024
    Collaborator
    More actions

    @perrynzhou The fix has been pushed and will get in the next release.

    In the mean time, you can build the project yourself or use the following prebuild binaries:
    https://profiler.tools/builds/async-profiler-3.0-34a9e135-linux-x64.tar.gz

    Reacted by 千夜
  9. apangin commented on Jun 12, 2024

    @apangin
    apangin
    on Jun 12, 2024
    Collaborator
    More actions

    Closing the issue as resolved. Feel free to reopen if the fix does not work for you.

  10. apangin
    closed this as completedon Jun 12, 2024
  11. 70data commented on Jun 24, 2024

    @70data
    70data
    on Jun 24, 2024
    ContributorAuthor
    More actions

    I'm sorry for not getting back to you sooner.
    After extensive testing, we have confirmed that the issue has been fixed.
    Great job!

    Reacted by Andrei Pangin
  12. wangyummm888 commented on Aug 23, 2024

    @wangyummm888
    wangyummm888
    on Aug 23, 2024
    More actions

    We used the newly provided fix version(https://profiler.tools/builds/async-profiler-3.0-34a9e135-linux-x64.tar.gz) to solve the frequent JVM crashes, but it caused a new problem where thread names were truncated in the generated HTML

    For example, the correct thread name is CounterEngine-9-19, but the new version changes it to CounterEngine-9, causing truncation

    The correct thread name
    screenshot-20240823-144448
    The truncated thread name
    screenshot-20240823-144728

    We tried to solve this issue by using options , but it didn't work

  13. apangin commented on Aug 23, 2024

    @apangin
    apangin
    on Aug 23, 2024
    Collaborator
    More actions

    @wangyummm888 Yes, this is a downside of the fix: since Java thread to platform thread mapping in Zing JVM is not reliable, async-profiler no longer uses it, therefore profiler cannot show full name of a Java thread and shows only a name of a platform thread which is limited to 15 characters on Linux.

    Without a reproducer for the original crash, I don't have much space for experimenting with the fix. If you have a test cases that reproduces the crash, I'll be happy to continue my research.

  14. apangin
    added
    zing
    on Aug 23, 2024
  15. lige955 commented on Oct 28, 2024

    @lige955
    lige955
    on Oct 28, 2024
    More actions

    Hello, may I ask when this issue is expected to be resolved.。

  16. apangin commented on Oct 28, 2024

    @apangin
    apangin
    on Oct 28, 2024
    Collaborator
    More actions

    @lige955 The crash has been already resolved. You may verify this by using a nightly release. If you still observe issues with the recent build, please submit a new bug report.

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

    bugzing

    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.