[Mono-devel-list] How to debug memory corruption with mono ?

Jaroslaw Kowalski jaak at zd.com.pl
Fri May 7 05:25:17 EDT 2004


I'm getting very strange errors when attempting to run mod-mono-server. This has been happening since last 3 days. That seems to be related to some strange memory corruption. I get assertion failures, strings get overwritten, random errors in libmono arise,

Some examples:

** (/opt/mono/bin/mod-mono-server.exe:20513): WARNING **: Could not load class from token 0x010000c8 in /opt/mono/lib/mono/gac/System.Web/1.0.5000.0__b03f5f7f11d50a3a/System.Web.dll
---------------------------------------------------
System.ArgumentException: Culture name est is not supported.
Parameter name: est
in <0x000f6> System.Globalization.CultureInfo:CreateSpecificCulture (string)
in (unmanaged) /opt/mono/lib/libmono.so.0 [0xb8859f]
in (unmanaged) /opt/mono/lib/libmono.so.0(mono_runtime_invoke+0x23) [0xbc5037]
in (unmanaged) /opt/mono/lib/libmono.so.0 [0xbce844]
in (unmanaged) /opt/mono/lib/libmono.so.0 [0xbce966]
in <0x00030> System.Reflection.Assembly:GetName (bool)
in <0x00013> System.Reflection.Assembly:GetName ()
in <0x00049> System.Web.UI.TemplateParser:AddAssembly (System.Reflection.Assembly,bool)
in <0x000ba> System.Web.UI.TemplateParser:AddAssembliesInBin ()
in <0x001ea> System.Web.UI.TemplateParser:.ctor ()
in <0x00018> System.Web.UI.TemplateControlParser:.ctor ()
in <0x0003d> System.Web.UI.PageParser:.ctor (string,string,System.Web.HttpContext)
in <0x0003e> System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
in <0x0038b> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
in <0x0011f> CreateHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
---------------------------------------------------


My question is: how can I debug it? How to get the most useful trace information?
Is there a way to enable a memory checker under mono/Linux? Under windows there's an excellent BoundsChecker product - is there anything similar for Linux ?

My setup: Fedora Core 1 / i686

Jarek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040507/e207a23e/attachment.html 


More information about the Mono-devel-list mailing list