-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
LLVM assertion hit while building SpiderMonkey bindings #28502
Comments
I've reduced the crash to: http://is.gd/wMIy8s |
I've reduced it even further. http://is.gd/IOPhRx
|
Looks like we're not generating a shim to bridge between the C ABI and the Rust ABI when the function appears in an |
I've found this issue report since I just hit the same issue in my pet project. One thing which might be relevant is that the example http://is.gd/IOPhRx compiles fine on my Windows machine and fails on my Linux machine. Both machines are running:
|
@steveklabnik @michaelwu's testcase doesn't crash on stable or nightly. |
Guess it's fixed. |
I have some code at https://gist.github.com/michaelwu/1040fa8f592ad020f893 . Building it with the latest nightly using
rustc --crate-type lib jsapi.rs
results in this assertionAssertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/llvm/lib/IR/Instructions.cpp, line 995.
.I'm using rustc 1.5.0-nightly (cff0411 2015-09-17).
The text was updated successfully, but these errors were encountered: