-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
AWT dynamic shared libraries loading seems broken #6244
Comments
When I run your reproducer, I see the following recommendation:
This suggests that even though you generated reachability metadata with the tracing agent, it wasn't picked up. When I build with: $ $GRAALVM_HOME/bin/native-image --no-fallback -H:ConfigurationFileDirectories=native-image Main the binary seems to run fine. Please feel free to re-open if this doesn't fix the problem on your end |
@fniephaus Thank you 🙏 It fixed the GraalVM CE run, but it didn't help Mandrel's
(yes, the .so file is there) We will debug it in Mandrel's GH issues... |
With this tiny reproducer app:
I am unable to make it work at runtime with neither GraalVM CE nor Mandrel, although with slightly different error reports.
GraalVM CE seems to fail at attempting to init the lib while Mandrel fails at
dlopen
(although the file is really there and it seems found and loaded by the nativedl
).Steps to reproduce
(or
native-image --no-fallback -g -O0 -H:+TrackNodeSourcePosition Main
to usegdb
...)GraalVM
See the full log: graalvm.log [1.6M]
Seems fine:
but it crashes
Gdb quick poke around:
Mandrel
Using a home built Mandrel, mandrel-23.0-SNAPSHOT.tar.xz [195M],
made of GraalVM a81ecbe with this diff:
I get a similar failure with
see full log: mandrel.log [910K]
Although it seems to crash on
dlopen
returning null pointer as if the library wasn't found while it was clearly found just fine.Misc
Thx for pointers (pun intended)
K.
FYI: @jerboaa @zakkak
The text was updated successfully, but these errors were encountered: