Skip to content

Could not find scope info for node NodeExpr #23068

Closed
@Kintaro

Description

@Kintaro

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)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