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

Segmentation fault on TLS handshake #8024

Closed
juanparati opened this issue Nov 16, 2021 · 3 comments
Closed

Segmentation fault on TLS handshake #8024

juanparati opened this issue Nov 16, 2021 · 3 comments

Comments

@juanparati
Copy link

I did this

curl -v https://graph.facebook.com/v12.0/act_111/

however with another sites that uses TLS it's working normally (Example: curl -v https://google.com)

I expected the following

Return normal response

I received the following

*   Trying 157.240.200.16:443...
* TCP_NODELAY set
* Connected to graph.facebook.com (157.240.200.16) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
[1]    15206 segmentation fault (core dumped)  curl -v https://graph.facebook.com/v12.0/act_111/

This is the GDB output:

Starting program: /usr/bin/curl https://graph.facebook.com/v12.0/act_111/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xfffff681df90 (LWP 15306)]
[Thread 0xfffff681df90 (LWP 15306) exited]

Thread 1 "curl" received signal SIGSEGV, Segmentation fault.
0x0020fffff7a7707c in ?? ()

curl/libcurl version

curl 7.68.0 (aarch64-unknown-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

operating system

Linux homestead74 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:29:20 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux (Virtualized environment)

I tested this case with curl 7.77 on Mac OS (21.1.0 Darwin Kernel - ARM64) and also with curl 7.64.0 (Debian x86_64) and in both cases it works perfectly.

@bagder
Copy link
Member

bagder commented Nov 16, 2021

This is probably a case of a bad TLS library (version). See also #7932 (comment)

@juanparati
Copy link
Author

Please proceed to close this ticket as duplicate

@bagder
Copy link
Member

bagder commented Nov 16, 2021

Duplicate of #7932

@bagder bagder marked this as a duplicate of #7932 Nov 16, 2021
@bagder bagder closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants