Closed
Description
Hey, here's the error description :
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/ast_util.rs:784
stack backtrace:
1: 0x2b302020fc60 - rt::backtrace::imp::write::hdfd11a4ed94a20f2gcq
2: 0x2b3020212d00 - failure::on_fail::h0f72054df1bf9cbfrxq
3: 0x2b301faa72a0 - unwind::begin_unwind_inner::h41bd655231c23cd0B8d
4: 0x2b30236f8fd0 - unwind::begin_unwind::h4647292129962808051
5: 0x2b30236f9910 - diagnostic::Handler::bug::hd3259a7bddc903fbAjD
6: 0x2b301ef5b000 - metadata::encoder::encode_symbol::h22659e7a7701d15fWFn
7: 0x2b301ef634b0 - metadata::encoder::encode_info_for_item::h7b9646176efefb178Lo
8: 0x2b301ef6a570 - metadata::encoder::my_visit_item::closure.128053
9: 0x2b301e9c6f90 - ast_map::Map::with_path_next::h10877532327692066919
10: 0x2b301e9c6f90 - ast_map::Map::with_path_next::h10877532327692066919
11: 0x2b301e9c6f90 - ast_map::Map::with_path_next::h10877532327692066919
12: 0x2b301e9c6f90 - ast_map::Map::with_path_next::h10877532327692066919
13: 0x2b301ef6c320 - metadata::encoder::EncodeVisitor<'a, 'b>.visit..Visitor<(*>::visit_item::hdbeae6bc538ccf50omp
14: 0x2b301ef6bcc0 - visit::walk_block::h5054707310007393653
15: 0x2b301ef6aec0 - visit::walk_expr::h6193663691589602304
16: 0x2b301ef6bcc0 - visit::walk_block::h5054707310007393653
17: 0x2b301ef6aec0 - visit::walk_expr::h6193663691589602304
18: 0x2b301ef6bcc0 - visit::walk_block::h5054707310007393653
19: 0x2b301ef6bcc0 - visit::walk_block::h5054707310007393653
20: 0x2b301ef6cbf0 - visit::walk_fn::h3925228222795184484
21: 0x2b301ef6d440 - visit::walk_method_helper::h12824348324579559271
22: 0x2b301ef6c320 - metadata::encoder::EncodeVisitor<'a, 'b>.visit..Visitor<(*>::visit_item::hdbeae6bc538ccf50omp
23: 0x2b301ef73d90 - metadata::encoder::encode_metadata_inner::h001b53944a04c011YVp
24: 0x2b301ebb03b0 - metadata::encoder::encode_metadata::h1d0c47abcbdc82d4sVp
25: 0x2b301ebafaa0 - middle::trans::base::write_metadata::h31cc792916d2aef1VKd
26: 0x2b301ebb0770 - middle::trans::base::trans_crate::hb455debbea6a6b8bjPd
27: 0x2b301efbbe10 - driver::driver::phase_4_translate_to_llvm::h10cd546e57567f84k6v
28: 0x2b301efb3290 - driver::driver::compile_input::ha607aaa9055eec1f0Iv
29: 0x2b301f0548f0 - driver::run_compiler::h23f58eb85c27d6c8INy
30: 0x2b301f054800 - driver::main_args::closure.134676
31: 0x2b301f066800 - task::TaskBuilder<S>::try_future::closure.135823
32: 0x2b301f066600 - task::TaskBuilder<S>::spawn_internal::closure.135800
33: 0x2b301e451ed0 - task::spawn_opts::closure.8299
34: 0x2b301fafdae0 - rust_try
35: 0x2b301faa4910 - unwind::try::h9a9e6b4298bc84fd0Wd
36: 0x2b301faa46b0 - task::Task::run::h096451e520f17c6bC4c
37: 0x2b301e451c90 - task::spawn_opts::closure.8242
38: 0x2b301faa64f0 - thread::thread_start::h95168b85b3bd742cMsd
39: 0x2b302088e0c0 - start_thread
40: 0x2b301feb8359 - __clone
41: 0x0 - <unknown>
I actually have this version :
> rustc 0.12.0-pre-nightly (25741603f 2014-08-03 23:46:10 +0000)
I actually don't really where the error comes from. It's in this repository : https://github.com/GuillaumeGomez/HTTP-Sender
I think it is in the http_sender.rs file in the function read_from_chunk. I added a fail! call at the line 40. It now gives this :
if self.data.len() > 1 && self.data[0] == 0u8 && self.data[1] == 0u8 {
return Ok((0, self.data.len() - 1));
}
fail!("in !");
while pos < self.data.len() {
If you have anymore question, please ask. Good luck.