KEMBAR78
Impossible frames in async-profiler · Issue #1405 · async-profiler/async-profiler · GitHub
Skip to content

Impossible frames in async-profiler #1405

@Baraa-Hasheesh

Description

@Baraa-Hasheesh

Describe the bug

While checking some GHA issues https://github.com/async-profiler/async-profiler/actions/runs/16467343342/job/46547925384?pr=1404

I noticed that sometimes async-profiler might produce impossible stacks

For example on the StackwalkerTests.largeFrame test sometimes produce the following samples on macOS

Java_test_stackwalker_StackGenerator_largeFrame;Java_test_stackwalker_StackGenerator_leafFrame 2
Java_test_stackwalker_StackGenerator_largeFrame;doCpuTask;powl 64
Java_test_stackwalker_StackGenerator_largeFrame;doCpuTask 13

The Java_test_stackwalker_StackGenerator_largeFrame;Java_test_stackwalker_StackGenerator_leafFrame should be impossible as Java_test_stackwalker_StackGenerator_leafFrame is never called from Java_test_stackwalker_StackGenerator_largeFrame

Expected vs. actual behavior

No response

Reproduction Steps

make test TESTS=StackwalkerTests.largeFrame

Additional Information/Context

No response

Async-profiler version

latest

Environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions