Skip to content

Fix stop callback actions in forced unwind - #61

Merged
nbdd0121 merged 1 commit into
nbdd0121:trunkfrom
aptgetgit:fix-forced-unwind-stop-callback-actions
Jul 20, 2026
Merged

Fix stop callback actions in forced unwind#61
nbdd0121 merged 1 commit into
nbdd0121:trunkfrom
aptgetgit:fix-forced-unwind-stop-callback-actions

Conversation

@aptgetgit

Copy link
Copy Markdown
Contributor

Bug:
The stop function always gets the END_OF_STACK unwind action and never gets
CLEANUP_PHASE. Additionally, this renders the frame.is_none() block just
below it dead code.

libgcc and libunwind both pass _UA_FORCE_UNWIND | _UA_CLEANUP_PHASE
on every frame and add _UA_END_OF_STACK only at the actual end.

Fix:
This fix replicates libgcc and libunwind behaviour for the stop callback.

@nbdd0121
nbdd0121 merged commit ab5f9d1 into nbdd0121:trunk Jul 20, 2026
6 checks passed
@nbdd0121

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants