You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Page table walker in exception handler causes stack overflow on AArch64 and x86_64 debug builds #1925
We are currently reserving 2 additional scratch pages for exception handler, but the measured stack usage peak for debug builds is much larger than that:
In the short term we should increase the reservation to 12 pages, long term the walker code should be reviewed, checked for deep recursion and optimized for stack usage. 40K on arm is unexpected but x86 also doesn't fit using current budget.
Good catch! Definitely we should start by changing the reservation, probably taking account of the fairly large difference between debug and release.
It is possible that something has changed and the walker code is no longer being optimised as well as it should be; the current iterator-based approach is reliant on Rust monomorphise+inline optimisations, and while I checked when I added it that it was being optimised into a tight loop, it is entirely possible that that was brittle.
Activity
syntactically commentedon Oct 12, 2026
Good catch! Definitely we should start by changing the reservation, probably taking account of the fairly large difference between debug and release.
It is possible that something has changed and the walker code is no longer being optimised as well as it should be; the current iterator-based approach is reliant on Rust monomorphise+inline optimisations, and while I checked when I added it that it was being optimised into a tight loop, it is entirely possible that that was brittle.