[Mono-bugs] [Bug 47362][Wis] New - ldtoken fails with methods

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 4 Aug 2003 16:52:10 -0400 (EDT)


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 jackson@latitudegeo.com.

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

--- shadow/47362	Mon Aug  4 16:52:10 2003
+++ shadow/47362.tmp.30935	Mon Aug  4 16:52:10 2003
@@ -0,0 +1,61 @@
+Bug#: 47362
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jackson@latitudegeo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ldtoken fails with methods
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+ldtoken method fails on mono. Appears that the token is not loaded because
+a subsequent call to pop throws a null reference exception.
+
+
+Steps to reproduce the problem:
+1. Assemble following program:
+.assembly ldtoken_test { }
+.method public static void test ()
+{
+	.entrypoint
+	ldtoken	method void tok ()
+	pop
+	ret
+}
+.method public static void tok () 
+{
+	ret
+}
+
+2. Run
+
+Actual Results:
+
+** (ldtoken_test.exe:2814): WARNING **: Unknown token 0x06000002 in ldtoken
+ 
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+
+Expected Results:
+
+Nothing
+
+How often does this happen? 
+
+Allways
+Additional Information:
+
+Binary assembled with our ilasm runs fine on MS runtime and passes all
+peverify tests