-
Notifications
You must be signed in to change notification settings - Fork 107
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
Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled #304
Comments
hi, Can you reliably trigger the same error? The crash report such as (hs_err_pid32716.log) is helpful here. Please upload it. I don't think hsdis matters unless you need to read the assembly code. Message "Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled" is a warning not an error. it won't cause the crash of hotspot. |
Hi! I forgot to add an important notice. The program crashes after usage of JavaCPP Presets, but it can crash at different time. Sometimes it crashes even after all the interactions with JavaCPP Presets. I use corretto 11.0.17.8.1. It was installed with: wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add -
sudo add-apt-repository 'deb https://apt.corretto.aws stable main'
sudo apt-get update && sudo apt-get install -y java-11-amazon-corretto-jdk I apply hs_err_pid32716.log (part 1):
|
I apply hs_err_pid32716.log (part 2):
|
at
|
I ran some test twice and got
and
|
JVM crash is not reproducible with JDK 17 (Amazon Corretto 17.0.6). I tried to run project with Azul JDK:
It also led to JVM crash. |
Describe the bug
I use JavaCPP Presets library for LLVM. It's used to interact with Clang through LibClang API from Java.
I built small project from examples of JavaCPP Presets and successfully interacted with Clang from it (both on WSL2 and Windows 10, with same JDK).
When I integrated these logic into my project (unfortunately, I'm not able to provide the code), it led to JVM crash on the code interacting with Clang from WSL2. Everything works on Windows 10 for my project!
The program fails on WSL2 with such error:
I can provide the information from error report
/home/user/[git-project-hosting]/[project]/[subproject]/hs_err_pid15477.log
if you require . File text is too long to be applied here.I tried to solve the problem. It's described in additional context.
To Reproduce
I cannot provide steps to reproduce as I cannot provide the code.
Expected behavior
I expect my code works on WSL2 with JDK 11 (as it does on Windows 10 now).
Screenshots
Screenshots are not attached.
Platform information
Additional context
I tried to build hsdis-amd64.so as it described in article and put it to
/usr/lib/jvm/java-11-amazon-corretto/lib
.I used two ways (in both of them I used binutils-2.28):
./src/utils/hsdis
directory in the repository, ranmake BINUTILS=../../../../binutils-2.28 ARCH=amd64
.Result (error):
jdk-11+11
tag, opened./src/utils/hsdis
directory in the repository, ranmake BINUTILS=../../../../binutils-2.28 ARCH=amd64
.Result: I got
hsdis-amd64.so
and put it to/usr/lib/jvm/java-11-amazon-corretto/lib
.Then I ran the project and got same error with different description below (Loaded disassembler from /usr/lib/jvm/java-11-amazon-corretto/lib/hsdis-amd64.so):
I can provide the information from error report
/home/user/[git-project-hosting]/[project]/[subproject]/hs_err_pid32716.log
if you require.The text was updated successfully, but these errors were encountered: