[Mono-dev] valgrind and mono

Tom Hindle tom_hindle at sil.org
Tue Sep 1 20:11:09 EDT 2009


Hi,

I understand from here http://mono-project.com/Debugging that I should
be able to use valgrind with mono.

However it seems to report stack corruption for simple handled
exceptions like this:

try {
	Control c = null;
	c.Focus();				
}
catch {	
}
finally	{
}

valgrind reports:
==14971==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14971== Thread 1 return signal frame corrupted.  Killing process.

valgrind --tool=memcheck -v --leak-check=full --log-file=log
--smc-check=all --suppressions=mono.supp mono MyTest.exe


My valgrind is valgrind-3.4.1-Debian and my mono from svn is r139201.

Has anyone else experienced this?

Any solutions / workarounds?

Thanks
Tom





More information about the Mono-devel-list mailing list