-
Notifications
You must be signed in to change notification settings - Fork 816
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
Error not progagated if jattach fails to load asyncProfiler lib #885
Comments
It works as expected for me.
|
Build host (Fedora 28 ):
Remote host:
Is there anything else what I can provide? |
Thanks. The most important piece here is the JVM version. Agent loading has been significantly refactored in JDK 21 as a result of JDK-8307478 and JDK-8257967. As a consequence of this refactoring, the protocol of reporting errors in Dynamic Attach has been changed, intentionally or not. I suspect this is a JVM bug, but need to investigate further.
Note that Dynamic Attach now reports the code '0', no matter if the library load was successful or not. |
I pushed a workaround. Please check if it works for you. |
Thanks. Asprof now fails as expected.
|
Submitted a JBS issue: JDK-8325530. |
I built an async-profiler from sources (there was quite long period of nice features on master without releases)
When I try to use
asprof
it fails to execute action, but dodesn't show any error.Example with
status
:It's much more confusing when you profile:
In my case root cause is
The text was updated successfully, but these errors were encountered: