[Mono-bugs] [Bug 504085] New: MCS produces invalid images for modules

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 14 17:58:58 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=504085


           Summary: MCS produces invalid images for modules
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


While compiling a module mcs adds a RuntimeCompatibilityAttribute to the
assembly in the image.


A module, by definition, have no assembly so this leads to a verification
error. But both mcs and SRE are fine with that.

I'm going to wait for the mcs side to be fixed before I fix SRE to not cause
breakage for users of this super useful feature.

How to reproduce?

Compile the following using "gmcs /t:module module.cs"

using System;

namespace Module {
    public class Exported
    {
        public class NestedClass {}
    }
}


Then use some cil metadata verifier to check for such thing.

My personal suggestion is for the very fine metadata verifier build into mono:

pedump --verify metadata module.netmodule 
Error: Invalid CustomAttribute row 0 Parent field 0x0000002e
Error count: 1

Marek, please reassign this bug to corlib once the mcs side has been fixed
because I have some faith that SRE should be doing something smarter about this
- like raising an exception.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list