Crash in ssl_gnutls.c / _print_info
I was finally able to use a MinGW compiled GnuTLS with a clang-cl built libwget + Wget2.exe (a libgnutls.dll
so mixing CRTs should be no issue?). But I get a crash in commands like wget2 -d https://google.com
:
08:45:00.073 GnuTLS init
08:45:00.106 Certificates loaded: 96
08:45:00.107 GnuTLS init done
08:45:00.114 gnutls_handshake: (-53) Error in the push function.
08:45:00.114 TLS False Start: off
----
Then the crash. From WinDbg it seems the session
is NULL!?:
eax=00000000 ebx=00000000 ecx=1f2ec7bb edx=00000001 esi=05d0ee20 edi=00000000
eip=6588d686 esp=05a6f3c0 ebp=05a6f424 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
libgnutls!gnutls_auth_get_type+0x16:
6588d686 8b400c mov eax,dword ptr [eax+0Ch] ds:002b:0000000c=????????
The call-stack seems bogus too:
libgnutls!gnutls_auth_get_type+0x16
libwget!wget_tcp_connect(struct wget_tcp_st * tcp = <Value unavailable error>,
char * host = <Value unavailable error>,
unsigned short port = <Value unavailable error>)+0x2c8 [F:\MingW32\src\inet\Web\wget2\libwget\net.c @ 994]
Edit: The session
is not NULL. But some GnuTLS internals in struct gnutls_session_int
is NULL.
Edited by Gisle Vanem