Skip to content

Fix the micropython stack checker when building with yk.#12

Merged
ltratt merged 1 commit intoykjit:masterfrom
vext01:fix-stack-check
Mar 26, 2026
Merged

Fix the micropython stack checker when building with yk.#12
ltratt merged 1 commit intoykjit:masterfrom
vext01:fix-stack-check

Conversation

@vext01
Copy link
Copy Markdown

@vext01 vext01 commented Mar 26, 2026

The C stack usage is computed by a function that finds the difference between two pointers.

If that function gets a shadow stack, then we break it!

This program would crash in a strange way, now it works:

for i in range(10000):
    if i == 300:
        4 / 0

The C stack usage is computed by a function that finds the difference
between two pointers.

If that function gets a shadow stack, then we break it!

This program would crash in a strange way, now it works:

```python
for i in range(10000):
    if i == 300:
        4 / 0
```
@ltratt ltratt added this pull request to the merge queue Mar 26, 2026
Merged via the queue into ykjit:master with commit 5ce4f29 Mar 26, 2026
2 checks passed
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