NS/dev/performance-3.0.5/source/curl/lib
2005-06-29 13:51:58 +00:00
..
arpa_telnet.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
base64.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
base64.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ca-bundle.crt Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ca-bundle.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ca-bundle.h.in Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
config-mac.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
config-riscos.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
config-vms.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
config-win32.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
config.h.in Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
connect.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
connect.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
content_encoding.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
content_encoding.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
cookie.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
cookie.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
curllib.vcproj Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
dict.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
dict.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
easy.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
escape.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
escape.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
file.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
file.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
formdata.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
formdata.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ftp.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ftp.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getdate.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getdate.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getdate.y Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getenv.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getinfo.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getinfo.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getpass.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
getpass.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
hash.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
hash.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
hostip.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
hostip.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
http.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
http.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
http_chunks.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
http_chunks.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
if2ip.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
if2ip.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
inet_ntoa_r.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
krb4.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
krb4.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ldap.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ldap.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
libcurl.def Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
llist.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
llist.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.am Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.b32 Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.b32.resp Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.in Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.m32 Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.riscos Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
Makefile.vc6 Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
memdebug.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
memdebug.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
mprintf.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
multi.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
netrc.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
netrc.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
progress.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
progress.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
README.encoding Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
README.memoryleak Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
security.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
security.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
sendf.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
sendf.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
setup.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
share.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
share.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
speedcheck.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
speedcheck.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ssluse.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
ssluse.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
strequal.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
strequal.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
strtok.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
strtok.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
telnet.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
telnet.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
timeval.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
timeval.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
transfer.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
transfer.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
url.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
url.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
urldata.h Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00
version.c Branched 3.0.5-valve for baseline performance testing and work. 2005-06-29 13:51:58 +00:00

$Id: README.memoryleak,v 1.2 2002/10/28 21:05:14 bagder Exp $
                                  _   _ ____  _     
                              ___| | | |  _ \| |    
                             / __| | | | |_) | |    
                            | (__| |_| |  _ <| |___ 
                             \___|\___/|_| \_\_____|

             How To Track Down Suspected Memory Leaks in libcurl
             ===================================================

Single-threaded

  Please note that this memory leak system is not adjusted to work in more
  than one thread. If you want/need to use it in a multi-threaded app. Please
  adjust accordingly.


Build

  Rebuild libcurl with -DMALLOCDEBUG (usually, rerunning configure with
  --enable-debug fixes this). 'make clean' first, then 'make' so that all
  files actually are rebuilt properly. It will also make sense to build
  libcurl with the debug option (usually -g to the compiler) so that debugging
  it will be easier if you actually do find a leak in the library.

  This will create a library that has memory debugging enabled.

Modify Your Application

  Add a line in your application code:

       curl_memdebug("filename");

  This will make the malloc debug system output a full trace of all resource
  using functions to the given file name. Make sure you rebuild your program
  and that you link with the same libcurl you built for this purpose as
  described above.

Run Your Application

  Run your program as usual. Watch the specified memory trace file grow.

  Make your program exit and use the proper libcurl cleanup functions etc. So
  that all non-leaks are returned/freed properly.

Analyze the Flow

  Use the tests/memanalyze.pl perl script to analyze the memdump file:

    tests/memanalyze.pl < memdump

  This now outputs a report on what resources that were allocated but never
  freed etc. This report is very fine for posting to the list!

  If this doesn't produce any output, no leak was detected in libcurl. Then
  the leak is mostly likely to be in your code.