On Wed, Mar 21, 2012 at 10:49:22AM +0100, Hans Ole Rafaelsen wrote: > Hello, > > Is there some tools / tricks that can be used to help find memory leaks? [...] > The application uses several 3rd party libraries, including: LablGTK2, > OCamlNet, LWT and others.
If you suspect a leak in the *C* part of your program or these libraries, then I am very successfully using valgrind on my OCaml (native) programs to track such leaks. https://github.com/libguestfs/libguestfs/blob/95123a9144edc1ddb3ad67d75276ca3af70eddb8/tests/extra/Makefile.am Note that several of the programs tested are written in OCaml, and see also the 'suppressions' file in the same directory. However this will not find leaks in OCaml code. Although I was pleasantly surprised the other day when valgrind pointed correctly to a use of an uninitialized string in some OCaml code. Rich. -- Richard Jones Red Hat -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs