Skip to content

Panic => hang with -C codegen-units=2 #20184

Closed
@kmcallister

Description

@kmcallister

Building src/test/compile-fail/asm-src-loc-codegen-units.rs, I get

$ RUST_BACKTRACE=1 x86_64-unknown-linux-gnu/stage1/bin/rustc /home/keegan/rust/src/test/compile-fail/asm-src-loc-codegen-units.rs -L x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage1-x86_64-unknown-linux-gnulibaux -C prefer-dynamic -o x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage1-x86_64-unknown-linux-gnu --cfg rtopt --cfg debug -C rpath -O -L x86_64-unknown-linux-gnu/rt -C codegen-units=2  
thread 'codegen-1' panicked at 'Box<Any>', /home/keegan/rust/src/libsyntax/diagnostic.rs:144  
stack backtrace:  
   1:     0x7fa4c3cc6160 - sys::backtrace::write::h65ec9c5123795f5a7Et  
   2:     0x7fa4c3ce1560 - failure::on_fail::h57fab0e8dcfaeb44q5z  
   3:     0x7fa4c3c64d30 - rt::unwind::begin_unwind_inner::hfb3e098e3005b453qJz  
   4:     0x7fa4bf1b71d0 - rt::unwind::begin_unwind::h10618648795271420137  
   5:     0x7fa4bf1b7c70 - diagnostic::Handler::fatal::h4880a8481789b123GZF  
   6:     0x7fa4bf1b7e70 - diagnostic::Handler::abort_if_errors::h67ec7bdbe130dc33m1F  
   7:     0x7fa4c2b9b470 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h6510616859115949120  
   8:     0x7fa4c2b9a250 - rt::unwind::try::try_fn::h2108817931159087488  
   9:     0x7fa4c3d50080 - rust_try_inner  
  10:     0x7fa4c3d50070 - rust_try  
  11:     0x7fa4c2b9a4f0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h6356295493119065651  
  12:     0x7fa4c3cd3870 - sys::thread::thread_start::h343c9a18cc8a2c6fxDw  
  13:     0x7fa4be9d0fe0 - start_thread  
  14:     0x7fa4c3911c99 - __clone  
  15:                0x0 - <unknown>  

at which point rustc hangs. Version: 96a3c7c (current master)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions