Bugzilla – Bug 389848
GMCS miscompiles huge source file
Last modified: 2008-05-14 18:55:21 UTC
GMCS miscompiles a file with a huge number of methods (40001). It might be either gmcs or SRE fault.
Created attachment 214823 [details] test file The attached cs file has 400001 methods and gmcs miscompiles it.
Can you better classify "miscompiles"
By miscompilation I mean it generates an invalid assembly. The runtime fail to load it with: ** (tst.exe:22885): CRITICAL **: mono_metadata_string_heap: assertion `index < meta->heap_strings.size' failed Compiling with csc maked everything work just fine.
Marek, Let me confirm is this is not a SRE bug first.
Generating similar code directly with SRE doesn't cause any crash.
gmcs running on .NET compiles this code correctly. -> runtime
I can't repro this using a runtime built from svn. You might be running gmcs on the installed runtime, which doesn't contain the table size bugfix.
My bad, running gmcs with old mono was causing it.