Skip to content

ERROR:rbml::reader: failed to find block with tag 42 #28290

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
klieth opened this issue Sep 8, 2015 · 2 comments
Closed

ERROR:rbml::reader: failed to find block with tag 42 #28290

klieth opened this issue Sep 8, 2015 · 2 comments

Comments

@klieth
Copy link

klieth commented Sep 8, 2015

It looks like this has been an issue in the past and there are some closed bugs that look similar, but it seems to have come back again...

rustc --version --verbose:

rustc 1.4.0-nightly (f6aac8037 2015-09-06)
binary: rustc
commit-hash: f6aac80375ee8ec63522affc09e0cd5c4f888b44
commit-date: 2015-09-06
host: x86_64-apple-darwin
release: 1.4.0-nightly

Here's what I'm compiling: https://gist.github.com/klieth/8c7a930c88393b32d769

To build:

# build libcore.rlib in bin/deps/
rustc --emit obj --target arm-unknown-linux-gnueabihf -L bin/deps/ --out-dir bin/ -g src/main.rs
arm-none-eabi-ld -N -Ttext=0x10000 -nostdlib -o bin/main bin/main.o

This exact program built fine on nightly a couple days ago.

Backtrace:

rustc --emit obj --target arm-unknown-linux-gnueabihf -L bin/deps/ --out-dir bin/ -g src/main.rs
ERROR:rbml::reader: failed to find block with tag 42
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
thread 'rustc' panicked at 'explicit panic', ../src/librbml/lib.rs:395

stack backtrace:
   1:        0x109ee3820 - sys::backtrace::tracing::imp::write::h8eb606f0676b1c68Sqs
   2:        0x109eea63b - panicking::on_panic::h439344cab6a0722eKXw
   3:        0x109eac362 - rt::unwind::begin_unwind_inner::h208ecd91d43787c9Msw
   4:        0x1073d7384 - rt::unwind::begin_unwind::h7490549258345712242
   5:        0x1073d63c4 - reader::get_doc::h6a65a8842632bfd2Uxa
   6:        0x106d80851 - metadata::creader::CrateReader<'a>::register_crate::hc6db7b11d4af0582NZo
   7:        0x106d834b7 - metadata::creader::CrateReader<'a>::resolve_crate::h4c6c76a3790d2ac6I3o
   8:        0x106d7caad - metadata::creader::LocalCrateReader<'a, 'b>.visit..Visitor<'v>::visit_item::he7160a07cd108f94yCo
   9:        0x106d8b31e - metadata::creader::LocalCrateReader<'a, 'b>::read_crates::h605c6b162666afbdcvp
  10:        0x105e46940 - driver::phase_3_run_analysis_passes::h17336765353748147307
  11:        0x105e2b525 - driver::compile_input::h3b979784345acc550ba
  12:        0x105f90260 - run_compiler::h012c5a96476d1167qqc
  13:        0x105f8db59 - boxed::F.FnBox<A>::call_box::h11466729629495619760
  14:        0x105f8d552 - rt::unwind::try::try_fn::h8911238048273806355
  15:        0x109eea1f8 - __rust_try
  16:        0x109ed6400 - rt::unwind::try::inner_try::h1851ddf9ecd93c2fFow
  17:        0x105f8d702 - boxed::F.FnBox<A>::call_box::h9417331057773949790
  18:        0x109ee956d - sys::thread::Thread::new::thread_start::hc131c4deb753ff20oNv
  19:     0x7fff9303a059 - _pthread_body
  20:     0x7fff93039fd6 - _pthread_start
@arielb1
Copy link
Contributor

arielb1 commented Sep 8, 2015

Did you try recompiling libcore? The metadata format changed around that time (in general, different versions of rustc generate incompatible libraries, even if they are different nightlies of the same version, so you should recompile everything on every update).

@klieth
Copy link
Author

klieth commented Sep 9, 2015

Pretty sure I did, but something must have gone wrong. Just tried pulling the latest everything (rebuilding core, as well) and it built this time! Thanks.

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