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

Simplest possible rust-call function will ICE #22566

Closed
nagisa opened this issue Feb 20, 2015 · 4 comments
Closed

Simplest possible rust-call function will ICE #22566

nagisa opened this issue Feb 20, 2015 · 4 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@nagisa
Copy link
Member

nagisa commented Feb 20, 2015

extern "rust-call" fn a() {}
fn main(){}
error: internal compiler error: unimplemented foreign functions with RustCall ABI
note: the compiler unexpectedly panicked. 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
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189

stack backtrace:
   1:     0x7fd4dcd2da60 - sys::backtrace::write::h17046f691c944fd6wlB
   2:     0x7fd4dcd56650 - failure::on_fail::hc6163ed550dbd15faOK
   3:     0x7fd4dcc9ce10 - rt::unwind::begin_unwind_inner::hf466231ca0fbfbbdvsK
   4:     0x7fd4da0099c0 - rt::unwind::begin_unwind::h15994696547183619422
   5:     0x7fd4da00a180 - diagnostic::Handler::bug::h1bc3ded4b9cf6157abF
   6:     0x7fd4da00a280 - diagnostic::Handler::unimpl::h7925c715a3764a3cQbF
   7:     0x7fd4dafdc570 - session::Session::unimpl::h9bfd0f79c5452bebDes
   8:     0x7fd4dbab9a90 - trans::foreign::llvm_calling_convention::hf7ec188cc1fffae5BWB
   9:     0x7fd4db988b30 - trans::base::get_item_val::hc88b3b1356c15164vkv
  10:     0x7fd4db986410 - trans::base::trans_item::ha4ea07b91896bde9tPu
  11:     0x7fd4dba750f0 - trans::base::trans_crate::hc435c9fdb6f30ff4NMv
  12:     0x7fd4dd378250 - driver::phase_4_translate_to_llvm::hb02bd998f41b29a0wPa
  13:     0x7fd4dd351170 - driver::compile_input::h91ff1ed16e22d05cEba
  14:     0x7fd4dd424ea0 - run_compiler::h9c581f85e29a6b265bc
  15:     0x7fd4dd423500 - thunk::F.Invoke<A, R>::invoke::h5155567596601403298
  16:     0x7fd4dd4223f0 - rt::unwind::try::try_fn::h5629523784837248188
  17:     0x7fd4dcdc2f20 - rust_try_inner
  18:     0x7fd4dcdc2f10 - rust_try
  19:     0x7fd4dd4226a0 - thunk::F.Invoke<A, R>::invoke::h7807062886684583533
  20:     0x7fd4dcd42190 - sys::thread::thread_start::h57c9c75c73c301cbfVF
  21:     0x7fd4d6ce42b0 - start_thread
  22:     0x7fd4dc923249 - __clone
  23:                0x0 - <unknown>
@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Feb 20, 2015
@ghost ghost added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Apr 16, 2015
@jooert
Copy link
Contributor

jooert commented Apr 30, 2015

Updated example still causes an ICE using rustc from master:

#![feature(unboxed_closures)]
extern "rust-call" fn a() {}
fn main(){}

@sfackler sfackler removed the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Jun 18, 2015
@arielb1
Copy link
Contributor

arielb1 commented Jul 8, 2015

Clone of #22565

@steveklabnik
Copy link
Member

Triage: tracked by glacier

@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. and removed C-bug Category: This is a bug. labels Jul 22, 2017
@steveklabnik
Copy link
Member

steveklabnik commented Nov 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

7 participants