-
Notifications
You must be signed in to change notification settings - Fork 170
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
SNOW-1747516: Native libraries are not relocated #1926
Comments
Hi @laurentgo,
|
Yes, we do use it via the JDBC API
No, we are not using using directly any snowflake internal classes
I haven't but independently of me using it, I still do think the relocation issue on the main driver should be fixed
👍
I will |
Hi @laurentgo |
Hi @laurentgo |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
3.19.0
OS X 14.6.1 (arm64)
Java 11
When using snowflake driver in an application, we experienced crashes we were able to attribute to use of
conscrypt
native library.After inspection we realized that snowflake driver packages a relocated version of conscrypt (and grpc) but none of the native libraries bundled with those two artifacts are relocated themselves, and because of it there's a chance that snowflake driver may load a different version of the native library than the one bundled with snowflake
Netty (and by extension
grpc-netty-shaded
) has a builtin mechanism to detect relocation, and as long as the native libraries use the same relocation pattern (with dots (.
) replaced with underscores (_
)), netty classes do not need to be rewritten.Conscrypt on the other hand does not seem to have a builtin mechanism, and along with the native libraries being renamed, the
NativeCryptoJni
class should be rewritten to change the prefix to search for.Application crashed (was expecting no crash)
No
The text was updated successfully, but these errors were encountered: