-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
JNA: apps built with native-image cannot write into local Unix sockets #4282
Comments
I've made a smaller example with a shorter stacktrace: https://github.com/7mind/graalvm-native-image-jna-bad-address-bug-demo/tree/ca7d3578e9081b64fcd0eede6a20d43ada2892ed
|
It's interesting that I can read from the socket w/o any problems, |
Here is an excerpt from the strace of the native-image:
|
Another observation: in case I use The allocation looks like:
The corresponding strace:
Same code works fine under JVM. |
Seems to be relevant: #2152 That minimal test passes as it is and passes when I modify it to write into |
Thank you for reporting this, we will take a look into it and get back to you. |
Tracked internally at GR--36862 |
I wonder if this issue is relevant too docker-java/docker-java#1820 |
Yes, it is. |
@oubidar-Abderrahim @aabbou @loicottet @peter-hofer sorry about pinging you, but was there any progress on this?.. this blocks a lot of possible usecases |
Seems like it works on 22.3. Also, oddly, it works on I'm using https://github.com/oracle/graalvm-reachability-metadata with automatically generated configs. |
docker-java
a popular library, fails to communicate with local docker instances when built bynative-image
but the same code works perfectly under JVM. It seems to be some kind of a weird problem with JNA built by NI or NI itself, at leastdocker-java
developers think that.Here is a simple repro: https://github.com/7mind/graalvm-native-image-jna-bad-address-bug-demo
Could you investigate please?
UPD:
The text was updated successfully, but these errors were encountered: