Skip to content

Segmentation fault while accessing https://cloudflare-quic.com/ with --http3 #6824

Closed

Description

@icebluey
# curl-http3 -vI --http3 https://cloudflare-quic.com/
*   Trying 2606:4700:10::ac43:9eb:443...
* Connect socket 5 over QUIC to 2606:4700:10::ac43:9eb:443
* connect to 2606:4700:10::ac43:9eb port 443 failed: Resource temporarily unavailable
*   Trying 2606:4700:10::6816:826:443...
* Connect socket 6 over QUIC to 2606:4700:10::6816:826:443
Segmentation fault

[curl -V output]

# curl-http3 -V
curl 7.76.0 (x86_64-pc-linux-gnu) libcurl/7.76.0 GnuTLS/3.7.1 zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 c-ares/1.17.1 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.43.0 ngtcp2/0.1.0-DEV nghttp3/0.1.0-DEV
Release-Date: 2021-03-31
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: alt-svc AsynchDNS brotli HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets zstd

I'm not sure how this happened.

Activity

  1. bagder commented on Apr 1, 2021

    @bagder
    Member

    I cannot reproduce, but my ngtcp2 setup is not using GnuTLS.

    Is this using ngtcp2 and nghttp3 from their respective git masters?

    Can you run it with gdb and show us the stack trace for the crash?

  2. icebluey commented on Apr 1, 2021

    @icebluey
    Author

    nghttp3: git9858f6d
    ngtcp2: git2fd9ce1
    ngtcp2 and nghttp3 was built from their respective git masters.
    GnuTLS: 3.7.1

    # gdb -q --args curl-http3 -vI --http3 https://cloudflare-quic.com/
    Reading symbols from /usr/bin/curl-http3...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /bin/curl-http3 -vI --http3 https://cloudflare-quic.com/
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    *   Trying 2606:4700:10::ac43:9eb:443...
    * Connect socket 9 over QUIC to 2606:4700:10::ac43:9eb:443
    *   Trying 172.67.9.235:443...
    * Connect socket 10 over QUIC to 172.67.9.235:443
    * connect to 2606:4700:10::ac43:9eb port 443 failed: Resource temporarily unavailable
    *   Trying 2606:4700:10::6816:926:443...
    * Connect socket 11 over QUIC to 2606:4700:10::6816:926:443
    
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff785ad2a in gnutls_x509_trust_list_deinit () from /lib64/libgnutls.so.30
    (gdb) backtrace
    #0  0x00007ffff785ad2a in gnutls_x509_trust_list_deinit () from /lib64/libgnutls.so.30
    #1  0x00007ffff77c499f in gnutls_certificate_free_credentials () from /lib64/libgnutls.so.30
    #2  0x00007ffff7fca8b1 in ?? () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #3  0x00007ffff7f6ee1c in ?? () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #4  0x00007ffff7f6f213 in ?? () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #5  0x00007ffff7f6f522 in ?? () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #6  0x00007ffff7f9b1d3 in ?? () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #7  0x00007ffff7f9c3e6 in curl_multi_perform () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #8  0x00007ffff7f78d93 in curl_easy_perform () from /usr/lib64/curl/private/libcurl-gnutls.so.4
    #9  0x000055555556fba7 in ?? ()
    #10 0x000055555555f984 in ?? ()
    #11 0x00007ffff7a2f555 in __libc_start_main () from /lib64/libc.so.6
    #12 0x000055555555fa49 in ?? ()
    (gdb) 
    
    
  3. added a commit that references this issue on Apr 6, 2021
    68aa991
  4. bagder commented on Apr 6, 2021

    @bagder
    Member

    It's a curl bug, not a gnutls one. You can close the one on gnutls now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions