-
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
rustdoc overflows stack on latest nightly #59502
Comments
I'm getting the same error on Linux using the same rustdoc version. |
Can you try obtaining a backtrace with gdb or lldb? |
Someone on IRC got this in a backtrace:
I'm trying to do a review of #59004, I suspect it needs a bit more work to be robust. |
@eddyb I let you take care of it? |
@GuillaumeGomez @QuietMisdreavus Can you revert #59004 entirely until I have the time to look into another minor refactor of rustdoc? It might be a few days (and that if I don't forget about it). Or at least comment out the calls to the recursive functions that cause the stack overflow. |
Sure. |
I sent a PR and answered a few of your questions. The main point of what I added was to generate a list of names, not of types. Therefore, I don't care if I have two types with the same name. It doesn't matter. :) |
…ursion, r=eddyb Fix infinite recursion Temporary fix for rust-lang#59502. r? @eddyb
Fixed by #59539 |
This issue was fixed using a hacky recursion "fuel" argument, but the issue was never minimized nor was a regression test added. The underlying bug is still unfixed, so this test should help with fixing it and removing the `recurse` hack.
Note: I have added a regression test for this issue (none was originally added), in 908a9d4. |
To reproduce:
Rustdoc version:
I can reproduce on both macOS and Linux. Let me know if there's anything else I can provide!
The text was updated successfully, but these errors were encountered: