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
fix: decrease a call limit on the toml fuzzer #698
Conversation
Weird that it's failing now but wasn't failing earlier. Looks like this sample is truly a worst case scenario. Should the limit be lowered even more? |
Ideally we'd determine what the actual limit is to avoid an OOM. And ideally max usage should be linear on the limit, so there shouldn't be a case where one input hits the limit but another OOMs... |
(Meta note: I don't know why the maintainers review request is being converted to an individual but the team isn't.. perhaps it's the fact that the requested maintainer is also on the triage team? But then why do I have a requested review? I think what's happened is that GH has routed the triage request to me but not updated that in the reviewers list?) |
02fcd2e
to
528b66b
Compare
@NoahTheDuke this one is weird that I managed to reproduce it locally (the sample crashes even VSCode's parser sometimes when I try to open it)... the limit I set passes on my machine locally, but fails on CI for some reason |
534454c
to
bb8655a
Compare
@NoahTheDuke when running the tests with |
Ah yes, definitely, anything dealing with resource exhaustion will change thresholds in release and debug mode, because debug has zero optimization. Notably, if you have any bindings which are not live for the entire function, stack space for all of them to be live simultaneously is reserved in debug mode and bindings which are not live in the same control flow are only overlapped once optimizations kick in. This can in a case with a bunch of There's two reasonable resolutions AIUI:
|
bb8655a
to
9b0bb48
Compare
@CAD97 I'd prefer the Anyway, let's go with the second option for now (I feature-guarded that problematic sample execution with |
And unfortunately the rustdoc team isn't very open to fixing this for some reason. The interim solution is to specify which tests to include manually, using e.g. smth like |
9b0bb48
to
2059a3c
Compare
@CAD97 ok, thanks for the context. Yes, we can then keep it ignored with a separate step to run |
@NoahTheDuke @CAD97 ok to merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm now
closes #697