Skip to content

Unexpected panic: could not find scope info for MUTEX_INIT #23128

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

Closed
mlalic opened this issue Mar 6, 2015 · 1 comment
Closed

Unexpected panic: could not find scope info for MUTEX_INIT #23128

mlalic opened this issue Mar 6, 2015 · 1 comment

Comments

@mlalic
Copy link
Contributor

mlalic commented Mar 6, 2015

The bug manifests itself when trying to build the master branch of the following repo: https://github.com/mlalic/solicit

From what I can tell by shortly inspecting the error message, it's caused by the static initialization of the MUTEXT_INIT at line number 177 in libstd/sync/mutex.rs

The following is the full error message that's returned:

/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: 35954, node: ExprStruct(Path { span: Span { lo: BytePos(4816584), hi: BytePos(4816595), 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(1772893), hi: BytePos(1772897), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 35955, node: ExprPath(None, Path { span: Span { lo: BytePos(4816608), hi: BytePos(4816623), 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(4816608), hi: BytePos(4816623), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4816602), hi: BytePos(4816623), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1772920), hi: BytePos(1772926), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 35956, node: ExprPath(None, Path { span: Span { lo: BytePos(4816637), hi: BytePos(4816654), 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(4816637), hi: BytePos(4816654), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4816629), hi: BytePos(4816654), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4816584), hi: BytePos(4816657), 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

Meta

rustc version:

mlalic@skaro:~/src/solicit$ rustc --version --verbose
rustc 1.0.0-nightly (b0746ff19 2015-03-05) (built 2015-03-06)
binary: rustc
commit-hash: b0746ff19b3bc204215f04bbb5756159f9bc5c92
commit-date: 2015-03-05
build-date: 2015-03-06
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly

Stack backtrace:

stack backtrace:
   1:     0x7f9277e10f6f - sys::backtrace::write::h2f046b875b210aadOBA
   2:     0x7f9277e3bc82 - panicking::on_panic::h792ac47fb8c07faehHJ
   3:     0x7f9277d70f2a - rt::unwind::begin_unwind_inner::hbffac672008352c8knJ
   4:     0x7f92751ac84d - rt::unwind::begin_unwind::h7782663023585067018
   5:     0x7f92751ac7f3 - diagnostic::SpanHandler::span_bug::h2cdd5e3b5b05e8f800D
   6:     0x7f9275a85d03 - session::Session::span_bug::hae37e3dbc1cfddbalVp
   7:     0x7f927759d6bc - trans::debuginfo::scope_metadata::h3b34d6a00870eb16ClE
   8:     0x7f92774af568 - trans::debuginfo::set_source_location::h9f5b090c644fcb73vPD
   9:     0x7f9277463f32 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  10:     0x7f92774641f9 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  11:     0x7f92774c67df - trans::expr::trans_uniq_expr::hd6a8aea14a08d77bQmj
  12:     0x7f92774c744f - trans::expr::trans_unary::h35488c79f6cf1ec15ij
  13:     0x7f92774b196e - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h
  14:     0x7f9277464507 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  15:     0x7f92774e4859 - trans::expr::trans_adt::h66e672e44790aeeca9i
  16:     0x7f92774e730f - trans::expr::trans_struct::closure.42092
  17:     0x7f92774d1176 - trans::expr::trans_struct::ha16472c37d95c70064i
  18:     0x7f92774b369d - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  19:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  20:     0x7f9277465317 - trans::controlflow::trans_block::h4b526e186a057814x7d
  21:     0x7f927753c3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt
  22:     0x7f927744d948 - trans::base::trans_fn::h5416ef5d9cea730bZxt
  23:     0x7f927744f3e0 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud
  24:     0x7f9277494f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng
  25:     0x7f927749352e - trans::callee::trans_fn_ref::h7eebc758d7f24cf00bg
  26:     0x7f927749097d - trans::callee::trans::h1b831ba8a404e3ach1f
  27:     0x7f92774a70eb - trans::callee::trans_call_inner::h15453122340747063984
  28:     0x7f92774b3b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  29:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  30:     0x7f92774e4859 - trans::expr::trans_adt::h66e672e44790aeeca9i
  31:     0x7f92774e730f - trans::expr::trans_struct::closure.42092
  32:     0x7f92774d1176 - trans::expr::trans_struct::ha16472c37d95c70064i
  33:     0x7f92774b369d - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  34:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  35:     0x7f9277575df7 - trans::_match::mk_binding_alloca::h16286962064436778167
  36:     0x7f92774638ed - trans::base::init_local::he5827bc6a6f1a71eyBs
  37:     0x7f9277464ff2 - trans::controlflow::trans_block::h4b526e186a057814x7d
  38:     0x7f927753c3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt
  39:     0x7f927744d948 - trans::base::trans_fn::h5416ef5d9cea730bZxt
  40:     0x7f927744f3e0 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud
  41:     0x7f9277494f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng
  42:     0x7f927749352e - trans::callee::trans_fn_ref::h7eebc758d7f24cf00bg
  43:     0x7f927749097d - trans::callee::trans::h1b831ba8a404e3ach1f
  44:     0x7f92774a70eb - trans::callee::trans_call_inner::h15453122340747063984
  45:     0x7f92774b3b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  46:     0x7f92774b17c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h
  47:     0x7f9277465c48 - trans::expr::trans::h4730571ef226d1543vh
  48:     0x7f92774a2b43 - trans::callee::trans_args::hfa9ae7de71a462d8I3g
  49:     0x7f92774a7fd0 - trans::callee::trans_call_inner::h15453122340747063984
  50:     0x7f92774b3b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  51:     0x7f92774b17c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h
  52:     0x7f9277465c48 - trans::expr::trans::h4730571ef226d1543vh
  53:     0x7f92774a2b43 - trans::callee::trans_args::hfa9ae7de71a462d8I3g
  54:     0x7f92774a7fd0 - trans::callee::trans_call_inner::h15453122340747063984
  55:     0x7f92774b3b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  56:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  57:     0x7f9277575df7 - trans::_match::mk_binding_alloca::h16286962064436778167
  58:     0x7f92774638ed - trans::base::init_local::he5827bc6a6f1a71eyBs
  59:     0x7f9277464ff2 - trans::controlflow::trans_block::h4b526e186a057814x7d
  60:     0x7f92774b30de - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  61:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  62:     0x7f927755e280 - trans::_match::trans_match_inner::h5d40a011e6b8915eYKw
  63:     0x7f92774b3082 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  64:     0x7f92774b17c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h
  65:     0x7f9277465c48 - trans::expr::trans::h4730571ef226d1543vh
  66:     0x7f92774639c2 - trans::base::init_local::he5827bc6a6f1a71eyBs
  67:     0x7f9277464ff2 - trans::controlflow::trans_block::h4b526e186a057814x7d
  68:     0x7f927753c3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt
  69:     0x7f927744d948 - trans::base::trans_fn::h5416ef5d9cea730bZxt
  70:     0x7f927744f3e0 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud
  71:     0x7f9277494f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng
  72:     0x7f927749403a - trans::meth::trans_static_method_callee::ha5f5f14de1a10a97iey
  73:     0x7f9277490770 - trans::callee::trans::h1b831ba8a404e3ach1f
  74:     0x7f92774a70eb - trans::callee::trans_call_inner::h15453122340747063984
  75:     0x7f92774b3b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  76:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  77:     0x7f92774e4859 - trans::expr::trans_adt::h66e672e44790aeeca9i
  78:     0x7f92774e730f - trans::expr::trans_struct::closure.42092
  79:     0x7f92774d1176 - trans::expr::trans_struct::ha16472c37d95c70064i
  80:     0x7f92774b369d - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  81:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  82:     0x7f927755e280 - trans::_match::trans_match_inner::h5d40a011e6b8915eYKw
  83:     0x7f92774b3082 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi
  84:     0x7f92774644e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph
  85:     0x7f9277465317 - trans::controlflow::trans_block::h4b526e186a057814x7d
  86:     0x7f927753c3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt
  87:     0x7f927744d948 - trans::base::trans_fn::h5416ef5d9cea730bZxt
  88:     0x7f927744a081 - trans::base::trans_item::h2af153dd6f7fd52bRVt
  89:     0x7f9277449eb8 - trans::base::trans_item::h2af153dd6f7fd52bRVt
  90:     0x7f9277449eb8 - trans::base::trans_item::h2af153dd6f7fd52bRVt
  91:     0x7f927754574c - trans::base::trans_crate::h5cb53f6b3e2377862Ru
  92:     0x7f9278449613 - driver::phase_4_translate_to_llvm::h60575195b9fa298dENa
  93:     0x7f927842505b - driver::compile_input::h9772b425fd1776fdNba
  94:     0x7f92784e9697 - run_compiler::h17c28dbe4dd58e3bV5b
  95:     0x7f92784e72c9 - thunk::F.Invoke<A, R>::invoke::h3041729087284544127
  96:     0x7f92784e5f40 - rt::unwind::try::try_fn::h11775082019993619070
  97:     0x7f9277eabe38 - rust_try_inner
  98:     0x7f9277eabe25 - rust_try
  99:     0x7f92784e66df - thunk::F.Invoke<A, R>::invoke::h10556879288050829464
  100:     0x7f9277e269b5 - sys::thread::thread_start::hfe8c2cac3ec4afcdr8E
 ... <frames omitted>
@jdm
Copy link
Contributor

jdm commented Mar 6, 2015

Dup of #22432.

@jdm jdm closed this as completed Mar 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants