GeezerVison is showing github.com — Segmentation fault on Azul Zing · Issue #934 · async-profiler/async-profiler
Segmentation fault on Azul Zing #934DescriptionWe'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 Activityadded a commit that references this issue on May 23, 2024#934: Fix crash on Zing in a native thread apangin commented on May 23, 2024 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. 70data commented 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. apangin commented on May 23, 2024 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. 70data commented 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. perrynzhou commented on May 29, 2024 @apangin hello,i has a problem,is that release? apangin commented on May 29, 2024 apangin commented on Jun 12, 2024 Closing the issue as resolved. Feel free to reopen if the fix does not work for you. 70data commented 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! wangyummm888 commented on Aug 23, 2024 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

The truncated thread name

We tried to solve this issue by using options , but it didn't work apangin commented on Aug 23, 2024 @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. lige955 commented on Oct 28, 2024 Hello, may I ask when this issue is expected to be resolved.。 apangin commented on Oct 28, 2024 @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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|