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

Could not find scope info for node NodeExpr #23068

Closed
Kintaro opened this issue Mar 5, 2015 · 7 comments
Closed

Could not find scope info for node NodeExpr #23068

Kintaro opened this issue Mar 5, 2015 · 7 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Kintaro
Copy link
Contributor

Kintaro commented Mar 5, 2015

When compiling the current version of wtftw (https://github.com/Kintaro/wtftw/tree/1e6e3315a8576db3629ff019f62ff34be20f181d) I get the following internal compiler error:

/home/rootnode/programs/src/rust/src/libstd/sync/rwlock.rs:104:40: 107:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 40089, node: ExprStruct(Path { span: Span { lo: BytePos(4687163), hi: BytePos(4687175), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticRwLock#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1799419), hi: BytePos(1799423), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 40090, node: ExprPath(None, Path { span: Span { lo: BytePos(4687188), hi: BytePos(4687204), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: RWLOCK_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4687188), hi: BytePos(4687204), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4687182), hi: BytePos(4687204), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1799447), hi: BytePos(1799453), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 40091, node: ExprPath(None, Path { span: Span { lo: BytePos(4687218), hi: BytePos(4687235), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4687218), hi: BytePos(4687235), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4687210), hi: BytePos(4687235), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4687163), hi: BytePos(4687238), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rootnode/programs/src/rust/src/libsyntax/diagnostic.rs:129

and here's the backtrace:

stack backtrace:
   1:     0x7f0aa15420a2 - sys::backtrace::write::h93e0c407e5be85e9OBA
   2:     0x7f0aa1567fb2 - panicking::on_panic::h5d3ee2ae46f4245bhHJ
   3:     0x7f0aa14ae6f9 - rt::unwind::begin_unwind_inner::hdd1b1743003be980knJ
   4:     0x7f0a9eae8d9d - rt::unwind::begin_unwind::h1216767661413277895
   5:     0x7f0a9eae8d43 - diagnostic::SpanHandler::span_bug::h1ce6cb39303d61eb00D
   6:     0x7f0a9f3a0d13 - session::Session::span_bug::h7805e8a4f4e8c9d0MUp
   7:     0x7f0aa0d16b2d - trans::debuginfo::scope_metadata::h00e19dfb6c4b02ebDlE
   8:     0x7f0aa0c47f90 - trans::debuginfo::set_source_location::he257d690abcc014ewPD
   9:     0x7f0aa0c0a2d3 - trans::expr::trans_into::h69c28702bd894f7fVph
  10:     0x7f0aa0c0a67d - trans::expr::trans_into::h69c28702bd894f7fVph
  11:     0x7f0aa0c5baaf - trans::expr::trans_uniq_expr::h1e7bbe7dc18f4250Qmj
  12:     0x7f0aa0c5c4ac - trans::expr::trans_unary::h8d164a089e59c2725ij
  13:     0x7f0aa0c49ee1 - trans::expr::trans_unadjusted::h2faf595f2e8601eaV6h
  14:     0x7f0aa0c0a870 - trans::expr::trans_into::h69c28702bd894f7fVph
  15:     0x7f0aa0c7bf47 - trans::expr::trans_adt::h2173f5860571ca7ea9i
  16:     0x7f0aa0c7e31d - trans::expr::trans_struct::closure.42023
  17:     0x7f0aa0c656d6 - trans::expr::trans_struct::h2169294176dbf44c64i
  18:     0x7f0aa0c4b787 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
  19:     0x7f0aa0c0a84f - trans::expr::trans_into::h69c28702bd894f7fVph
  20:     0x7f0aa0c0b3c7 - trans::controlflow::trans_block::hbc9259590e405231x7d
  21:     0x7f0aa0cc7770 - trans::base::trans_closure::h095d981b15ea3f776mt
  22:     0x7f0aa0bfaaab - trans::base::trans_fn::ha9cca8b03cf052edZxt
  23:     0x7f0aa0bfbbfd - trans::monomorphize::monomorphic_fn::h5d300ef1047f1ceeQud
  24:     0x7f0aa0c3223f - trans::callee::trans_fn_ref_with_substs::h75ab89a75157f2acqng
  25:     0x7f0aa0c30da9 - trans::callee::trans_fn_ref::h7c5fa4ceb6f4bcba0bg
  26:     0x7f0aa0c2edb2 - trans::callee::trans::h43f5e14039e3fae2h1f
  27:     0x7f0aa0c41e22 - trans::callee::trans_call_inner::h9374352419014354991
  28:     0x7f0aa0c4bbf7 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
  29:     0x7f0aa0c49d3b - trans::expr::trans_unadjusted::h2faf595f2e8601eaV6h
  30:     0x7f0aa0c0bb20 - trans::expr::trans::h48d78d7fbe71c04d3vh
  31:     0x7f0aa0c3d35b - trans::callee::trans_args::hec90a9a2bce964abI3g
  32:     0x7f0aa0c42d2c - trans::callee::trans_call_inner::h9374352419014354991
  33:     0x7f0aa0c4bbf7 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
  34:     0x7f0aa0c0a84f - trans::expr::trans_into::h69c28702bd894f7fVph
  35:     0x7f0aa0cf754e - trans::_match::mk_binding_alloca::h10767932601642127626
  36:     0x7f0aa0c09c0d - trans::base::init_local::he9cc792daa88d20dyBs
  37:     0x7f0aa0c0b0a2 - trans::controlflow::trans_block::hbc9259590e405231x7d
  38:     0x7f0aa0cc7770 - trans::base::trans_closure::h095d981b15ea3f776mt
  39:     0x7f0aa0bfaaab - trans::base::trans_fn::ha9cca8b03cf052edZxt
  40:     0x7f0aa0bf6996 - trans::base::trans_item::he8649670fcd69308RVt
  41:     0x7f0aa0bf6b1c - trans::base::trans_item::he8649670fcd69308RVt
  42:     0x7f0aa0ccdfdc - trans::base::trans_crate::h533185929d36025f2Ru
  43:     0x7f0aa1b6c9d2 - driver::phase_4_translate_to_llvm::h1cd3df14fce3d4a6ENa
  44:     0x7f0aa1b4839a - driver::compile_input::h6259eba5094d4b1bNba
  45:     0x7f0aa1c0c5ed - run_compiler::hce3b84eedbd241b1V5b
  46:     0x7f0aa1c0a35c - thunk::F.Invoke<A, R>::invoke::h8006868353939210570
  47:     0x7f0aa1c08fb0 - rt::unwind::try::try_fn::h13111521890980263456
  48:     0x7f0aa15dc938 - rust_try_inner
  49:     0x7f0aa15dc925 - rust_try
  50:     0x7f0aa1c0973b - thunk::F.Invoke<A, R>::invoke::h267800211576463002
  51:     0x7f0aa15557b5 - sys::thread::thread_start::h5ed88ddeeb2bf9c3r8E
  52:     0x7f0a9b66d373 - start_thread
  53:     0x7f0aa113627c - __clone
  54:                0x0 - <unknown>

Compiled with rustc 1.0.0-dev (68740b4 2015-03-05) (built 2015-03-05)

@gareins
Copy link
Contributor

gareins commented Mar 5, 2015

Getting the same error compiling fern library:
https://github.com/daboross/fern-rs.git

rustc --version --verbose:

rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)
binary: rustc
commit-hash: 3b3bb0e682c2d252e9f62dd9df5cff9552af91ad
commit-date: 2015-03-04
build-date: 2015-03-05
host: i686-unknown-linux-gnu
release: 1.0.0-nightly

Compilation:

/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 2915, node: ExprStruct(Path { span: Span { lo: BytePos(4565608), hi: BytePos(4565619), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 2916, node: ExprPath(None, Path { span: Span { lo: BytePos(4565632), hi: BytePos(4565647), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4565632), hi: BytePos(4565647), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4565626), hi: BytePos(4565647), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 2917, node: ExprPath(None, Path { span: Span { lo: BytePos(4565661), hi: BytePos(4565678), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4565661), hi: BytePos(4565678), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4565653), hi: BytePos(4565678), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4565608), hi: BytePos(4565681), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129

Backtrace:

   1: 0xb724827c - sys::backtrace::write::h3dbd6b2c6cc342a1OBA
   2: 0xb7274905 - panicking::on_panic::h5d96f3067aeda8f0hHJ
   3: 0xb719ca09 - rt::unwind::begin_unwind_inner::hc6be9f5908c81c79knJ
   4: 0xb57d12ba - rt::unwind::begin_unwind::h16655377469371173380
   5: 0xb57d1262 - diagnostic::SpanHandler::span_bug::h027f52d83e760f8ch0D
   6: 0xb5ead73d - session::Session::span_bug::he075075920549e91ISp
   7: 0xb6e17b33 - trans::debuginfo::scope_metadata::he20f93d77b2ad237SjE
   8: 0xb6d1e212 - trans::debuginfo::set_source_location::h95db83c389fba3ed8MD
   9: 0xb6ccb615 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  10: 0xb6ccb922 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  11: 0xb6d3756e - trans::expr::trans_uniq_expr::he9a1dd8aa378c928ukj
  12: 0xb6d3831e - trans::expr::trans_unary::h5ad181bb992b6102Jgj
  13: 0xb6d208e4 - trans::expr::trans_unadjusted::hfe21336299041f83z4h
  14: 0xb6ccbc56 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  15: 0xb6d559e2 - trans::expr::trans_adt::haeb3902a62b1fb9cO6i
  16: 0xb6d58a5a - trans::expr::trans_struct::closure.42068
  17: 0xb6d4236b - trans::expr::trans_struct::h5e991387837f5392K2i
  18: 0xb6d22bee - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  19: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  20: 0xb6cccb71 - trans::controlflow::trans_block::h3f299d75acbf487eb5d
  21: 0xb6db2968 - trans::base::trans_closure::h5562a95cd1631071Kkt
  22: 0xb6cb2975 - trans::base::trans_fn::h7fb18cfabd9b0b07Dvt
  23: 0xb6cb48ca - trans::monomorphize::monomorphic_fn::h0ec9136b5f3bcc2eusd
  24: 0xb6d006ed - trans::callee::trans_fn_ref_with_substs::h0eab296086e0558b4kg
  25: 0xb6cfe83d - trans::callee::trans_fn_ref::h599d9b7687a18f8eE9f
  26: 0xb6cfb6ac - trans::callee::trans::h036cae764a59e4daVYf
  27: 0xb6d14b4c - trans::callee::trans_call_inner::h2310191549680362221
  28: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  29: 0xb6d2071b - trans::expr::trans_unadjusted::hfe21336299041f83z4h
  30: 0xb6ccd225 - trans::expr::trans::ha0762bc268f7b075Hth
  31: 0xb6d0ffea - trans::callee::trans_args::h0df8092c564be8c6m1g
  32: 0xb6d15b3a - trans::callee::trans_call_inner::h2310191549680362221
  33: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  34: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  35: 0xb6d559e2 - trans::expr::trans_adt::haeb3902a62b1fb9cO6i
  36: 0xb6d58a5a - trans::expr::trans_struct::closure.42068
  37: 0xb6d4236b - trans::expr::trans_struct::h5e991387837f5392K2i
  38: 0xb6d22bee - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  39: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  40: 0xb6d26fc6 - trans::expr::trans_rvalue_stmt_unadjusted::h573071ce2cb18040jui
  41: 0xb6ccbd80 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  42: 0xb6ccaccc - trans::controlflow::trans_stmt_semi::hc2e21164c54d6c23o4d
  43: 0xb6ccc805 - trans::controlflow::trans_block::h3f299d75acbf487eb5d
  44: 0xb6db2968 - trans::base::trans_closure::h5562a95cd1631071Kkt
  45: 0xb6cb2975 - trans::base::trans_fn::h7fb18cfabd9b0b07Dvt
  46: 0xb6cb48ca - trans::monomorphize::monomorphic_fn::h0ec9136b5f3bcc2eusd
  47: 0xb6d006ed - trans::callee::trans_fn_ref_with_substs::h0eab296086e0558b4kg
  48: 0xb6cfe83d - trans::callee::trans_fn_ref::h599d9b7687a18f8eE9f
  49: 0xb6cfb6ac - trans::callee::trans::h036cae764a59e4daVYf
  50: 0xb6d14b4c - trans::callee::trans_call_inner::h2310191549680362221
  51: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  52: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  53: 0xb6d559e2 - trans::expr::trans_adt::haeb3902a62b1fb9cO6i
  54: 0xb6d0ecd4 - trans::base::trans_named_tuple_constructor::hca46a9f283347d2fczt
  55: 0xb6d14fb1 - trans::callee::trans_call_inner::h2310191549680362221
  56: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  57: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  58: 0xb6d26fc6 - trans::expr::trans_rvalue_stmt_unadjusted::h573071ce2cb18040jui
  59: 0xb6ccbd80 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  60: 0xb6ccaccc - trans::controlflow::trans_stmt_semi::hc2e21164c54d6c23o4d
  61: 0xb6ccc805 - trans::controlflow::trans_block::h3f299d75acbf487eb5d
  62: 0xb6db2968 - trans::base::trans_closure::h5562a95cd1631071Kkt
  63: 0xb6cb2975 - trans::base::trans_fn::h7fb18cfabd9b0b07Dvt
  64: 0xb6cb48ca - trans::monomorphize::monomorphic_fn::h0ec9136b5f3bcc2eusd
  65: 0xb6d006ed - trans::callee::trans_fn_ref_with_substs::h0eab296086e0558b4kg
  66: 0xb6cfe83d - trans::callee::trans_fn_ref::h599d9b7687a18f8eE9f
  67: 0xb6cfb6ac - trans::callee::trans::h036cae764a59e4daVYf
  68: 0xb6d14b4c - trans::callee::trans_call_inner::h2310191549680362221
  69: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  70: 0xb6d2071b - trans::expr::trans_unadjusted::hfe21336299041f83z4h
  71: 0xb6ccd225 - trans::expr::trans::ha0762bc268f7b075Hth
  72: 0xb6dd4702 - trans::_match::trans_match_inner::hffb74f2c0af08ae1CIw
  73: 0xb6d224f2 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  74: 0xb6d2071b - trans::expr::trans_unadjusted::hfe21336299041f83z4h
  75: 0xb6ccd225 - trans::expr::trans::ha0762bc268f7b075Hth
  76: 0xb6d0ffea - trans::callee::trans_args::h0df8092c564be8c6m1g
  77: 0xb6d15b3a - trans::callee::trans_call_inner::h2310191549680362221
  78: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  79: 0xb6d2071b - trans::expr::trans_unadjusted::hfe21336299041f83z4h
  80: 0xb6ccd225 - trans::expr::trans::ha0762bc268f7b075Hth
  81: 0xb6d258c5 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  82: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  83: 0xb6dd5a27 - trans::_match::trans_match_inner::hffb74f2c0af08ae1CIw
  84: 0xb6d224f2 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  85: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  86: 0xb6d559e2 - trans::expr::trans_adt::haeb3902a62b1fb9cO6i
  87: 0xb6d0ecd4 - trans::base::trans_named_tuple_constructor::hca46a9f283347d2fczt
  88: 0xb6d14fb1 - trans::callee::trans_call_inner::h2310191549680362221
  89: 0xb6d23143 - trans::expr::trans_rvalue_dps_unadjusted::he728e41b51c950554zi
  90: 0xb6ccbc37 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  91: 0xb6d26fc6 - trans::expr::trans_rvalue_stmt_unadjusted::h573071ce2cb18040jui
  92: 0xb6ccbd80 - trans::expr::trans_into::hf45c34b40e5ea6fdznh
  93: 0xb6ccaccc - trans::controlflow::trans_stmt_semi::hc2e21164c54d6c23o4d
  94: 0xb6ccc805 - trans::controlflow::trans_block::h3f299d75acbf487eb5d
  95: 0xb6db2968 - trans::base::trans_closure::h5562a95cd1631071Kkt
  96: 0xb6cb2975 - trans::base::trans_fn::h7fb18cfabd9b0b07Dvt
  97: 0xb6cae4c9 - trans::base::trans_item::hf0cbbfcded874c39vTt
  98: 0xb6cae686 - trans::base::trans_item::hf0cbbfcded874c39vTt
  99: 0xb6dbc0b6 - trans::base::trans_crate::h5823744b4f53b6cfGPu
  100: 0xb76706fa - driver::phase_4_translate_to_llvm::h75015285eb572affrNa
 ... <frames omitted>

@FranklinChen
Copy link
Contributor

Same thing from my project https://github.com/FranklinChen/type-directed-tdd-rust

   Compiling type-directed-tdd-rust v0.1.0 (file:///Users/chen/MEGA/rust/type-directed-tdd-rust)
/Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 10933, node: ExprStruct(Path { span: Span { lo: BytePos(4562885), hi: BytePos(4562896), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 10934, node: ExprPath(None, Path { span: Span { lo: BytePos(4562909), hi: BytePos(4562924), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4562909), hi: BytePos(4562924), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4562903), hi: BytePos(4562924), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 10935, node: ExprPath(None, Path { span: Span { lo: BytePos(4562938), hi: BytePos(4562955), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4562938), hi: BytePos(4562955), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4562930), hi: BytePos(4562955), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4562885), hi: BytePos(4562958), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:129

stack backtrace:
   1:        0x10f348b52 - sys::backtrace::write::h6b0889bc971c1ad3IDA
   2:        0x10f377844 - panicking::on_panic::h0fcd1d74630df38dKsJ
   3:        0x10f295c67 - rt::unwind::begin_unwind_inner::h56b969a14fc61916gbJ
   4:        0x10ea1c95e - rt::unwind::begin_unwind::h7097931347514503270
   5:        0x10ea1c90b - diagnostic::SpanHandler::span_bug::hd809ae68b3d05ee6h0D
   6:        0x10c1fbd7c - session::Session::span_bug::h5bc4aa3cff230a98ISp
   7:        0x10bf20134 - trans::debuginfo::scope_metadata::hbc8249b53299cdbdSjE
   8:        0x10be2afb9 - trans::debuginfo::set_source_location::h27a07f90a8aeec578MD
   9:        0x10bddc925 - trans::expr::trans_into::h4a29f680db4b3526znh
  10:        0x10bddcc45 - trans::expr::trans_into::h4a29f680db4b3526znh
  11:        0x10be432c0 - trans::expr::trans_uniq_expr::h9953b7ba5686a321ukj
  12:        0x10be44053 - trans::expr::trans_unary::h112ae451f6aff215Jgj
  13:        0x10be2d6fc - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  14:        0x10bddcf79 - trans::expr::trans_into::h4a29f680db4b3526znh
  15:        0x10be62220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  16:        0x10be64d52 - trans::expr::trans_struct::closure.42052
  17:        0x10be4e3cb - trans::expr::trans_struct::h4294120fb3439252K2i
  18:        0x10be2f6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  19:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  20:        0x10bddde29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  21:        0x10bebcda9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  22:        0x10bdc5645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  23:        0x10bdc71c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  24:        0x10be0f58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  25:        0x10be0db0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  26:        0x10be0b1d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  27:        0x10be2224d - trans::callee::trans_call_inner::h11221320451677754653
  28:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  29:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  30:        0x10be62220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  31:        0x10be64d52 - trans::expr::trans_struct::closure.42052
  32:        0x10be4e3cb - trans::expr::trans_struct::h4294120fb3439252K2i
  33:        0x10be2f6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  34:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  35:        0x10bef6d26 - trans::_match::mk_binding_alloca::h3448676421097350985
  36:        0x10bddc280 - trans::base::init_local::h08a9fcff749ad013czs
  37:        0x10bdddb02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  38:        0x10bebcda9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  39:        0x10bdc5645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  40:        0x10bdc71c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  41:        0x10be0f58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  42:        0x10be0db0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  43:        0x10be0b1d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  44:        0x10be2224d - trans::callee::trans_call_inner::h11221320451677754653
  45:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  46:        0x10be2d51c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  47:        0x10bdde87b - trans::expr::trans::h60a968a47a19defeHth
  48:        0x10be1d7e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  49:        0x10be2334e - trans::callee::trans_call_inner::h11221320451677754653
  50:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  51:        0x10be2d51c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  52:        0x10bdde87b - trans::expr::trans::h60a968a47a19defeHth
  53:        0x10be1d7e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  54:        0x10be2334e - trans::callee::trans_call_inner::h11221320451677754653
  55:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  56:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  57:        0x10bef6d26 - trans::_match::mk_binding_alloca::h3448676421097350985
  58:        0x10bddc280 - trans::base::init_local::h08a9fcff749ad013czs
  59:        0x10bdddb02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  60:        0x10be2f050 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  61:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  62:        0x10bede4e0 - trans::_match::trans_match_inner::he768a1b2ccde6888CIw
  63:        0x10be2efe3 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  64:        0x10be2d51c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  65:        0x10bdde87b - trans::expr::trans::h60a968a47a19defeHth
  66:        0x10bddc352 - trans::base::init_local::h08a9fcff749ad013czs
  67:        0x10bdddb02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  68:        0x10bebcda9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  69:        0x10bdc5645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  70:        0x10bdc71c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  71:        0x10be0f58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  72:        0x10be2889f - trans::meth::trans_method_callee::h92a644d0a2dc2a56N6x
  73:        0x10be23dbb - trans::callee::trans_call_inner::h17268543188350918970
  74:        0x10be2e76a - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  75:        0x10be2d51c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  76:        0x10bdde87b - trans::expr::trans::h60a968a47a19defeHth
  77:        0x10be1d7e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  78:        0x10be2334e - trans::callee::trans_call_inner::h11221320451677754653
  79:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  80:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  81:        0x10bef6d26 - trans::_match::mk_binding_alloca::h3448676421097350985
  82:        0x10bddc280 - trans::base::init_local::h08a9fcff749ad013czs
  83:        0x10bdddb02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  84:        0x10bebcda9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  85:        0x10bdc5645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  86:        0x10bdc6d2a - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  87:        0x10be0f58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  88:        0x10be0db0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  89:        0x10be0b1d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  90:        0x10be2224d - trans::callee::trans_call_inner::h11221320451677754653
  91:        0x10be2fbec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  92:        0x10be2d51c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  93:        0x10bdde87b - trans::expr::trans::h60a968a47a19defeHth
  94:        0x10be1d7e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  95:        0x10be24ee7 - trans::callee::trans_call_inner::h17268543188350918970
  96:        0x10be2e76a - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  97:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
  98:        0x10bddde29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  99:        0x10be2f050 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  100:        0x10bddcf59 - trans::expr::trans_into::h4a29f680db4b3526znh
 ... <frames omitted>

Could not compile `type-directed-tdd-rust`.

To learn more, run the command again with --verbose.

@jdm jdm added A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Mar 5, 2015
@adamhjk
Copy link
Contributor

adamhjk commented Mar 5, 2015

Another, if it helps:

  Compiling env_logger v0.2.2
   Compiling docopt v0.6.44
   Compiling toml v0.1.18
/Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 8164, node: ExprStruct(Path { span: Span { lo: BytePos(4566645), hi: BytePos(4566656), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8165, node: ExprPath(None, Path { span: Span { lo: BytePos(4566669), hi: BytePos(4566684), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566669), hi: BytePos(4566684), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566663), hi: BytePos(4566684), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8166, node: ExprPath(None, Path { span: Span { lo: BytePos(4566698), hi: BytePos(4566715), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566698), hi: BytePos(4566715), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566690), hi: BytePos(4566715), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4566645), hi: BytePos(4566718), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:129

stack backtrace:
   1:        0x110798b52 - sys::backtrace::write::h6b0889bc971c1ad3IDA
   2:        0x1107c7844 - panicking::on_panic::h0fcd1d74630df38dKsJ
   3:        0x1106e5c67 - rt::unwind::begin_unwind_inner::h56b969a14fc61916gbJ
   4:        0x10fe7095e - rt::unwind::begin_unwind::h7097931347514503270
   5:        0x10fe7090b - diagnostic::SpanHandler::span_bug::hd809ae68b3d05ee6h0D
   6:        0x10d639d7c - session::Session::span_bug::h5bc4aa3cff230a98ISp
   7:        0x10d35b134 - trans::debuginfo::scope_metadata::hbc8249b53299cdbdSjE
   8:        0x10d265fb9 - trans::debuginfo::set_source_location::h27a07f90a8aeec578MD
   9:        0x10d217925 - trans::expr::trans_into::h4a29f680db4b3526znh
  10:        0x10d217c45 - trans::expr::trans_into::h4a29f680db4b3526znh
  11:        0x10d27e2c0 - trans::expr::trans_uniq_expr::h9953b7ba5686a321ukj
  12:        0x10d27f053 - trans::expr::trans_unary::h112ae451f6aff215Jgj
  13:        0x10d2686fc - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  14:        0x10d217f79 - trans::expr::trans_into::h4a29f680db4b3526znh
  15:        0x10d29d220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  16:        0x10d29fd52 - trans::expr::trans_struct::closure.42052
  17:        0x10d2893cb - trans::expr::trans_struct::h4294120fb3439252K2i
  18:        0x10d26a6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  19:        0x10d217f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  20:        0x10d218e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  21:        0x10d2f7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  22:        0x10d200645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  23:        0x10d2021c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  24:        0x10d24a58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  25:        0x10d248b0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  26:        0x10d2461d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  27:        0x10d25d24d - trans::callee::trans_call_inner::h11221320451677754653
  28:        0x10d26abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  29:        0x10d217f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  30:        0x10d29d220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  31:        0x10d29fd52 - trans::expr::trans_struct::closure.42052
  32:        0x10d2893cb - trans::expr::trans_struct::h4294120fb3439252K2i
  33:        0x10d26a6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  34:        0x10d26851c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  35:        0x10d21987b - trans::expr::trans::h60a968a47a19defeHth
  36:        0x10d2587e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  37:        0x10d25e34e - trans::callee::trans_call_inner::h11221320451677754653
  38:        0x10d26abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  39:        0x10d26851c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  40:        0x10d21987b - trans::expr::trans::h60a968a47a19defeHth
  41:        0x10d2179ca - trans::expr::trans_into::h4a29f680db4b3526znh
  42:        0x10d218e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  43:        0x10d26a050 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  44:        0x10d217f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  45:        0x10d218e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  46:        0x10d2f7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  47:        0x10d29dcc3 - trans::closure::trans_closure_expr::hc7e51f7f71e8adb0flx
  48:        0x10d26ac42 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  49:        0x10d268647 - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  50:        0x10d21987b - trans::expr::trans::h60a968a47a19defeHth
  51:        0x10d2587e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  52:        0x10d25e34e - trans::callee::trans_call_inner::h11221320451677754653
  53:        0x10d26abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  54:        0x10d217f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  55:        0x10d218e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  56:        0x10d2f7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  57:        0x10d200645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  58:        0x10d1fc0bd - trans::base::trans_item::h8ce277cc13b040a3vTt
  59:        0x10d300ecb - trans::base::trans_crate::hb69c466e59630a14GPu
  60:        0x10cc38ec7 - driver::phase_4_translate_to_llvm::he4e045cdc3897b4crNa
  61:        0x10cc147f2 - driver::compile_input::h25d96a14ec26932cIba
  62:        0x10cce672e - run_compiler::h15c3ea085a111a6fH5b
  63:        0x10cce3ac7 - thunk::F.Invoke<A, R>::invoke::h11905936354613679413
  64:        0x10cce260f - rt::unwind::try::try_fn::h4025213131938170097
  65:        0x110844628 - rust_try_inner
  66:        0x110844615 - rust_try
  67:        0x10cce2e48 - thunk::F.Invoke<A, R>::invoke::h13725635537516470714
  68:        0x1107b00a2 - sys::thread::thread_start::h1120d6d2e105321012E
  69:     0x7fff8d0682fb - _pthread_body
  70:     0x7fff8d068278 - _pthread_start

@LukasKalbertodt
Copy link
Member

Probably the same as #23093 #23053 and #23075

@quix00
Copy link

quix00 commented Mar 6, 2015

Another, in my case it is only occurring with crate-type bin, I have not seen any issue with libs.

       Fresh bitflags v0.1.1
       Fresh gcc v0.3.1
       Fresh log v0.2.5
       Fresh rustc-serialize v0.2.15
       Fresh libc v0.1.2
       Fresh sdl2-sys v0.0.27 (https://github.com/quix00/rust-sdl2?branch=texture_lifetimes#fcea2ab7)
       Fresh rand v0.1.3
       Fresh sdl2 v0.0.28 (https://github.com/quix00/rust-sdl2?branch=texture_lifetimes#fcea2ab7)
       Fresh time v0.1.19
       Fresh sdl2_ttf v0.0.3 (https://github.com/quix00/rust-sdl2_ttf#5027f1ab)
   Compiling ecf v0.0.1 (file:///Users/eesponda/Documents/ecf)
     Running `rustc src/lib.rs --crate-name ecf --crate-type lib -g -C metadata=e844eaf30c8e1267 -C extra-filename=-e844eaf30c8e1267 --out-dir /Users/eesponda/Documents/ecf/target --emit=dep-info,link -L dependency=/Users/eesponda/Documents/ecf/target -L dependency=/Users/eesponda/Documents/ecf/target/deps --extern sdl2_ttf=/Users/eesponda/Documents/ecf/target/deps/libsdl2_ttf-2865844f4a4f80d2.rlib --extern time=/Users/eesponda/Documents/ecf/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/Users/eesponda/Documents/ecf/target/deps/librustc-serialize-ebc743271f9255aa.rlib --extern sdl2=/Users/eesponda/Documents/ecf/target/deps/libsdl2-b9ebff5a768e0711.rlib -L native=/Users/eesponda/Documents/ecf/target/build/time-f5c2f62bb1bdf976/out`
     Running `rustc examples/pong/main.rs --crate-name pong --crate-type bin -g --out-dir /Users/eesponda/Documents/ecf/target --emit=dep-info,link -L dependency=/Users/eesponda/Documents/ecf/target -L dependency=/Users/eesponda/Documents/ecf/target/deps --extern sdl2_ttf=/Users/eesponda/Documents/ecf/target/deps/libsdl2_ttf-2865844f4a4f80d2.rlib --extern time=/Users/eesponda/Documents/ecf/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/Users/eesponda/Documents/ecf/target/deps/librustc-serialize-ebc743271f9255aa.rlib --extern sdl2=/Users/eesponda/Documents/ecf/target/deps/libsdl2-b9ebff5a768e0711.rlib --extern ecf=/Users/eesponda/Documents/ecf/target/libecf-e844eaf30c8e1267.rlib -L native=/Users/eesponda/Documents/ecf/target/build/time-f5c2f62bb1bdf976/out`
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:129

stack backtrace:
   1:        0x111f6db52 - sys::backtrace::write::h6b0889bc971c1ad3IDA
   2:        0x111f9c844 - panicking::on_panic::h0fcd1d74630df38dKsJ
   3:        0x111ebac67 - rt::unwind::begin_unwind_inner::h56b969a14fc61916gbJ
   4:        0x11164195e - rt::unwind::begin_unwind::h7097931347514503270
   5:        0x11164190b - diagnostic::SpanHandler::span_bug::hd809ae68b3d05ee6h0D
   6:        0x10ee19d7c - session::Session::span_bug::h5bc4aa3cff230a98ISp
   7:        0x10eb3b134 - trans::debuginfo::scope_metadata::hbc8249b53299cdbdSjE
   8:        0x10ea45fb9 - trans::debuginfo::set_source_location::h27a07f90a8aeec578MD
   9:        0x10e9f7925 - trans::expr::trans_into::h4a29f680db4b3526znh
  10:        0x10e9f7c45 - trans::expr::trans_into::h4a29f680db4b3526znh
  11:        0x10ea5e2c0 - trans::expr::trans_uniq_expr::h9953b7ba5686a321ukj
  12:        0x10ea5f053 - trans::expr::trans_unary::h112ae451f6aff215Jgj
  13:        0x10ea486fc - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  14:        0x10e9f7f79 - trans::expr::trans_into::h4a29f680db4b3526znh
  15:        0x10ea7d220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  16:        0x10ea7fd52 - trans::expr::trans_struct::closure.42052
  17:        0x10ea693cb - trans::expr::trans_struct::h4294120fb3439252K2i
  18:        0x10ea4a6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  19:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  20:        0x10e9f8e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  21:        0x10ead7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  22:        0x10e9e0645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  23:        0x10e9e21c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  24:        0x10ea2a58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  25:        0x10ea28b0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  26:        0x10ea261d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  27:        0x10ea3d24d - trans::callee::trans_call_inner::h11221320451677754653
  28:        0x10ea4abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  29:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  30:        0x10ea7d220 - trans::expr::trans_adt::h73a11f7497464a42O6i
  31:        0x10ea7fd52 - trans::expr::trans_struct::closure.42052
  32:        0x10ea693cb - trans::expr::trans_struct::h4294120fb3439252K2i
  33:        0x10ea4a6be - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  34:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  35:        0x10eb11d26 - trans::_match::mk_binding_alloca::h3448676421097350985
  36:        0x10e9f7280 - trans::base::init_local::h08a9fcff749ad013czs
  37:        0x10e9f8b02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  38:        0x10ead7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  39:        0x10e9e0645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  40:        0x10e9e21c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  41:        0x10ea2a58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  42:        0x10ea28b0e - trans::callee::trans_fn_ref::hb2be9d8aec49d9c4E9f
  43:        0x10ea261d0 - trans::callee::trans::ha12ccf10898e9b03VYf
  44:        0x10ea3d24d - trans::callee::trans_call_inner::h11221320451677754653
  45:        0x10ea4abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  46:        0x10ea4851c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  47:        0x10e9f987b - trans::expr::trans::h60a968a47a19defeHth
  48:        0x10ea387e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  49:        0x10ea3e34e - trans::callee::trans_call_inner::h11221320451677754653
  50:        0x10ea4abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  51:        0x10ea4851c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  52:        0x10e9f987b - trans::expr::trans::h60a968a47a19defeHth
  53:        0x10ea387e1 - trans::callee::trans_args::h43fd254006ea96e2m1g
  54:        0x10ea3e34e - trans::callee::trans_call_inner::h11221320451677754653
  55:        0x10ea4abec - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  56:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  57:        0x10eb11d26 - trans::_match::mk_binding_alloca::h3448676421097350985
  58:        0x10e9f7280 - trans::base::init_local::h08a9fcff749ad013czs
  59:        0x10e9f8b02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  60:        0x10ea4a050 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  61:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  62:        0x10eaf94e0 - trans::_match::trans_match_inner::he768a1b2ccde6888CIw
  63:        0x10ea49fe3 - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  64:        0x10ea4851c - trans::expr::trans_unadjusted::h66feeb4ce59b408dz4h
  65:        0x10e9f987b - trans::expr::trans::h60a968a47a19defeHth
  66:        0x10e9f7352 - trans::base::init_local::h08a9fcff749ad013czs
  67:        0x10e9f8b02 - trans::controlflow::trans_block::h26a308528bb95051b5d
  68:        0x10ead7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  69:        0x10e9e0645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  70:        0x10e9e21c3 - trans::monomorphize::monomorphic_fn::h8c4abbed98c102adusd
  71:        0x10ea2a58b - trans::callee::trans_fn_ref_with_substs::heb22ab8904f67bf64kg
  72:        0x10ea4389f - trans::meth::trans_method_callee::h92a644d0a2dc2a56N6x
  73:        0x10ea3edbb - trans::callee::trans_call_inner::h17268543188350918970
  74:        0x10ea4976a - trans::expr::trans_rvalue_dps_unadjusted::hca2c07ae951484c14zi
  75:        0x10e9f7f59 - trans::expr::trans_into::h4a29f680db4b3526znh
  76:        0x10e9f8e29 - trans::controlflow::trans_block::h26a308528bb95051b5d
  77:        0x10ead7da9 - trans::base::trans_closure::h1e78b4450eb13a03Kkt
  78:        0x10e9e0645 - trans::base::trans_fn::h31c9353b85ff9dd9Dvt
  79:        0x10e9dcaa6 - trans::base::trans_item::h8ce277cc13b040a3vTt
  80:        0x10e9dc8a7 - trans::base::trans_item::h8ce277cc13b040a3vTt
  81:        0x10eae0ecb - trans::base::trans_crate::hb69c466e59630a14GPu
  82:        0x10e417ec7 - driver::phase_4_translate_to_llvm::he4e045cdc3897b4crNa
  83:        0x10e3f37f2 - driver::compile_input::h25d96a14ec26932cIba
  84:        0x10e4c572e - run_compiler::h15c3ea085a111a6fH5b
  85:        0x10e4c2ac7 - thunk::F.Invoke<A, R>::invoke::h11905936354613679413
  86:        0x10e4c160f - rt::unwind::try::try_fn::h4025213131938170097
  87:        0x112019628 - rust_try_inner
  88:        0x112019615 - rust_try
  89:        0x10e4c1e48 - thunk::F.Invoke<A, R>::invoke::h13725635537516470714
  90:        0x111f850a2 - sys::thread::thread_start::h1120d6d2e105321012E
  91:     0x7fff902ed267 - _pthread_body
  92:     0x7fff902ed1e4 - _pthread_start

@TyOverby
Copy link
Contributor

TyOverby commented Mar 6, 2015

Glutin isn't building either.

/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 30848, node: ExprStruct(Path { span: Span { lo: BytePos(4847499), hi: BytePos(4847510), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 30849, node: ExprPath(None, Path { span: Span { lo: BytePos(4847523), hi: BytePos(4847538), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4847523), hi: BytePos(4847538), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4847517), hi: BytePos(4847538), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 30850, node: ExprPath(None, Path { span: Span { lo: BytePos(4847552), hi: BytePos(4847569), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4847552), hi: BytePos(4847569), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4847544), hi: BytePos(4847569), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4847499), hi: BytePos(4847572), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
Could not compile `glutin`.

Caused by:
  Process didn't exit successfully: `rustc /home/ty/.cargo/git/checkouts/glutin-666c1766c69e6584/master/src/lib.rs --crate-name glutin --crate-type lib -g --cfg feature="window" --cfg feature="default" -C metadata=26e145173bbe6069 -C extra-filename=-26e145173bbe6069 --out-dir /home/ty/workspace/rust/lux/target/deps --emit=dep-info,link -L dependency=/home/ty/workspace/rust/lux/target/deps -L dependency=/home/ty/workspace/rust/lux/target/deps --extern gl_common=/home/ty/workspace/rust/lux/target/deps/libgl_common-ec39142a57c733b7.rlib --extern libc=/home/ty/workspace/rust/lux/target/deps/liblibc-8d21de95f4de7169.rlib -Awarnings` (exit code: 101)

Stacktrace

thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129

stack backtrace:
   1:     0x7f351f0bdf1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
   2:     0x7f351f0e8c32 - panicking::on_panic::h9f64f4c69e19f194hHJ
   3:     0x7f351f01deda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
   4:     0x7f351c44eabd - rt::unwind::begin_unwind::h8320268356453106285
   5:     0x7f351c44ea63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
   6:     0x7f351cd2aca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
   7:     0x7f351e84880c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
   8:     0x7f351e75b408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
   9:     0x7f351e70fe42 - trans::expr::trans_into::h95c6d2681fdd2548znh
  10:     0x7f351e710109 - trans::expr::trans_into::h95c6d2681fdd2548znh
  11:     0x7f351e77267f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
  12:     0x7f351e7732ef - trans::expr::trans_unary::h4412379888608420Jgj
  13:     0x7f351e75d80e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
  14:     0x7f351e710417 - trans::expr::trans_into::h95c6d2681fdd2548znh
  15:     0x7f351e7906f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
  16:     0x7f351e7931af - trans::expr::trans_struct::closure.42069
  17:     0x7f351e77d016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
  18:     0x7f351e75f53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
  19:     0x7f351e7103f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
  20:     0x7f351e711227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
  21:     0x7f351e7e8821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
  22:     0x7f351e6f9b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
  23:     0x7f351e6fb5a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
  24:     0x7f351e740e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
  25:     0x7f351e73f43e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
  26:     0x7f351e73c88d - trans::callee::trans::ha56f4fe94448e6baVYf
  27:     0x7f351e752fbb - trans::callee::trans_call_inner::h9722042290657949952
  28:     0x7f351e75f9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
  29:     0x7f351e7103f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
  30:     0x7f351e7906f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
  31:     0x7f351e7931af - trans::expr::trans_struct::closure.42069
  32:     0x7f351e77d016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
  33:     0x7f351e75f53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
  34:     0x7f351e7103f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
  35:     0x7f351e820967 - trans::_match::mk_binding_alloca::h13035368140960659810
  36:     0x7f351e70f7fd - trans::base::init_local::h1e7c96bb7077440dczs
  37:     0x7f351e710f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
  38:     0x7f351e7e8821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
  39:     0x7f351e6f9b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
  40:     0x7f351e6f6241 - trans::base::trans_item::h48fc370b7d259ac7vTt
  41:     0x7f351e6f6078 - trans::base::trans_item::h48fc370b7d259ac7vTt
  42:     0x7f351e6f6078 - trans::base::trans_item::h48fc370b7d259ac7vTt
  43:     0x7f351e7f17ec - trans::base::trans_crate::hc92be67ede893c70GPu
  44:     0x7f351f6f6e83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
  45:     0x7f351f6d283f - driver::compile_input::h3913ff7013f0c056Iba
  46:     0x7f351f79acb7 - run_compiler::h28a4446bae1034e7H5b
  47:     0x7f351f798829 - thunk::F.Invoke<A, R>::invoke::h6503055919709693733
  48:     0x7f351f7974a0 - rt::unwind::try::try_fn::h1384674024000742916
  49:     0x7f351f158de8 - rust_try_inner
  50:     0x7f351f158dd5 - rust_try
  51:     0x7f351f797c3f - thunk::F.Invoke<A, R>::invoke::h5780663349966142752
  52:     0x7f351f0d3965 - sys::thread::thread_start::h4ab695857833a5dar8E
  53:     0x7f3518f2e181 - start_thread
  54:     0x7f351ec8e47c - __clone
  55:                0x0 - <unknown>

@michaelwoerister
Copy link
Member

🚓 Woh! Here comes the dupe-police! 🚓 🚓
This is a duplicate of #22432, a fix is already in the queue: #23074
Thanks for reporting! Keep your eyes open, citizens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

9 participants