Skip to content

native::start does not know the stack boundary #11131

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

Closed
alexcrichton opened this issue Dec 24, 2013 · 1 comment
Closed

native::start does not know the stack boundary #11131

alexcrichton opened this issue Dec 24, 2013 · 1 comment

Comments

@alexcrichton
Copy link
Member

Once libnative lands, the start function will have no knowledge of the stack boundaries on the main thread. This is far less than ideal because the main thread is no longer protected from stack overflow.

Crates which link to libnative and don't override #[start] will have their main function executed in a separate thread to get around this, but crates using libnative should at least be made aware of this (or we should figure out the current thread's stack size).

@alexcrichton
Copy link
Member Author

Closing in favor of #11359, most of the issue was taken care of in #11360

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