Skip to content

Add hardware stack overflow checking to core and sys #5158

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
earlephilhower opened this issue Sep 21, 2018 · 0 comments
Open

Add hardware stack overflow checking to core and sys #5158

earlephilhower opened this issue Sep 21, 2018 · 0 comments
Assignees

Comments

@earlephilhower
Copy link
Collaborator

earlephilhower commented Sep 21, 2018

It is possible to set a hardware breakpoint that will cause a fault and stack dump when the stack grows beyond its limits. This is preferable to the current behavior, which is "crash randomly some time later" should the stack grow into the heap (or into the system stack).

A couple gists should help get it started:
<ignore this one, it doesn't have the GCC register hints>https://gist.github.com/earlephilhower/f9f8fa2420ca03b82395da142ad5fc08
https://gist.github.com/earlephilhower/6c00bccb2dfa4c09ef05b1f091e6e763

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

No branches or pull requests

2 participants