-
Notifications
You must be signed in to change notification settings - Fork 76
When running java application it fails loading libgcc_s.so.1
#275
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
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 8000 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 |
Thanks for the response @rtc11, yeah that makes sense. 9.3.2 should be okay for a while. I'll carve out some time to see what I can do about this next week with a bit of luck |
Hey folks, so we've heard quite a lot of feedback on the new binary embedded in the jar. We've taken this seriously and we're trying our best to make a plan here. While we can't free ourselves from this binary completely, what we can do is embed a WASM version of this that runs on a pure Java WASM runtime. We're currently experimenting with that now. In theory that should address some of the security and portability concerns. We'd love some feedback on this approach if anyone is willing to share |
I've since moved on to a different project/company, so I have less skin in the game currently so to say. Personally I would still trend more towards the OpenFeature Unleash provider for the use-case we were using unleash for instead of this additional Java WASM / libgcc requirement. (we noticed that there was an unleash provider available already: https://github.com/open-feature/java-sdk-contrib/tree/main/providers/unleash) |
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: