KEMBAR78
Incomplete Symbol parsing in MacOs · Issue #1193 · async-profiler/async-profiler · GitHub
Skip to content

Incomplete Symbol parsing in MacOs #1193

@Baraa-Hasheesh

Description

@Baraa-Hasheesh

Describe the bug

While working on the #1174 issue it was observed that the Async profiler doesn't detect all JVM symbols while parsing the JVM/Java library on the MacOs (symbols_macos.cpp).

For example the JVM_StartThread symbol was never detected in the calls made to the CodeCache::addImport function call on MacOs while it was detected normally on Linux.

Expected vs. actual behavior

Expected: Symbol parsing on MacOs to detect all symbols similar to Linux.
Actual: Some symbols aren't being detected during the loading of Libs on MacOs

Reproduction Steps

To reproduce the issue you can enable the asyncProfilerFirstNoneNativeAppTest test on MacOs & observe the parsed symbols via a simple logging statement on the CodeCache::addImport function

You can find the test here #1192

Additional Information/Context

You may use the changes here #1192 to observe the issue more easily

Async-profiler version

latest

Environment details

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions