-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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]: Multiple hangs with specific compiler options #132591
Comments
Well... |
@wxie7 does the hang repro without Marking as |
And even better, does the hang repro with fewer flags? |
@jieyouxu Even after removing |
We'll need to cleanup the code examples produced via mutation testing (run through rustfmt, trim down irrelevant errors, etc.) |
And also, to clarify @wxie7 do they produce Internal Compiler Errors (ICE) which is usually associated with an ICE message, or do they just hang (i.e. don't terminate)? |
Thank you for the report, it would be very helpful next time if you indicated that these hangs are found via some kind of fuzzing, see the fuzzing guidelines in the dev-guide. |
@wxie7 -Zunsound-mir-opts mean that the opt is known to be broken, so testing that will not really lead to interesting results, it doesn't matter if there are gaps in the test suite for something we know is wrong anyways. we're not exactly very keen on preserving this wrong behavior :) |
(Also triage remark: we'll need to split this issue into multiple actionable individual issues, as it stands there's too many code examples that might not hang with the same flags and causes) |
just hang |
In fact, some examples not included in the attachments have triggered ICE. Should I submit each example as a separate issue? |
Triage: @wxie7 I took a brief look at the example code snippets, they definitely need their individual bug reports because they are widely different: E.g.:
Yes, please kindly submit individual bug reports for them and consider what I mentioned above, thank you! If you do file separate issues, it will help to mention that they are synthesized from fuzzing. |
@wxie7 Yes, please follow the rustc dev guide instructions:
|
To summarize what we have above, please do file individual issues. I'm closing this particular issue as it's too much of a kitchen sink and is not very actionable. Thanks! |
@jieyouxu Is it reasonable to add |
I asked in https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/.60-Zpolymorphize.60.2F.60-Zpolonius.60.20when.20fuzzing.3F because I'm not too sure about it either. Before that gets answered, I would avoid adding these specific unstable flags ( |
@wxie7 Based on discussions in https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/.60-Zpolymorphize.60.2F.60-Zpolonius.60.20when.20fuzzing.3F, let's avoid fuzzing with those specific flags for now. |
Code
EDIT: dropped not required flags
Affected release channels
Rust Version
$ rustc -Vv
rustc 1.84.0-nightly (b8c8287 2024-11-03)
binary: rustc
commit-hash: b8c8287
commit-date: 2024-11-03
host: x86_64-unknown-linux-gnu
release: 1.84.0-nightly
LLVM version: 19.1.3
Current error output
No response
Backtrace
no backtrace
Anything else?
The attached files contain multiple source codes that cause the compiler to hang.
hangs.zip
The text was updated successfully, but these errors were encountered: