@jgaskins We recently identified a memory leak with the OpenSSL library in the Alpine docker images. Removing the openssl packages and compiling it from source “fixes” the issue for us:
apk del openssl-dev openssl-libs-static
apk add curl perl linux-headers
curl -Ls "https://github.com/openssl/openssl/releases/download/openssl-3.3.3/openssl-3.3.3.tar.gz" | tar xz
cd openssl-3.3.3
./Configure --openssldir=/etc/ssl && make -j
Then:
PKG_CONFIG_PATH=$PWD/openssl-3.3.3 crystal build ...
We haven’t been able to define what’s at fault, even after lots and lots of debugging sessions. Some SSL free methods don’t are called but don’t do some internal calls or something.
Maybe a configure feature in the openssl package that doesn’t work well with something we do in the Crystal bindings?