Skip to content
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

segfault in alpine 3.17 #567

Open
stealthrabbi opened this issue May 3, 2023 · 3 comments
Open

segfault in alpine 3.17 #567

stealthrabbi opened this issue May 3, 2023 · 3 comments
Labels

Comments

@stealthrabbi
Copy link

stealthrabbi commented May 3, 2023

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

@coolaj86
Copy link

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

@erikkri
Copy link

erikkri commented Jun 20, 2023

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
Copy link

erikkri commented Jun 20, 2023

We downgraded from 5.3.1 to 5.2.8, and then it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants