Open cagriuslu-adyen opened 2 years ago
@cagriuslu-adyen thanks for reporting the issue, we will check it out and get back to you
Thanks for the thorough report. We've moved to a newer llvm version in 21.3. The new version produces different bitcode for some uncommon integer bit sizes, so that it hits a bug in Sulong. We're looking into it.
tracked internally as GR-35906
Describe GraalVM and your environment :
Have you verified this issue still happens when using the latest snapshot? No, the issue happens on the latest release version BUT NOT on
21.2.0
.Describe the issue OpenSSL-1.1.1 shared library built using the bundled LLVM toolchain throws
org.graalvm.polyglot.PolyglotException: java.lang.AssertionError: Invalid ElementType of Vector: VariableBitWidthType
duringContext.eval(source)
.How to compile the LLVM bitcode that causes the problem I use the bundled LLVM toolchain. This is how my CMake configures the OpenSSL library
And then this is how cmake builds it:
Code snippet or code repository that reproduces the problem Here is the Java file in which I try to load the ssl library into GraalVM.
I actually don't use openssl by itself, other parts of our code uses it internally. Any library that links ssl (dynamic or static) has the same exception.
Everything works with GraalVM 21.2.0, it is only broken in 21.3.0.
Additional info If I compile openssl using the bundled LLVM in 21.2.0, it works on 21.3.0. The bundled LLVM in 21.3.0 might be the culprit.