[Mono-bugs] [Bug 78518][Wis] New - FieldInfo.GetValue causes
runtime exception
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat May 27 14:49:24 EDT 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 nazgul at omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=78518
--- shadow/78518 2006-05-27 14:49:24.000000000 -0400
+++ shadow/78518.tmp.26196 2006-05-27 14:49:24.000000000 -0400
@@ -0,0 +1,80 @@
+Bug#: 78518
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: nazgul at omega.pl
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: FieldInfo.GetValue causes runtime exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+FieldInfo.GetValue causes runtime exception
+
+Steps to reproduce the problem:
+1. extract Tao assemblies from http://nemerle.org/~nazgul/temp/tao.tar.gz
+
+2. Compile and run following program (mcs t.cs /r:Tao.OpenGl.dll)
+
+class M {
+static void Main () {
+
+System.Type x = typeof (Tao.OpenGl.Gl);
+System.Reflection.FieldInfo f = x.GetField ("GL_TEXTURE_2D");
+System.Console.WriteLine ("{0}", f);
+System.Console.WriteLine ("{0}", f.GetValue (null));
+
+}
+}
+
+3. Run it
+
+Actual Results:
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+Stacktrace:
+
+in (wrapper managed-to-native) System.Reflection.MonoField:GetValueInternal
+(object) <0x4>
+in (wrapper managed-to-native) System.Reflection.MonoField:GetValueInternal
+(object) <0xffffff63>
+in System.Reflection.MonoField:GetValue (object) <0x2b>
+in M:Main () <0x38>
+in (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr) <0xc7f02e07>
+
+Native stacktrace:
+
+ /home/users/nemweb/local/bin/mono(mono_handle_native_sigsegv+0xbe)
+[0x81406ce]
+ /home/users/nemweb/local/bin/mono [0x812b6fc]
+ [0xffffe440]
+ /home/users/nemweb/local/bin/mono [0x808f352]
+ [0xffffffff]
+Aborted
+
+
+Expected Results:
+System.Int32 GL_TEXTURE_2D
+3553
+
+
+How often does this happen?
+With recent svn always, it seems like a regression from a few days ago
+
+Additional Information:
+it works with earlier versions of mono
More information about the mono-bugs
mailing list