[Mono-bugs] [Bug 80297][Blo] Changed - SIGABRT when using EnumBuilder in Reflection.Emit

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 22 15:15:06 EST 2006


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 rolfkvinge at ya.com.

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

--- shadow/80297	2006-12-18 04:51:32.000000000 -0500
+++ shadow/80297.tmp.8353	2006-12-22 15:15:06.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.0
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Blocker
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: rolfkvinge at ya.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -163,6 +163,29 @@
 Got a SIGABRT while executing native code. This usually indicates
 a fatal error in the mono runtime or one of the native libraries
 used by your application.
 =================================================================
 
 Aborted
+
+------- Additional Comments From rolfkvinge at ya.com  2006-12-22 15:15 -------
+Here is a patch that worked for vbnc (not tested any other place):
+
+Index: reflection.c
+===================================================================
+--- reflection.c        (revision 69513)
++++ reflection.c        (working copy)
+@@ -4274,6 +4276,10 @@
+        } else if (strcmp (klass->name, "SignatureHelper") == 0) {
+                MonoReflectionSigHelper *s = 
+(MonoReflectionSigHelper*)obj;
+                token = MONO_TOKEN_SIGNATURE | 
+mono_image_get_sighelper_token (assembly, s);
++       } else if (strcmp (klass->name, "EnumBuilder") == 0) {
++               MonoReflectionType *tb = (MonoReflectionType *)obj;
++               token = mono_metadata_token_from_dor (
++                       mono_image_typedef_or_ref (assembly, tb-
+>type));
+        } else {
+                g_error ("requested token for %s\n", klass->name);
+        }
+


More information about the mono-bugs mailing list