-
Notifications
You must be signed in to change notification settings - Fork 13k
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
do not seg fault on stack overflow #109541
Comments
fn main() { |
What do you mean by "report"? It only has this knowledge at runtime, and it does report it at runtime:
|
@umutacar could you post a minimal reproduction of the code you are using? Also rust version and such it looks like you have a literal segfault and not a stack overflow |
What target you are on is especially relevant. |
I am compiling on an Apple computer targeting the Mac I chipset.
here is
|
Hi, my understanding has been that this is due to lack of stack probing support in LLVM on aarch64. But after LLVM 18 upgrade this should have been fixed. However, I'm still able to repro on cargo
|
Horray! Then there is a fix!
LLVM18 is coming with 1.78, not 1.77 :) #120055 I think this should be good to close then, unless @umutacar or @chebbyChefNEQ you have further issues testing with the latest nightly. |
ah! somehow I thought stable is already on 18 haha. should have checked by rustc. yep nightly is fixed |
If anyone is interested it could be good to add the example as a |
Triage: Looks like there already is a test with |
It seems that rust knows when stack overflows
#109533 (comment)
If so, then it would be better for it to report the stack overflow, instead of seg faulting.
The text was updated successfully, but these errors were encountered: