curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Memory "leak" when using gnutls as SSL library

From: Jan Stary via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 21 Nov 2019 10:24:00 +0100

> I think this topic has been covered already in some other emails I found
> in the archive, however I was still experiencing this myself the other
> day. So the way I got here was by running a couple of heap profilers
> (the first time I saw gnutls library being the culprit for the memory
> usage I assumed google perf tools were just lying but ... no) that
> claimed that some certificate function in gnutls had allocated more than
> 130MB of RAM for just a couple or three HTTPS requests.
>
> After seeing this I switched to libcurl-openssl which didn't do anything
> like that, it seems the SSL bits themselves were using 1 or 2 MB at most.

I don't know the relation of gnutls to openssl, but
https://www.openbsd.org/papers/bsdcan14-libressl/mgp00007.html
comes to mind. In case gnutls uses the openssl code, could it
be that they inherit some of the old bugs?

        Jan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-21