这是indexloc提供的服务,不要输入任何密码
Skip to content

Error not progagated if jattach fails to load asyncProfiler lib #885

@vans239

Description

@vans239

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:

~ $ local-async-profiler/bin/asprof status 5385 
~ $ async-profiler-3.0-linux-x64/bin/asprof status 5385
Profiler is not active

It's much more confusing when you profile:

~ $ async-profiler-3.0-linux-x64/bin/asprof -d 10 5385
Profiling for 10 seconds
Done
--- Execution profile ---
Total samples       : 14
....
~ $  local-async-profiler/bin/asprof status -d 10 5385 
<<empty after 10 seconds>>

In my case root cause is

bin/../lib/libasyncProfiler.so was not loaded.
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by local-async-profilerbin/../lib/libasyncProfiler.so)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions