-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Curl Easy segmentation fault with requests to external site #390
Comments
Same here. Using this package (whether through |
Hey, thanks for the detailed reproduction steps! Right now I am not finding time to look into this, I know it is usually not feasible, but if possible try using a non-alpine image to see if the issue persists. |
If this can help people about this issue, this is related to openssl version in alpine (3.19 and lower) after analysis deeper the issue (I have the same in my usecase) with segfault handler trapping, I can see this kind of trace
I switch to debian 12 image (standard or slim) for testing and this work correctly (without segfault) |
Curl Easy segmentation fault with requests to external site
Thank you for this library :). Please let me know if any other information would help.
Describe the bug
I get a segmentation fault when I try to send a request using Curl Easy to an external site such as
There is no issue with localhost/127.0.0.1.
I discovered this when trying to send requests using sync-request-curl in the specific environment with the following inside a Dockerfile:
It seems to work with no issues locally and with other base images, e.g.
node:18-alpine
.This was just an environment that was configured at my workplace.
To Reproduce
Code that causes segfault (click to view)
Docker image here. Full repository here.
Have the local server running on one terminal
Then in another terminal run
src/request.ts
withVersion information
Node Libcurl Version
3.0.0
Curl Version:
7.83.1
node -e "console.log(require('node-libcurl').Curl.getVersionInfoString())" (click to view)
$ node -e "console.log(require('node-libcurl').Curl.getVersionInfoString())" Version: libcurl/7.86.0 OpenSSL/not available zlib/1.2.12 brotli/1.0.9 zstd/1.4.9 libidn2/2.1.1 libssh2/1.10.0 nghttp2/1.47.0 Protocols: dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp Features: AsynchDNS, Debug, TrackMemory, IDN, IPv6, Largefile, NTLM, NTLM_WB, SSL, libz, brotli, TLS-SRP, HTTP2, UnixSockets, HTTPS-proxy, alt-svc
Operating System
Alpine Linux v3.16 x86_64
neofetch output (click to view)
Node.js Version:
18.9.1
npm version output (click to view)
Additional Context
This may be related to #198.
The text was updated successfully, but these errors were encountered: