zeromq.js
zeromq.js copied to clipboard
segfault in alpine 3.17
I'm trying to use zeromq in alpine 3.17, but I get a segfault on import. Docker file contains:
FROM node:18-alpine3.17 AS builder
RUN apk add --update --no-cache \
bash \
g++ \
ca-certificates \
lz4-dev \
musl-dev \
cyrus-sasl-dev \
openssl-dev \
make \
python3
If I create a simple js file that has the following, the program segfaults. I am installing zeromq from my lock file which targers version 5.3.1
const zeromq = require('zeromq');
This did work on node:14-alpine3.13
I had the same or a similar segfault problem for node v18 on Apline.
Seems like zeromq is using a lot of memory by default, we are getting a segfault if we not raise the memory to several GB
We downgraded from 5.3.1 to 5.2.8, and then it worked