-
Notifications
You must be signed in to change notification settings - Fork 73
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
When running java application it fails loading libgcc_s.so.1
#275
Comments
Same here, though without Spring (Boot). We are using |
libgcc_s.so.1
I think we've missed a thing in the docs here, if this is alpine then libgcc needs to be installed on version 10 and above. That should be addable in the docker container with
|
We are using jib for our application. Is there any way to avoid this native, OS level dependency in this Java library? |
Similar to @dadadom, this is also an unfortunate additional requirement of the new version of this library. It goes against the portability of a Java library, so it would indeed be nice if there's a way to avoid this. |
Sorry, but I am using alpine linux in my Docker build. I would rather remove unleash from my gradle dependencies than introduce glibc in my environment.
|
Probably not for the near future no. v9.3.x and below don't rely on this though, you should be able to use those more or less indefinitely if the binaries are a deal breaker |
Okay I thought about it a bit. I think there might be some things we can do here to remove this native binary. I can't promise timelines though and it needs some investigation to see if it'll work |
Hey @rtc11, I don't know how to ask this without being dismissive, which is 100% not my intent, really just trying to understand so I know I'm moving in the right direction. Bear with me, but is adding a 1.5MB dependency into your container that painful? |
I get your intent! For me it is not only about fixing the problem but also limit the attack surface, maintainability and control over the environment. With larger, more permissive, complex and feature-full stdlib the attack-surface is larger. This is not very convenient in an environment with a lot of transitive dependencies that we hardly have control over. The other issue is that this happened runtime in production. This is not a unleash porblem, it is a very dangerous practice in general for runtime-dependencies. I could have containerized the project and then tested the container - but this is both time and resource consuming. It may be a temporary solution but this also helps pushing the limit for the ecosystem for what is OK. Hope this make sense! Edit: I will be using version 9.3.2 until some CVE will "force" me to remove it |
Describe the bug
This is the error we're registering on our Spring Boot application:
We've been reviewing and we think you moved to ALPHA version of yggdrasil.
Steps to reproduce the bug
No response
Expected behavior
No response
Logs, error output, etc.
Screenshots
No response
Additional context
No response
Unleash version
10.0.0
Subscription type
None
Hosting type
Self-hosted
SDK information (language and version)
Java 17
The text was updated successfully, but these errors were encountered: