Skip to content

Fix local unwind handling on Win64 AArch64#1

Draft
foxpas wants to merge 1 commit intomainfrom
codex/fix-aarch64-exception-handling-bug
Draft

Fix local unwind handling on Win64 AArch64#1
foxpas wants to merge 1 commit intomainfrom
codex/fix-aarch64-exception-handling-bug

Conversation

@foxpas
Copy link
Owner

@foxpas foxpas commented Sep 19, 2025

Summary

  • implement g_local_unwind for Win64 AArch64 so local unwinding calls the runtime helper
  • ensure finally blocks execute when exiting try/finally on Windows ARM64
  • enable Win64 SEH macro for Windows AArch64 so the runtime helper is available
  • pass the established frame pointer register to _FPC_local_unwind on Windows ARM64 so unwinding resumes correctly after finally blocks
  • restore the Windows ARM64 context with RtlRestoreContext after calling RtlUnwindEx so control reaches the unwind target instead of returning with a corrupted stack

Testing

  • not run (not requested)

https://chatgpt.com/codex/tasks/task_e_68c9404ef0f0832a8fb3faa4da62c2ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant