[Mono-bugs] [Bug 73848][Nor] Changed - Assertion failure in mono_ldtoken (class.c:3419)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Mar 2005 14:43:14 -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 vargaz@gmail.com.

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

--- shadow/73848	2005-03-22 07:16:16.000000000 -0500
+++ shadow/73848.tmp.31017	2005-03-23 14:43:14.000000000 -0500
@@ -80,6 +80,18 @@
 
 How often does this happen? 
 For all non-trivial test cases.
 
 Additional Information:
 I can provide a core dump, if it helps. It's about 15 Mb in size.
+
+------- Additional Comments From vargaz@gmail.com  2005-03-23 14:43 -------
+The assert is now fixed in SVN, but the tests still don't run, cause
+they expose another, much harder to fix bug. The problem is with the
+ldftn IL instruction and delegates. On MS.NET, it is permitted to
+pass a method declared in an interface (an abstract method) to ldftn.
+When the result of ldftn is passed to a delegate ctor, they seem to 
+lookup the method in the delegate target, much like ldvirtftn. We
+don't do this, so when the delegate is called, we try to compile the
+abstract method, leading to a crash inside the JIT.
+
+