-
Notifications
You must be signed in to change notification settings - Fork 13k
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 with RUST_LOG=debug and dependency rand #36622
Comments
As rbml is gone now (#36551), maybe worth a try to re-test? |
Suprisingly, this is still reproducible with
Also, it doesn't happen on the 1.12.0 release, so its a regression. |
It happens on beta as well... |
I think this is the closure bug (closures don't have generics atm, may change later). Technically not a language regression as this is from compiler logging and AFAIK that's disabled in non-nightly. The correct way to use |
@eddyb: it reproduces on beta, so it will probably also reproduce on the next stable. |
Introduced between |
@est31 Title is misleading, rustc "debug" logging (literally It's one of those rare cases where the information is essential to debugging ICEs and whatnot. One reasonable workaround that can be backported to beta is adding a loop like this before this line, and the namespace Actually giving closures generics can be done after the refactor I'm working on lands, but right now it'd just be a messier hack, and printing code has to be rewritten anyway to handle multi-level generics. EDIT: willing to mentor this as it's not too complicated but testing it would be time-consuming. |
compiler team please prioritize. |
If the solution to this involves changing the name of |
@brson Did you remove T-compiler on purpose? |
@eddyb nope |
I'll take this on, will ping @eddyb when I have a chance to work on it. Shouldn't be too long. |
triage: P-medium We should fix this (and both @arielb1 and @Mark-Simulacrum seem to be interested) but it's not considered a "high priority" regression, since it's not visible on stable and using |
@Mark-Simulacrum |
I'll be happy to mentor you tomorrow. |
@camlorn: This has been fixed; I understand you were waiting on that. |
Not sure closing this is the best idea, don't think |
I feel like renaming RUST_LOG is unrelated to the ICE and as such should probably be filed as a separate issue? |
Fix is incomplete, reopening. |
I thought this issue was for the RUST_LOG crash. |
UPDATE: Note that @eddyb would like to mentor and wrote out some steps to fix this in a comment below.
cargo 0.13.0-nightly (2ef3cde 2016-09-04)
rustc 1.13.0-nightly (cbe4de78e 2016-09-05)
repro steps:
cargo new --bin whatever
RUST_LOG=debug cargo run
(Edit:
RUST_LOG=debug cargo build
also triggers the ICE)(Note that using various different crates as dependencies will also cause various different ICEs)
(Also note that most of these ICEs do not occur if not setting
RUST_LOG
while compiling)full log: ice_log.txt
Relevant excerpt:
The text was updated successfully, but these errors were encountered: