-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Version 0.12.0 compiled with GraalVM fails to call libsignal-client #1305
Comments
Though it doesn't explicitly say so in the warning above, I'd check if the version of
The largest version number of the first output specifies the minimal version of Regarding the warnings: These can be safely ignored (see discussion #1254). |
I doubled checked and objdump on libsignal_jni.so shows that glibc matches the environment. The precompiled versions from AsamK are not, and give an error indicating as such. This is one of the reasons that I've always built from source. I'm not sure what all changed with this version, but I can still compile v0.11.11 and it works just fine with both GraalVM EE and the latest free GraalVM. This issue has started with v0.12.0. |
If you're willing/able to execute "downstream" binaries in your environment (after backing up your data), you could give signal-cli_ubuntu2004_amd64.gz or signal-cli_ubuntu2004_arm64.gz a try depending on your host architecture (see https://media.projektzentrisch.de/temp/signal-cli/).
|
@selfbc: I'm able to reproduce your warning if I try to build a (completely) static binary using GraalVM (by passing the options "
(That's because you'd need to use a statically linked IIRC, you might also see the above error message if you "simply" forget to correctly reference the native library during the build (again, |
Does it work for you using the new GraalVM release (see https://medium.com/graalvm/a-new-graalvm-release-and-new-free-license-4aab483692f5 and https://www.graalvm.org/downloads/)? I have traditionally used GraalVM EE but snagged the latest free version (referenced above) when I started encountering this issue. I could attempt to find and download the older version of GraalVM that you're referencing, but I'd hope that @AsamK would want it to work with the new GraalVM. |
@selfbc: I triggered a test build using the same pre-built
… but it looks like it'll take considerably longer than the previous build runs due to the default optimization level (and I unfortunately chose a rather smallish amd64 build instance). I'll compare the results later tonight and keep you posted. |
The results are in: Oracle GraalVM 17.0.8+9.1 works as well; with the above optimization level, it's slower (but not massively–the first run which took ages failed because it eventually "ran out of memory", which is really strange given 24GB of RAM and the stated requirements of consecutive runs which were all successful), uses less memory during the build ("Peak RSS" showed 4.09GB vs. 6.61GB), and produces a larger executable while emitting the same/slightly reworded warnings as GraalVM 22.3.3 Java 17 CE.
Comparing the output of @selfbc: I did not try to select the " EDIT: The option I was looking for would have been |
Rebuilding everything (to include libsignal) got it working. I'm still not completely sure what was causing the issue, but I am running a fairly hardened system to include kernel hardening with Grsecurity. After getting it mostly working, I ran into this read receipt store error that I'm hoping is the query that AsamK just fixed. He hasn't responded to me in some time though, so my only hope is trial and error. Thanks for all of your help on this, it is definitely appreciated. It's great to have folks like you when the authors of software aren't so responsive and said named software is often riddled with bugs. |
I typically use GraalVM EE, but I loaded the most recent free version (Java 17 x64 Linux) from https://www.graalvm.org/downloads/ to verify that something funky wasn't going on with the EE version.
After compiling, when attempting to use signal-cli I get the following error:
Please note that compiling signal-cli with GraalVM has worked for me on all previous versions to include v0.11.11.
I did see the following warnings during compilation:
Please advise.
The text was updated successfully, but these errors were encountered: