Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upICE in codemap::CodeMap::bytepos_to_file_charpos #24687
Comments
steveklabnik
added
the
I-ICE
label
Apr 22, 2015
This comment has been minimized.
This comment has been minimized.
|
I was able to trace down the bug. It is due to me using a unicode character in the documentation of a function this somehow triggers the compiler bug. A minimal example is: src/main.rs
Cargo.toml
|
This comment has been minimized.
This comment has been minimized.
|
@brson @SimonSapin I believe Servo is also currently hitting this in the script crate during our current rust upgrade. |
This comment has been minimized.
This comment has been minimized.
|
Yes, at least the failing assertion is the same. Removing non-ASCII characters from doc comments didn’t seem to help, though. |
This comment has been minimized.
This comment has been minimized.
|
cc @pnkfelix might this be another overflow error? |
SimonSapin
referenced this issue
Apr 26, 2015
Closed
--enable-debug seems to imply --disable-optimize #24840
This comment has been minimized.
This comment has been minimized.
|
@Aatch recommended on IRC to build with
|
This comment has been minimized.
This comment has been minimized.
|
This is 4013523 lines / 299MB of output. |
larsbergstrom
referenced this issue
Apr 26, 2015
Closed
Tracking issue for Rust high-pri or blocking issues for Servo & Gecko #2853
SimonSapin
added a commit
to servo/servo
that referenced
this issue
Apr 28, 2015
This comment has been minimized.
This comment has been minimized.
|
my current hypothesis is that this addition in creader.rs is the problem; it is at the very least very suspicious considering that five lines up in the previous statement we are normalizing the position to zero by subtracting the |
This comment has been minimized.
This comment has been minimized.
|
(other good news: I have figured out how to make a regression test for this that will integrate into the rust test suite.) |
nwin commentedApr 22, 2015
I’m getting an ICE when compiling https://github.com/nwin/gif/tree/cef32bb49589ff55135745b23ac54978ee6edecf using
cargo test