[Mono-devel-list] Various stack overflows during compilation

Thomas Harning Jr. harningt at gmail.com
Tue Apr 19 14:04:42 EDT 2005

I'm having the trouble with AMD64 running into stack overflows during compiles of the system libraries and of MonoDevelop.
Here's an example trace [they happen in different places.. but seems strange the way they happen]:

MONO_PATH="../class/lib/net_2_0_bootstrap:$MONO_PATH" /extSrc/mono/mono/runtime/mono-wrapper ../class/lib/net_2_0_bootstrap/mcs.exe    -d:NET_1_1 -d:NET_2_0 -debug /target:exe /out:gmcs.exe cs-parser.cs  @gmcs.exe.sources

Unhandled Exception: System.StackOverflowException: The requested operation caused a stack overflow.
in (wrapper managed-to-native) System.Array:FastCopy (System.Array,int,System.Array,int,int)
in <0x000de> System.Array:Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length)
in <0x000db> System.Array:CopyTo (System.Array array, Int32 index)
in <0x000da> Mono.CSharp.VariableMap:.ctor (Mono.CSharp.VariableMap parent, Mono.CSharp.LocalInfo[] locals)
in <0x00346> Mono.CSharp.Block:ResolveMeta (Mono.CSharp.ToplevelBlock toplevel, Mono.CSharp.EmitContext ec, Mono.CSharp.InternalParameters ip)
*************** OUTPUT REPEATED 332 times ********************** by the way, it's the lower line that's repeated, the one with <0x009bc>
in <0x009bc> Mono.CSharp.Block:ResolveMeta (Mono.CSharp.ToplevelBlock toplevel, Mono.CSharp.EmitContext ec, Mono.CSharp.InternalParameters ip)
in <0x000bb> Mono.CSharp.EmitContext:ResolveTopBlock (Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.InternalParameters ip, Location loc, System.Boolean unreachable)
in <0x00047> Mono.CSharp.EmitContext:EmitTopBlock (Mono.CSharp.ToplevelBlock block, Mono.CSharp.InternalParameters ip, Location loc)
in <0x00443> Mono.CSharp.MethodData:Emit (Mono.CSharp.TypeContainer container, Mono.CSharp.Attributable kind)
in <0x00037> Mono.CSharp.Method:Emit ()
in <0x007cb> Mono.CSharp.TypeContainer:EmitType ()
in <0x002d8> Mono.CSharp.RootContext:EmitCode ()
in <0x00e8d> Mono.CSharp.Driver:MainDriver (System.String[] args)
in <0x00015> Mono.CSharp.Driver:Main (System.String[] args)
make[7]: *** [gmcs.exe] Error 1

this has happened in the past.. but I've just shirked it because there's been no other reports about this happening and made my x86 machine compile the C# code that wouldn't compile.. and it works fine.
But... this must be a larger issue if AMD64 is overflowing where x86 doesnt.
ATM I don't have time to file a bug report since that's what I'll probably get told to do...
Btw I'm using the lastest SVN code.
Thomas Harning Jr.

More information about the Mono-devel-list mailing list