-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Stack overflow on large doctests in edition 2024 on Windows #138248
Copy link
Copy link
Closed
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocA-edition-2024Area: The 2024 editionArea: The 2024 editionC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocA-edition-2024Area: The 2024 editionArea: The 2024 editionC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Over in #138162 I am trying to update the standard library to Rust 2024. I'm running into a problem where core's doctests are failing on x86_64-pc-windows-msvc.
The behavior is:
thread 'main' has overflowed its stackrunning 1672 teststest result: ok. 1671 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 109.68sFrom what I can tell, there is a
const TESTS: [test::TestDescAndFn; 3641]array in the combined test code. When callingtest::test_main, it fails somewhere in there. I'm struggling a bit figuring out a good way to debug exactly where the stack is overflowing.There are a few issues here:
I haven't put together an isolated repro. I wonder if just creating something with 4,000 doctests would suffice? So far, I've been using
--persist-docteststo get a copy of core's combined suite, and then runningrustcdirectly on that.cc @notriddle @GuillaumeGomez