Skip to content
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

Consider optionally setting up a signal handler that reports stack buffer overruns more nicely #59

Open
nagisa opened this issue Nov 14, 2021 · 1 comment

Comments

@nagisa
Copy link
Member

nagisa commented Nov 14, 2021

The Rust runtime sets up a signal handler which enables it to produce a nicer message when a stack overflows, however this only works when the guard pages set up by the Rust standard library itself are hit. That is, for the main stack and for the stack of the threads created std::thread.

There may be value in stacker setting up a similar signal handler(s) for the guard pages it sets up by itself, but the functionality likely wants to be made optional (in order to reduce the cost of allocating/deallocating a stack region)

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