Skip to content

Commit afe7222

Browse files
authored
SECURITY.md: Mention gcompat for Alpine (#12365)
In the olden days Alpine didn't work at all. Then it worked. And then sometime in 2021 it started failing (#8751) because of missing __strndup. The most recent deep investigation showed it is missing __strdup these days #11660 (comment) . I'm not expecting too many people to find this themselves, but we can link to it when they experience problems.
1 parent 1a7042a commit afe7222

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

SECURITY.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,10 @@ is an option](#tls-with-conscrypt). Otherwise you need to [build your own 32-bit
330330
version of
331331
`netty-tcnative`](https://netty.io/wiki/forked-tomcat-native.html#wiki-h2-6).
332332

333-
If on Alpine Linux and you see "Error loading shared library libcrypt.so.1: No
334-
such file or directory". Run `apk update && apk add libc6-compat` to install the
335-
necessary dependency.
336-
337-
If on Alpine Linux, try to use `grpc-netty-shaded` instead of `grpc-netty` or
338-
(if you need `grpc-netty`) `netty-tcnative-boringssl-static` instead of
339-
`netty-tcnative`. If those are not an option, you may consider using
340-
[netty-tcnative-alpine](https://github.com/pires/netty-tcnative-alpine).
333+
If on Alpine Linux, depending on your specific JDK you may see a crash in
334+
netty_tcnative. This is generally caused by a missing symbol. Run `apk install
335+
gcompat` and use the environment variable `LD_PRELOAD=/lib/libgcompat.so.0` when
336+
executing Java.
341337

342338
If on Fedora 30 or later and you see "libcrypt.so.1: cannot open shared object
343339
file: No such file or directory". Run `dnf -y install libxcrypt-compat` to

0 commit comments

Comments
 (0)