On Sat, Oct 26, 2013 at 6:03 PM, Philip Herron <redbr...@gcc.gnu.org> wrote:

> Hey
>
> I started looking around and working on
> https://github.com/mozilla/rust/issues/9382
>
> And the crash is:
>
> Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) ==
> Args[i]->getType()) && "Calling a function with a bad signature!"),
> function init, file
> /Users/redbrain/workspace/rust/src/llvm/lib/IR/Instructions.cpp, line 281.
>
> Program received signal SIGABRT, Aborted.
> [Switching to process 83206 thread 0x1203]
> 0x00007fff8780a212 in __pthread_kill ()
>
> This is an ice in the llvm side of things from the backtrace. Just
> wondering the llvm code base that is pulled in on ./configure is that the
> official llvm or a rust maintained version. If so is it someting to look at
> fixing the error on the llvm side or the compiler side to gen different
> code maybe.
>
> --Phil
>

LLVM makes heavy use of assertions to enforce the invariants the caller of
the API is supposed to guarantee. In all likelihood this is a bug in the
Rust frontend, where it is generating an invalid call instruction.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to