Skip to content

RLS crash on nightly #55836

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
mikeando opened this issue Nov 10, 2018 · 1 comment
Closed

RLS crash on nightly #55836

mikeando opened this issue Nov 10, 2018 · 1 comment

Comments

@mikeando
Copy link

I upgraded rust to latest nightly, on my OS X box.

$ rustc --version
rustc 1.32.0-nightly (653da4fd0 2018-11-08)

After restarting VSCode to get RLS to restart I got this in the RLS debug output (when running with RUST_BACKTRACE=1)

Note: cargo test and cargo build seem to run OK.

Let me know if you need anything more.

thread 'main' panicked at 'No span found for use glob', libcore/option.rs:1008:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: rustc::util::common::panic_hook
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::continue_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::option::expect_failed
  10: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O>>::process_use_tree
  11: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_item
  12: syntax::visit::walk_block
  13: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_local
  14: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_expr
  15: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_expr
  16: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_item
  17: <rustc_save_analysis::dump_visitor::DumpVisitor<'l, 'tcx, 'll, O> as syntax::visit::Visitor<'l>>::visit_mod
  18: <rustc_save_analysis::DumpHandler<'a> as rustc_save_analysis::SaveHandler>::save
  19: rustc::ty::context::tls::with_context
  20: rustc_save_analysis::process_crate
  21: rustc_driver::enable_save_analysis::{{closure}}::{{closure}}
  22: rustc::util::common::time
  23: rustc_driver::enable_save_analysis::{{closure}}
  24: rustc::ty::context::tls::with_context
  25: rustc_driver::driver::compile_input::{{closure}}
  26: rustc::ty::context::tls::enter_context
  27: <std::thread::local::LocalKey<T>>::with
  28: rustc::ty::context::TyCtxt::create_and_enter
  29: rustc_driver::driver::compile_input
  30: rustc_driver::run_compiler_with_pool
  31: <scoped_tls::ScopedKey<T>>::set
  32: rustc_driver::run_compiler
  33: <scoped_tls::ScopedKey<T>>::set
  34: syntax::with_globals
  35: __rust_maybe_catch_panic
  36: rustc_driver::run
  37: rls_rustc::run
  38: rls::main_inner
  39: rls::main
  40: std::rt::lang_start::{{closure}}
  41: std::panicking::try::do_call
  42: __rust_maybe_catch_panic
  43: std::rt::lang_start_internal
  44: main
query stack during panic:
end of query stack

error: internal compiler error: unexpected panic

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: rustc 1.32.0-nightly (653da4fd0 2018-11-08) running on x86_64-apple-darwin

note: compiler flags: -C prefer-dynamic -C debuginfo=2 --crate-type dylib

note: some of the compiler flags provided by cargo are hidden
@mikeando
Copy link
Author

mikeando commented Nov 10, 2018

I'm using rocket - so I'm guessing this is a dupe of rust-lang/rls#1117

Sorry for the noise.

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

1 participant