-
Notifications
You must be signed in to change notification settings - Fork 28
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
Need help with a JNI issue #81
Comments
Can you find that exact file being opened (ideally be very sure via syscall tracing) and list its symbols? Maybe upgrading JNR would help? |
Here are the "ristretto" related symbols I can find:
This file is actually a symlink:
I'll look into upgrading JNR, but currently this looks to me like the package really doesn't contain the required symbol. |
OK, so: looks like annoyingly the versions didn't get revved when new symbols got added, there's just 1.0.18-"stable" which has a ton of functionality that not everything called "1.0.18" has. I think the way to do this properly is to do feature detection? |
I'm getting lost here, because looking at the source files of libsodium in focal I see the function defined:
My C foo is totally rusty, but if I'm not wrong, I don't see anything in the Makefile.am why this file should be excluded from compilation:
But when I run nm on the distributed .so file, I don't see the symbol. |
What happens if you build the package via apt-src? |
Sorry for not following up earlier, I was away on vacation. I just build the package via
It looks like the sourcefile |
Hi there, this is not a bug report but a request for help with a problem I have using caesium.
I use caesium successfully in a small project on AMD64, using caesium 0.14 on a Debian Buster system x86 with libsodium 1.0.17-1 installed. Now I would like to make that entire project run under docker on an ARM platform -- a Raspberry Pi 4.
The base image I use is arm32v7/adoptopenjdk:16-jdk-hotspot-focal and I install libsodium23 and libsodium-dev, both of which are version 1.0.18-1.
The problem is that I get segmentation faults as soon as my code tries to generate a hash. I can call my "other code" (i.e. that does not use any caesium code) just fine, so the following is not a general ARM/JDK issue. I would need some help how to proceed.
Here's the simple enough clojure code:
As I said above, that code works without problem on x86. But as soon as I run into this part on ARM, I get a crash:
When I look into the generated logfile, I see the following:
This looks to me like a version mismatch. However, what is weird to me is that the code just works fine with the old libsodium23 version (1.0.17-1) on my main machine under x86, despite issue #70 whereas the crashing version on ARM actually does use a 1.0.18-1.
Any idea?
The text was updated successfully, but these errors were encountered: