[Mono-devel-list] Crash in mono_image_build_metadata while running unit tests.

mono_devel at workingpages.com mono_devel at workingpages.com
Wed Nov 12 11:43:50 EST 2003


I am seeing a segmentation violation in mono_image_build_metadata while running
the corlib unit tests on the AMD64 (interpreter) port. This is in the
test case.

The crash is on line 3125 of reflection.c:
    for (j = 0; j < mono_array_length (file_module->types); ++j) {
and occurs because file_module->types is NULL .

Anyone else seen this? My guess is that System.Reflection.Emit.ModuleBuilder.cs
can pass a ModuleBuilder structure to ves_icall_ModuleBuilder_build_metadata
with the "types" field NULL. (Assuming NULL is what native code sees when an
array field of a CLR object is not assigned a value in the constructor.)

I'm mostly trying to figure out if this is a port issue.


More information about the Mono-devel-list mailing list