Skip to content
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

ICE with the regex crate #34791

Closed
nodakai opened this issue Jul 12, 2016 · 1 comment
Closed

ICE with the regex crate #34791

nodakai opened this issue Jul 12, 2016 · 1 comment

Comments

@nodakai
Copy link
Contributor

nodakai commented Jul 12, 2016

Feel free to close this ticket if the issue was due to my environment.

rustc 1.12.0-dev (3085ec7 2016-07-12)

Nightly from rustup didn't suffer from this issue. (7ad125c 2016-07-11)

$ git clone https://github.com/rust-lang-nursery/regex.git
$ cd regex
$ RUST_BACKTRACE=1 cargo build --verbose
   Compiling utf8-ranges v0.1.3                   
   Compiling libc v0.2.14
   Compiling winapi v0.2.8
   Compiling winapi-build v0.1.1
   Compiling regex-syntax v0.3.4 (file:///tmp/regex/regex-syntax)
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/utf8-ranges-0.1.3/src/lib.rs --crate-name utf8_ranges --crate-type lib -g -C metadata=5c6a6dacba3be7ce -C extra-filename=-5c6a6dacba3be7ce --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --cap-lints allow`
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.14/src/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"use_std\" --cfg feature=\"default\" -C metadata=1f3392fe1afd1313 -C extra-filename=-1f3392fe1afd1313 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --cap-lints allow`
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/winapi-0.2.8/src/lib.rs --crate-name winapi --crate-type lib -g -C metadata=0889532d327ff4e2 -C extra-filename=-0889532d327ff4e2 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --cap-lints allow`
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/winapi-build-0.1.1/src/lib.rs --crate-name build --crate-type lib -g -C metadata=493a7b0628804707 -C extra-filename=-493a7b0628804707 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --cap-lints allow`
     Running `rustc regex-syntax/src/lib.rs --crate-name regex_syntax --crate-type lib -g -C metadata=6316a5c3b15f015b -C extra-filename=-6316a5c3b15f015b --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps`
   Compiling kernel32-sys v0.2.2
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/kernel32-sys-0.2.2/build.rs --crate-name build_script_build --crate-type bin -g --out-dir /tmp/regex/target/debug/build/kernel32-sys-d6afa5bd3d7cfaef --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern build=/tmp/regex/target/debug/deps/libbuild-493a7b0628804707.rlib --cap-lints allow`
     Running `/tmp/regex/target/debug/build/kernel32-sys-d6afa5bd3d7cfaef/build-script-build`
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/kernel32-sys-0.2.2/src/lib.rs --crate-name kernel32 --crate-type lib -g -C metadata=df86a08647459244 -C extra-filename=-df86a08647459244 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern winapi=/tmp/regex/target/debug/deps/libwinapi-0889532d327ff4e2.rlib --cap-lints allow`
   Compiling thread-id v2.0.0
   Compiling memchr v0.1.11
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/thread-id-2.0.0/src/lib.rs --crate-name thread_id --crate-type lib -g -C metadata=bcd46c79a620a618 -C extra-filename=-bcd46c79a620a618 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern kernel32=/tmp/regex/target/debug/deps/libkernel32-df86a08647459244.rlib --extern libc=/tmp/regex/target/debug/deps/liblibc-1f3392fe1afd1313.rlib --cap-lints allow`
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-0.1.11/src/lib.rs --crate-name memchr --crate-type lib -g -C metadata=c555f740a543880f -C extra-filename=-c555f740a543880f --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern libc=/tmp/regex/target/debug/deps/liblibc-1f3392fe1afd1313.rlib --cap-lints allow`
   Compiling thread_local v0.2.6
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.2.6/src/lib.rs --crate-name thread_local --crate-type lib -g -C metadata=e5ce0d44bcaf00e6 -C extra-filename=-e5ce0d44bcaf00e6 --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern thread_id=/tmp/regex/target/debug/deps/libthread_id-bcd46c79a620a618.rlib --cap-lints allow`
   Compiling aho-corasick v0.5.2
     Running `rustc /home/nodakai/.cargo/registry/src/github.com-1ecc6299db9ec823/aho-corasick-0.5.2/src/lib.rs --crate-name aho_corasick --crate-type lib -g -C metadata=e528bf4fdf3954ff -C extra-filename=-e528bf4fdf3954ff --out-dir /tmp/regex/target/debug/deps --emit=dep-info,link -L dependency=/tmp/regex/target/debug/deps -L dependency=/tmp/regex/target/debug/deps --extern memchr=/tmp/regex/target/debug/deps/libmemchr-c555f740a543880f.rlib --cap-lints allow`
   Compiling regex v0.1.73 (file:///tmp/regex)
     Running `rustc src/lib.rs --crate-name regex --crate-type lib -g --out-dir /tmp/regex/target/debug --emit=dep-info,link -L dependency=/tmp/regex/target/debug -L dependency=/tmp/regex/target/debug/deps --extern aho_corasick=/tmp/regex/target/debug/deps/libaho_corasick-e528bf4fdf3954ff.rlib --extern utf8_ranges=/tmp/regex/target/debug/deps/libutf8_ranges-5c6a6dacba3be7ce.rlib --extern thread_local=/tmp/regex/target/debug/deps/libthread_local-e5ce0d44bcaf00e6.rlib --extern memchr=/tmp/regex/target/debug/deps/libmemchr-c555f740a543880f.rlib --extern regex_syntax=/tmp/regex/target/debug/deps/libregex_syntax-6316a5c3b15f015b.rlib`
error: internal compiler error: src/librustc/infer/region_inference/mod.rs:734: cannot relate bound region: '_#0r <= ReEarlyBound(TypeSpace, 0, 'r)
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>', src/librustc_errors/lib.rs:580
stack backtrace:
   1:     0x7f5fd5e9477f - std::sys::backtrace::tracing::imp::write::hf504bc08f2a3011f
   2:     0x7f5fd5eabebb - std::panicking::default_hook::_{{closure}}::h49b28af2d05b6140
   3:     0x7f5fd5ea49c7 - std::panicking::default_hook::hf5d79ad4f1ead81e
   4:     0x7f5fd5ea50ec - std::panicking::rust_panic_with_hook::h9a3925e37821d434
   5:     0x7f5fd53ecf58 - std::panicking::begin_panic::hdf32e6f0d48da313
   6:     0x7f5fd5452525 - rustc::session::opt_span_bug_fmt::_{{closure}}::hfbd05ef01f930389
   7:     0x7f5fd54522fd - rustc::ty::context::tls::with_opt::_{{closure}}::hf052d4aa2a56d43a
   8:     0x7f5fd5450b8d - rustc::ty::context::tls::with::_{{closure}}::hb3938faea4e67369
   9:     0x7f5fd240a8d4 - rustc::session::opt_span_bug_fmt::he49e515088fa8437
  10:     0x7f5fd240a7f4 - rustc::session::span_bug_fmt::h40548a94744de842
  11:     0x7f5fd234e22e - rustc::infer::region_inference::RegionVarBindings::make_subregion::hea6d7f7feff509e8
  12:     0x7f5fd234ddbb - rustc::infer::region_inference::RegionVarBindings::make_eqregion::h12e449b6d33201a8
  13:     0x7f5fd232a7a9 - _<rustc..infer..equate..Equate<'a, 'gcx, 'tcx> as rustc..ty..relate..TypeRelation<'a, 'gcx, 'tcx>>::regions::hb8d7946cee89a361
  14:     0x7f5fd22788f2 - _<&'a mut I as core..iter..iterator..Iterator>::next::h40c39ed3041b027d
  15:     0x7f5fd2469f00 - rustc::ty::relate::relate_substs::ha20cc22e09ccff78
  16:     0x7f5fd24653c6 - rustc::ty::relate::relate_item_substs::hf669fec513c5c374
  17:     0x7f5fd2328a9b - _<rustc..infer..equate..Equate<'a, 'gcx, 'tcx> as rustc..ty..relate..TypeRelation<'a, 'gcx, 'tcx>>::tys::he042e4faca40a521
  18:     0x7f5fd24d390f - rustc::ty::relate::relate_type_params::_{{closure}}::h27ac1d6284ceaedc
  19:     0x7f5fd246977a - rustc::ty::relate::relate_substs::ha20cc22e09ccff78
  20:     0x7f5fd24653c6 - rustc::ty::relate::relate_item_substs::hf669fec513c5c374
  21:     0x7f5fd246f749 - _<rustc..ty..sty..TraitRef<'tcx> as rustc..ty..relate..Relate<'tcx>>::relate::h986b72a0959563fb
  22:     0x7f5fd2505851 - rustc::infer::InferCtxt::eq_trait_refs::_{{closure}}::h66412c5d53af9fe3
  23:     0x7f5fd23695c2 - rustc::infer::InferCtxt::eq_trait_refs::h1a047bc0d7cb9287
  24:     0x7f5fd243846d - rustc::traits::select::SelectionContext::match_impl::hc59fa4b835fb8273
  25:     0x7f5fd2518375 - rustc::traits::select::SelectionContext::assemble_candidates_from_impls::_{{closure}}::_{{closure}}::h477fb8af4d02a8d4
  26:     0x7f5fd2477760 - rustc::ty::trait_def::TraitDef::for_each_relevant_impl::h48255f01a2713db2
  27:     0x7f5fd24304d6 - rustc::traits::select::SelectionContext::assemble_candidates::h5d6c8f4149f33306
  28:     0x7f5fd242e20a - rustc::traits::select::SelectionContext::candidate_from_obligation::h57e2e1988c8b0c1d
  29:     0x7f5fd242c216 - rustc::traits::select::SelectionContext::select::hb8e03770ff77bdb9
  30:     0x7f5fd2507072 - rustc::traits::project::assemble_candidates_from_impls::_{{closure}}::h3bceaaae4cf282ac
  31:     0x7f5fd2424774 - rustc::traits::project::opt_normalize_projection_type::hb3e854cc28a2d57e
  32:     0x7f5fd2423441 - rustc::traits::project::normalize_projection_type::he1f9e46d61d58258
  33:     0x7f5fd2422bec - _<rustc..traits..project..AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc..ty..fold..TypeFolder<'gcx, 'tcx>>::fold_ty::h15923c441f55c226
  34:     0x7f5fd2422e74 - _<rustc..traits..project..AssociatedTypeNormalizer<'a, 'b, 'gcx, 'tcx> as rustc..ty..fold..TypeFolder<'gcx, 'tcx>>::fold_ty::h15923c441f55c226
  35:     0x7f5fd2422413 - rustc::traits::project::normalize_with_depth::hb7f7e51a4e47f9d6
  36:     0x7f5fd245be6e - rustc::ty::layout::normalize_associated_type::hb00ed9155d9e3b1b
  37:     0x7f5fd245ce26 - rustc::ty::layout::Layout::compute_uncached::hd0d122453c9f7281
  38:     0x7f5fd2480fb7 - rustc::ty::util::_<impl rustc..ty..TyS<'tcx>>::layout::ha131ccfdd57ad834
  39:     0x7f5fd245ce3e - rustc::ty::layout::Layout::compute_uncached::hd0d122453c9f7281
  40:     0x7f5fd2480fb7 - rustc::ty::util::_<impl rustc..ty..TyS<'tcx>>::layout::ha131ccfdd57ad834
  41:     0x7f5fd245eed8 - rustc::ty::layout::Layout::compute_uncached::hd0d122453c9f7281
  42:     0x7f5fd4813cb6 - _<rustc_lint..types..VariantSizeDifferences as rustc..lint..LateLintPass>::check_item::_{{closure}}::h3b1717a1203e5bc6
  43:     0x7f5fd48115b3 - rustc::infer::InferCtxtBuilder::enter::_{{closure}}::h53c4b8b89c93e797
  44:     0x7f5fd480d2db - _<rustc_lint..types..VariantSizeDifferences as rustc..lint..LateLintPass>::check_item::ha61bf20498c6f8a4
  45:     0x7f5fd250a3df - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_item::_{{closure}}::h2802a30b44885b0e
  46:     0x7f5fd2386fdc - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_item::hc8793eddc36b5a93
  47:     0x7f5fd23891ab - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_mod::h545bb6c839c10530
  48:     0x7f5fd250a654 - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_item::_{{closure}}::h2802a30b44885b0e
  49:     0x7f5fd2386fdc - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_item::hc8793eddc36b5a93
  50:     0x7f5fd23891ab - _<rustc..lint..context..LateContext<'a, 'tcx> as rustc..hir..intravisit..Visitor<'v>>::visit_mod::h545bb6c839c10530
  51:     0x7f5fd2509ece - rustc::lint::context::check_crate::_{{closure}}::h7bd599bdee209a50
  52:     0x7f5fd239064d - rustc::lint::context::check_crate::hc8fbee831bb2bd7c
  53:     0x7f5fd64df268 - rustc_driver::driver::phase_3_run_analysis_passes::_{{closure}}::he1de538a7584312e
  54:     0x7f5fd64d4182 - rustc::ty::context::tls::enter_global::_{{closure}}::h8575bf8dd37062fa
  55:     0x7f5fd6435694 - rustc::ty::context::TyCtxt::create_and_enter::he5466411552b055e
  56:     0x7f5fd648f16b - rustc_driver::driver::compile_input::h2d1b58b831f06a86
  57:     0x7f5fd64b5484 - rustc_driver::run_compiler::h833483649bdaa9c3
  58:     0x7f5fd652b4c7 - rustc_driver::run::_{{closure}}::hf976882a071eba86
  59:     0x7f5fd65262fb - rustc_driver::monitor::_{{closure}}::hd347b359cf4c5640
  60:     0x7f5fd640afed - std::panicking::try::call::hd16aacc09eeeaf9e
  61:     0x7f5fd5eb9d8b - __rust_try
  62:     0x7f5fd5eb9c6e - __rust_maybe_catch_panic
  63:     0x7f5fd64d178d - std::thread::Builder::spawn::_{{closure}}::hf8ba3712412ac8f6
  64:     0x7f5fd6424cfe - _<F as alloc..boxed..FnBox<A>>::call_box::hbf614b3f826456b6
  65:     0x7f5fd5ea2914 - std::sys::thread::Thread::new::thread_start::h2e98425c7fffa990
  66:     0x7f5fcdf93463 - start_thread
  67:     0x7f5fd5ad8e5c - clone
  68:                0x0 - <unknown>

error: Could not compile `regex`.

Caused by:
  Process didn't exit successfully: `rustc src/lib.rs --crate-name regex --crate-type lib -g --out-dir /tmp/regex/target/debug --emit=dep-info,link -L dependency=/tmp/regex/target/debug -L dependency=/tmp/regex/target/debug/deps --extern aho_corasick=/tmp/regex/target/debug/deps/libaho_corasick-e528bf4fdf3954ff.rlib --extern utf8_ranges=/tmp/regex/target/debug/deps/libutf8_ranges-5c6a6dacba3be7ce.rlib --extern thread_local=/tmp/regex/target/debug/deps/libthread_local-e5ce0d44bcaf00e6.rlib --extern memchr=/tmp/regex/target/debug/deps/libmemchr-c555f740a543880f.rlib --extern regex_syntax=/tmp/regex/target/debug/deps/libregex_syntax-6316a5c3b15f015b.rlib` (exit code: 101)
@nodakai
Copy link
Contributor Author

nodakai commented Jul 12, 2016

Lost the competition by 4 hours... Dupe of #34780 (I thought it didn't show up in the search...??)

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