[Mono-devel-list] Valgrind and Mono

Hamza Karamali karamal at eecg.toronto.edu
Wed Apr 28 19:32:05 EDT 2004


Hi,

I'm hacking Mono for my Master's thesis, and it seems like I may have
created a memory leak in the Mono source code through my modifications,
since I get random null-pointer exceptions.  I'm trying to use Valgrind to
debug my memory usage, but when I type:

	valgrind mono progname.exe

I get the following message:

	mono: relocation error: /lib/librt.so.1: symbol
	__pthread_clock_settime, version GLIBC_PRIVATE not defined in file
	libpthread.so.0 with link time reference

I checked the Valgrind FAQ page (http://valgrind.kde.org/faq.html) and it
says in section 3.4 that this is a "real swamp" of a problem, and none of
the solutions that are given seem to alleviate my problem.  While browsing
through the mono source code, it seems that the mono developers do use
valgrind (I saw several ifdef's that check VALGRIND related things), so I
was wondering if there is a workaround for the above problem.  Am I
supposed to add some #define's somewhere to make valgrind work with mono?

Thanks for your help.

Sincerely,

Hamza.



More information about the Mono-devel-list mailing list