-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE: stack overflow #117831
Comments
What if you pass |
Still overflows unfortunately
|
|
I have tried stable, beta, nightly and none of them stack overflow. With a04d56b I get a SO 100% of the time regardless of -Zparse-only I also tried a debug-assertion build which is 1-2 days old and saw no stack overflow there, I can update it and try to see if I can see anything interesting with gdb there |
a04d56b built with debug assertions does not stack overflow for me ¯_(ツ)_/¯ |
Does varying the number of curlies affect the bisection results? |
fwiw, on x86_64-apple-darwin, with 4000 curly-pairs instead of 1000, it crashes with a stack overflow at least as far back as 2019-01-01 |
I can take away a couple of {}s and it stops SOing on a04d56b but adding more than 50 pairs or so on nightly does not suddenly trigger the SO from what I see |
While the stack trace says otherwise, I assume this has to do with the fact that My PR added & removed some function calls & closures and apparently in total this resulted in a faster growing stack. That's my explanation. I'm pretty sure that I've seen at least on super similar issue on this issue tracker (one which hasn't been fixed yet). |
#107219 kinda |
Update: The code from the issue description which contains 1000 pairs of curly braces no longer overflows but updating it to e.g. 1077 pairs does still lead to one. Of course, this issue should be kept open. I will experiment with sprinkling calls to |
Hmm, #93730 (comment) |
code:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: