[Mono-bugs] [Bug 38350][Nor] New - mono -d crashes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 19 Feb 2003 14:37:35 -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 carsten@hess.net.

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

--- shadow/38350	Wed Feb 19 14:37:35 2003
+++ shadow/38350.tmp.14445	Wed Feb 19 14:37:35 2003
@@ -0,0 +1,75 @@
+Bug#: 38350
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: carsten@hess.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono -d crashes 
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing. 
+ 
+Description of Problem: 
+ 
+I have a simple c sharp file that loads an extern method and calls it: 
+The cs file looks like this: 
+using System; 
+using System.Runtime.InteropServices; 
+ 
+namespace LinuxMain 
+{ 
+	public class Class1 
+	{ 
+		[DllImport("libmygl.so", CharSet=CharSet.Ansi)] 
+		private extern static int test(int i); 
+ 
+ 
+		public static void Main() 
+		{ 
+			Console.WriteLine(test(10)); 
+		} 
+ 
+	} 
+} 
+ 
+I compile it with "mcs File1.cs" and then run 
+ 
+	mono File1.exe 
+ 
+runs fine, however 
+ 
+	mono -d File1.exe 
+ 
+generates the following output: 
+ 
+Start JIT compilation of 06 System.Object:GetHashCode (), domain 
+'Class1.exe' 
+FOREST 06 System.Object:GetHashCode () 
+BLOCK 0: 
+        (STIND_I4 ADDR_L[ESI|2] (CALL_I4 (LDIND_I4 ADDR_L[1]) ADDR_G)) 
+        (RET (LDIND_I4 ADDR_L[ESI|2])) 
+ 
+** ERROR **: file helpers.c: line 602 (mono_disassemble_code): should not 
+be reached 
+aborting... 
+Aborted 
+ 
+This error message comes up independant of the library libmygl.so being 
+there or not, hence I did not include it here. If it is needed to solve 
+the problem send email. 
+ 
+How often does this happen?  
+Always 
+ 
+Additional Information: 
+I used mono from cvs 2/19/03