-
Notifications
You must be signed in to change notification settings - Fork 13.3k
LLVM ERROR: Broken module with -Cdebuginfo=2 -Zsanitizer=cfi -Clto #100783
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@rustbot claim |
Triage: This is no longer ICE since today's nightly. |
I think this is still reproducible:
fn pairwise_sub(mut t: Box<dyn DoubleEndedIterator<Item=isize>>) -> isize {
let mut result = 0;
loop {
let front = t.next();
let back = t.next_back();
match (front, back) {
(Some(f), Some(b)) => { result += b - f; }
_ => { return result; }
}
}
}
fn main() {
let v = vec![1, 2, 3, 4, 5, 6];
let r = pairwise_sub(Box::new(v.into_iter()));
assert_eq!(r, 9);
}
|
@rustbot label A-sanitizers |
I am unable to reproduce this on latest nightly. |
It seems like this is coming up again in #132615. The example here doesn't throw an error for me though. |
CFI: Append debug location to CFI blocks Currently we're not appending debug locations to the inserted CFI blocks. This shows up in rust-lang#132615 and rust-lang#100783. This change fixes that by passing down the debug location to the CFI type-test generation and appending it to the blocks. Credits also belong to `@jakos-sec` who worked with me on this.
Rollup merge of rust-lang#132702 - 1c3t3a:issue-132615, r=rcvalle CFI: Append debug location to CFI blocks Currently we're not appending debug locations to the inserted CFI blocks. This shows up in rust-lang#132615 and rust-lang#100783. This change fixes that by passing down the debug location to the CFI type-test generation and appending it to the blocks. Credits also belong to `@jakos-sec` who worked with me on this.
This can be closed as it was fixed in #132702. |
CFI: Append debug location to CFI blocks Currently we're not appending debug locations to the inserted CFI blocks. This shows up in rust-lang#132615 and rust-lang#100783. This change fixes that by passing down the debug location to the CFI type-test generation and appending it to the blocks. Credits also belong to `@jakos-sec` who worked with me on this.
Code
./src/test/ui/issues/issue-27901.rs
Meta
rustc --version --verbose
:Error output
rustc ./issue-27901.rs -Cdebuginfo=2 -Zsanitizer=cfi -Clto
Backtrace
The text was updated successfully, but these errors were encountered: