5 Jun 22:02
Re: GnuTLS and valgrind errors
From: Simon Josefsson <simon <at> josefsson.org>
Subject: Re: GnuTLS and valgrind errors
Newsgroups: gmane.network.gnutls.general
Date: 2008-06-05 20:02:54 GMT
Subject: Re: GnuTLS and valgrind errors
Newsgroups: gmane.network.gnutls.general
Date: 2008-06-05 20:02:54 GMT
Btw, I just wrote a new self-test tests/mini.c that does a TLS handshake without using fork or any other system-specific functions. It should be perfect to use as a starting point to find memory leaks... http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=blob;f=tests/mini.c;hb=HEAD ...however, running valgrind on it right now only prints the 5 "normal" libgcrypt related memory leaks. I also ran kcachegrind on it, but the most time-consuming gnutls function is gnutls_global_deinit which is hardly worth optimizing. The majority of time is spent inside libgcrypt doing mpi operations. I'll try to get time to extend the self-test to test X.509, OpenPGP etc. It would be nice to test through all of the ciphersuites... or even have a big program that calls all functions in gnutls, so we can do automated code-coverage tests. /Simon
RSS Feed