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

LLVM assertion failure in core tests #34826

Closed
JeffBezanson opened this issue Feb 20, 2020 · 0 comments · Fixed by #34829
Closed

LLVM assertion failure in core tests #34826

JeffBezanson opened this issue Feb 20, 2020 · 0 comments · Fixed by #34829
Assignees
Labels
compiler:codegen Generation of LLVM IR and native code kind:bug Indicates an unexpected problem or unintended behavior

Comments

@JeffBezanson
Copy link
Sponsor Member

I get this on master with LLVM assertions enabled:

Test  (Worker) | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
core       (1) |        started at 2020-02-20T14:14:10.279
julia: /home/jeff/src/julia/deps/srccache/llvm-9.0.1/lib/IR/Constants.cpp:1005: static llvm::Constant* llvm::ConstantArray::getImpl(llvm::ArrayType*, llvm::ArrayRef<llvm::Constant*>): Assertion `V[i]->getType() == Ty->getElementType() && "Wrong type in array element initializer"' failed.

signal (6): Aborted
in expression starting at /home/jeff/src/julia/test/core.jl:4930
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7f0196091399)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_ZN4llvm13ConstantArray7getImplEPNS_9ArrayTypeENS_8ArrayRefIPNS_8ConstantEEE at /home/jeff/src/julia/usr/bin/../lib/libLLVM-9jl.so (unknown line)
_ZN4llvm13ConstantArray3getEPNS_9ArrayTypeENS_8ArrayRefIPNS_8ConstantEEE at /home/jeff/src/julia/usr/bin/../lib/libLLVM-9jl.so (unknown line)
julia_const_to_llvm at /home/jeff/src/julia/src/intrinsics.cpp:260
emit_unbox at /home/jeff/src/julia/src/intrinsics.cpp:333
julia_to_native at /usr/include/c++/7/bits/stl_bvector.h:81 [inlined]
emit_a_ccall at /home/jeff/src/julia/src/ccall.cpp:1756
emit_ccall at /home/jeff/src/julia/src/ccall.cpp:1702
emit_expr at /home/jeff/src/julia/src/codegen.cpp:4170
emit_ssaval_assign at /home/jeff/src/julia/src/codegen.cpp:3862
emit_stmtpos at /home/jeff/src/julia/src/codegen.cpp:4056 [inlined]
emit_function at /home/jeff/src/julia/src/codegen.cpp:6665
jl_compile_linfo at /home/jeff/src/julia/src/codegen.cpp:1256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant