Skip to content

uxnds can crash on stack overflow #29

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

Open
danstowell opened this issue Mar 17, 2025 · 0 comments
Open

uxnds can crash on stack overflow #29

danstowell opened this issue Mar 17, 2025 · 0 comments

Comments

@danstowell
Copy link

Hi - I believe that uxnds 0.5.2 can crash on a stack overflow, even though "uxn stacks are circular" (which I think means they shouldn't overflow).

The issue was found using the "linf_land" demo in this gist, which worked fine on the desktop SDL VM. On a Nintendo DSi XL running uxnds or uxnds_debug, the demo crashed after about 30 seconds with "Guru Meditation Error". That's with the January version of my code (the first commit to that gist). The current version of that gist doesn't crash, and the only difference is to add a single POP which fixes my bug of having one leftover value per screen-refresh. (There was a single #01 left on the stack each time.)

(Discussion on Mastodon here)

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

No branches or pull requests

1 participant