zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

segfault in alpine 3.17

Open stealthrabbi opened this issue 2 years ago • 3 comments

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

stealthrabbi avatar May 03 '23 11:05 stealthrabbi

I had the same or a similar segfault problem for node v18 on Apline.

coolaj86 avatar Jun 20 '23 04:06 coolaj86

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

erikkri avatar Jun 20 '23 12:06 erikkri

We downgraded from 5.3.1 to 5.2.8, and then it worked

erikkri avatar Jun 20 '23 13:06 erikkri