-
Notifications
You must be signed in to change notification settings - Fork 83
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
Stack probe #29
Comments
thanks for the link! I check the |
I may not be understanding, but if it has to be called "in the user's code" then couldn't the |
@vitiral: |
I feel the big issue with Is it possible to prevent undefined behavior and instead panic... or even abort? |
yes, it's possible to add a stack guard page for each coroutine. And this would need an extra one page memory allocated. for most cases this is not a big issue which I preferred to add the behavior in future. if stack overflow detected, OS will kill the program with a segment fault(maybe with better output by rust, this is not a UB, I think) just like normal thread stack overflow implemented by rust. I don't think we can have a panic if stack overflow happened, when panic happened, it will need more stack which would make things worse. If we are using guard page, there is no place to put the panic code, rust run-time takes over the action for stack overflow. |
cool, thanks for the response! I think it makes sense for Thanks! |
I think this is a serious issue that prevent people to use may in production.People are not afraid of panic but undefined. 😄 Do you have any plan to fix this issue? |
Sorry about this delay. I have a solution. But not implement it. You are right, we should have it as soon as posdible🙀
发自我的 iPhone
在 2019年4月23日,10:36,dennis zhuang <[email protected]<mailto:[email protected]>> 写道:
I think this is a serious issue that prevent people to use may in production.People are not afraid of panic but undefined. 😄
Do you have any plan to fix this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#29 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADLGBK6FH5O2QTGQ777CJ7LPRZY3NANCNFSM4EMWIPNA>.
|
now the generator lib use guarded stack, may will automatically has the desired behavior. |
Hi.
To have better safety, could we use guard pages and stack probes in
may
?I'm not sure it's possible, just asking.
Thanks.
The text was updated successfully, but these errors were encountered: