[Mono-bugs] [Bug 82625][Nor] Changed - Crash in System.MonoType.GetFields_internal

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 2 06:24:41 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 vargaz at gmail.com.

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

--- shadow/82625	2007-08-31 12:17:09.000000000 -0400
+++ shadow/82625.tmp.4130	2007-09-02 06:24:41.000000000 -0400
@@ -4,13 +4,13 @@
 OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: misc
+Component: generics
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: nazgul at omega.pl               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
@@ -192,6 +192,19 @@
 hard to make this run on both Mono and MS.NET. It would be really
 great to bring back the old functionality.
 
 
 ------- Additional Comments From lupus at ximian.com  2007-08-31 12:17 -------
 *** Bug 82647 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From vargaz at gmail.com  2007-09-02 06:24 -------
+I checked in a workaround for this:
+
+http://lists.ximian.com/pipermail/mono-patches/2007-September/100053.html
+
+Somebody with knowledge about generics+ref.emit will have to fix this.
+Basically, what happens is that after CreateType () was called on
+a TypeBuilder, the class->size_inited fields remains 0, so 
+Type:GetFields () calls into mono_class_setup_fields () which is
+intended for non-dynamic classes.
+
+


More information about the mono-bugs mailing list