[Mono-bugs] [Bug 75738][Maj] New - exception not being thrown

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 7 13:59:35 EDT 2005


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 malekith at pld-linux.org.

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

--- shadow/75738	2005-08-07 13:59:35.000000000 -0400
+++ shadow/75738.tmp.22230	2005-08-07 13:59:35.000000000 -0400
@@ -0,0 +1,79 @@
+Bug#: 75738
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: amd64 pld linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: malekith at pld-linux.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: exception not being thrown
+
+Description of Problem:
+
+It appears to be a JIT bug. Please ilasm the following sample:
+
+#v+
+.assembly extern mscorlib
+{
+  .ver 1:0:5000:0
+  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
+}
+.assembly 'out'
+{
+  .hash algorithm 0x00008004
+  .ver  0:0:0:0
+}
+.module 'out' // GUID = {F21F5CF2-5B7A-4E45-9087-A8A456BB68C7}
+
+
+  .class private auto ansi abstract _N_AutoModule
+        extends [mscorlib]System.Object
+  {
+
+    // method line 1
+    .method private static  hidebysig
+           default void Main ()  cil managed
+    {
+        // Method begins at RVA 0x20ec
+        .entrypoint
+        // Code size 44 (0x2c)
+        .maxstack 4
+        .locals init (
+                bool    V_0)
+        IL_0000:  ldc.i4.2
+        IL_0001:  ldc.i4.3
+        IL_0002:  bgt.s IL_000a
+
+        IL_0004:  ldc.i4.0
+        IL_0005:  br IL_000b
+
+        IL_000a:  ldc.i4.1
+        IL_000b:  stloc.0
+        IL_000c:  ldloc.0
+        IL_000d:  brfalse IL_0017
+
+        IL_0012:  br IL_0021
+
+        IL_0017:  ldstr "ble"
+        IL_001c:  call void class [mscorlib]System.Console::WriteLine(string)
+        IL_0021:  ldstr ""
+        IL_0026:  newobj instance void class
+[mscorlib]System.Exception::.ctor(string)
+        IL_002b:  throw
+    } // end of method _N_AutoModule::default void Main ()
+
+  } // end of class _N_AutoModule
+
+#v-
+
+It should die killed by the exception but it doesn't.
+
+I'm using mono SVN, but the issue seems to be older.


More information about the mono-bugs mailing list