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

fix duplicated leaf frame for dwarf unwinding #2811

Merged
merged 1 commit into from
May 21, 2024

Conversation

umanwizard
Copy link
Contributor

We already record the leaf frame in set_initial_state, so we don't need to record it again during the main unwinding loop.

The FP unwinder handles this by recording the frame that was reached in each iteration of the loop, whereas the DWARF unwinder records the frame from the previous iteration of the loop. This PR changes the DWARF unwinder to match the behavior of the FP unwinder, fixing the issue.

FYI @metalmatze

@umanwizard umanwizard requested a review from a team as a code owner May 21, 2024 13:52
Copy link
Member

@metalmatze metalmatze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@brancz brancz merged commit 4967d09 into parca-dev:main May 21, 2024
11 of 12 checks passed
@brancz brancz mentioned this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants