question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "getdtablesize"

See original GitHub issue

Hi there

My client run task with android target fails with the below link error:

E/AndroidRuntime(19668): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "getdtablesize" referenced by "/data/app/hello.hellodesktop-XiRilnh49ahx5XXKtJJqtg==/lib/arm64/libsubstrate.so"...

This specifically occurs when launching our enterprise jar with Assisted Configuration of Native Image Builds. I’m unfortunately unable to replicate the issue in a simple project

Env: GraalVM CE 20.3.0-dev-20200814_0227 and it’s bundled Java 11 Ubuntu 16.04
Maven client plugin version 0.1.31

full-stacktrace.log

Any assistance would be greatly appreciated

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jperedadnrcommented, Aug 21, 2020

Ok, looks like it could be added via JMX. Your log shows org.apache.log4j.jmx and org.apache.logging.log4j.core.jmx. Is there a way you can easily remove these dependencies and test again?

0reactions
LeroyChristopherDunncommented, Aug 26, 2020

I took the following steps to resolve the issue:

  1. I disabled log4j JMX with a system property as per log4j documentation

  2. We were using async loggers in our project. I made sure to disable them by removing the async logging system property and the Disruptor dependency as per log4j documentation

  3. client:build was now failing with a ClassNotFound error. I explicitly added back the now unused Disruptor dependency as per this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate ...
And I find symbol _ZNSt6__ndk17codecvtIcc9mbstate_tE2idE appears on the static library I build. I can not find reference of ndk in my source ...
Read more >
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate ...
UnsatisfiedLinkError : dlopen failed: cannot locate symbol "issetugid" referenced by "libmozglue.so"... E/AndroidRuntime( 7779): at java.lang.Runtime.
Read more >
How to resolve dependency between .so libraries, the cannot ...
iwatcher-2/lib/arm/libgsl.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "cblas_sdsdot" referenced by "libgsl.so"...
Read more >
UnsatisfiedLinkError: dlopen failed: cannot locate symbol ...
test E/VLC/LibVLC: Can't load vlcjni library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_Unwind_Resume" referenced by ...
Read more >
java.lang.UnsatisfiedLinkError: dlopen failed ... - photon forum
The app crashes with java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt6__ndk15mutexD1Ev" referenced by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found