[Mono-devel-list] Valgrind and mono

Dick Porter dick at ximian.com
Tue May 18 09:32:04 EDT 2004

On Tue, 2004-05-18 at 13:53, Jaroslaw Kowalski wrote:
> Hi guys!
> Does valgrind (memory debugging tool for Linux) run with mono? 
> On valgrind's page http://valgrind.kde.org/ there's a note that
> valgrind is used by Mono. I have a highly unstable mono setup right
> now (ASP.NET doesn't work for me in a predictable manner and I suspect
> race conditions and/or memory corruption), so I've tried to run
> valgrind (both 2.0.0 and 2.1.2) on mod-mono-server.exe, but it always
> crashed. Most errors reported seem to be GC- and pthread-related. 
> Can someone provide a step-by-step recipe for running mono with
> valgrind ?

It works out of the box for me, on rh9 with latest cvs mono and

You might need to a) make sure mono's configure finds the
valgrind/memcheck.h file so the jit doesn't try and call a couple of
pthread functions that valgrind doesn't emulate, and b) up the pthread
stack size in coregrind/vg_include.h.

- Dick

More information about the Mono-devel-list mailing list