Skip to content
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 multiple fails #3822

Closed
14427 opened this issue Oct 20, 2012 · 2 comments
Closed

ICE with multiple fails #3822

14427 opened this issue Oct 20, 2012 · 2 comments
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@14427
Copy link
Contributor

14427 commented Oct 20, 2012

The compiler correctly warns that the second fail is unreachable, then an ICE occurs

fn main() {
    fail ~"One";
    fail ~"Two";
}
@ghost ghost assigned jdm and catamorphism Oct 21, 2012
@jdm
Copy link
Contributor

jdm commented Oct 21, 2012

#0 rust_task_fail (task=0x10250a1f0, expr=0x100ca7fc0 "Assertion llvm::LLVMGetPointerAddressSpace(val_ty(val)) == gc_box_addrspace failed", file=0x100ca7ed0 "/Users/jdm/src/rust/src/rustc/middle/trans/base.rs", line=270) at /Users/jdm/sr
#1 0x0000000100ffff8b in __morestack () at rust_shape.h:493
#2 0x0000000100fe98af in rust_task::return_c_stack () at /Users/jdm/src/rust/src/rt/rust_task.h:476
#3 0x0000000100fe98af in upcall_fail (expr=<value temporarily unavailable, due to optimizations>, file=0x100ca7ed0 "/Users/jdm/src/rust/src/rustc/middle/trans/base.rs", line=270) at rust_task.h:481
#4 0x0000000100811768 in middle::trans::base::non_gc_box_cast::_68f0d93f43d79376::_05 ()
#5 0x00000001007d8ed0 in middle::trans::tvec::trans_uniq_or_managed_vstore::_fd31b1b42f8448a3::_05 ()
#6 0x00000001007d392c in middle::trans::expr::trans_rvalue_datum_unadjusted::_42733992967a967d::_05 ()
#7 0x00000001007d1602 in middle::trans::expr::trans_to_datum_unadjusted::_42733992967a967d::_05 ()
#8 0x000000010078d0d4 in middle::trans::expr::trans_to_datum::_42733992967a967d::_05 ()
#9 0x0000000100ca2180 in __morestack ()
#10 0x000000010079badb in middle::trans::controlflow::trans_fail_expr::_7b994859dc2c82a::_05 ()

@brson
Copy link
Contributor

brson commented Oct 22, 2012

Fixed by jdm

@brson brson closed this as completed Oct 22, 2012
@14427 14427 unassigned jdm Jun 16, 2014
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 18, 2024
tls_leak_main_thread_allowed: make test check target_thread_local

Instead of ignoring the test entirely on some targets, make the test check the `target_thread_local` flag to determine whether `thread_local!` statics can be tracked by Miri and hence can have main-thread-TLS leaks ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
4 participants