[Mono-bugs] [Bug 81530][Nor] Changed - [PATCH] S.R.Emit.TypeBuilder creates unverifiable classes that doesn't extend System.Objectt

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat May 5 14:11:45 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by robertj at gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=81530

--- shadow/81530	2007-05-05 08:43:39.000000000 -0400
+++ shadow/81530.tmp.8768	2007-05-05 14:11:45.000000000 -0400
@@ -2,22 +2,21 @@
 Product: Mono: Runtime
 Version: 1.2
 OS: other
 OS Details: FreeBSD 6.2-RELEASE
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Wishlist
+Severity: Unknown
+Priority: Normal
 Component: misc
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: dom at goodforbusiness.co.uk               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
-Summary: Loading a recently emitted type causes mono to core dump
+Summary: [PATCH] S.R.Emit.TypeBuilder creates unverifiable classes that doesn't extend System.Objectt
 
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 Loading a recently emitted type causes mono to core dump
 
@@ -34,6 +33,27 @@
 
 How often does this happen? 
 Everytime
 
 Additional Information:
 Works ok on the Microsoft runtime.
+
+------- Additional Comments From robertj at gmx.net  2007-05-05 14:11 -------
+[Subject changed]
+
+The runtime aborts because
+
+TypeBuilder lTypeBuilder = lModuleBuilder.DefineType("Dummy." +
+lAssemblyName.Name, lAttributes, null);
+
+defines a class that doesn't extend any type. This leads to
+a non-verifiable assembly.
+
+If the line is changed to
+
+TypeBuilder lTypeBuilder = lModuleBuilder.DefineType("Dummy." +
+lAssemblyName.Name, lAttributes);
+
+the generated assembly is OK.
+
+MS.NET seems to catch null base types, as the attached patch does.
+


More information about the mono-bugs mailing list