[Mono-bugs] [Bug 71880][Maj] New - Generic Problem blows up VM
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 27 Jan 2005 16:15:37 -0500 (EST)
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 spigaz@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71880
--- shadow/71880 2005-01-27 16:15:37.000000000 -0500
+++ shadow/71880.tmp.20159 2005-01-27 16:15:37.000000000 -0500
@@ -0,0 +1,78 @@
+Bug#: 71880
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details: Gentoo 2.6.10
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: spigaz@gmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Generic Problem blows up VM
+
+Description of Problem:
+Using reflection to get the value of a Property that is a generic type
+blows up vm...
+
+Steps to reproduce the problem:
+1. Insert this code into a file:
+
+using System;
+using System.Reflection;
+
+namespace FLMID.Bugs.MarshalOne
+{
+ public class X<T>
+ {
+ }
+
+ public class Class
+ {
+ public X<string> A
+ {
+ get
+ {
+ return null;
+ }
+ }
+ }
+
+ public class Test
+ {
+
+ public static void Main(string [] args)
+ {
+ Class instance = new Class();
+
+ instance.GetType().GetProperty("A", BindingFlags.Instance |
+BindingFlags.Public).GetValue(instance, null);
+
+ System.Console.WriteLine("OK");
+ }
+ }
+}
+
+2. Compile it
+3. Run it
+
+Actual Results:
+
+
+Expected Results:
+** ERROR **: file marshal.c: line 3473 (mono_marshal_get_runtime_invoke):
+should not be reached
+aborting...
+Aborted
+
+How often does this happen?
+Always
+
+Additional Information:
+Tested in .NET 2.0 and it works fine, the assembly from .Net 2.0 in mono
+gives the same error.