Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target application crashes during profiling on M1 macbook #853

Closed
gladko opened this issue Nov 30, 2023 · 5 comments
Closed

Target application crashes during profiling on M1 macbook #853

gladko opened this issue Nov 30, 2023 · 5 comments
Labels

Comments

@gladko
Copy link

gladko commented Nov 30, 2023

trying to profile same simplest app as described in #852 but a little beat longer. 20 seconds instead of 5.
Target app is started from intelliJ/ Gradle runner

Results: target app crashes.
hs_err_pid32493.log

Also tried to attach async-profiler to ZuluMissionControl and profile it. ZMC crashed.
hs_err_pid26660.log

@apangin
Copy link
Collaborator

apangin commented Nov 30, 2023

This is the same issue as #817, but now with JDK 11.0.21.

I submitted the JDK bug JDK-8321116. I'll see if I can make a workaround in the profiler.

@apangin
Copy link
Collaborator

apangin commented Nov 30, 2023

The workaround is to use JDK <=11.0.20 or >=17.0.9

@gladko
Copy link
Author

gladko commented Nov 30, 2023

I'm using JDK 11.0.14.
Will try 17. Thanks.

@apangin
Copy link
Collaborator

apangin commented Nov 30, 2023

Both hs_err logs indicate you're running JDK 11.0.21+9:

# JRE version: OpenJDK Runtime Environment Zulu11.68+17-CA (11.0.21+9) (build 11.0.21+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.68+17-CA (11.0.21+9-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# v  ~StubRoutines::SafeFetchN

There is no such issue with JDK 11.0.14. If you happen to see a crash with 11.0.14 - please send a relevant crash dump. Thanks.

@gladko gladko closed this as completed Dec 1, 2023
apangin added a commit that referenced this issue Dec 1, 2023
@apangin
Copy link
Collaborator

apangin commented Dec 1, 2023

I pushed the workaround for the bug in async-profiler.
Now it should work fine will all versions of JDK 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants