[Mono-bugs] [Bug 72284][Nor] New - Exception thrown at JIT time results in unhandled exceptions

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 7 Feb 2005 09:44:36 -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 sebastien@ximian.com.

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

--- shadow/72284	2005-02-07 09:44:36.000000000 -0500
+++ shadow/72284.tmp.15528	2005-02-07 09:44:36.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 72284
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exception thrown at JIT time results in unhandled exceptions
+
+Description of Problem:
+Throwing an exception from inside mini always results in an unhandled
+exception.
+
+Steps to reproduce the problem:
+1. compile an application that looks like...
+try {
+    // make mini throw an exception - like a failed LinkDemand [*]
+}
+catch (SecurityException) {
+    Console.WriteLine ("ye!");
+}
+
+2. throw an SecurityException from inside mini
+   mono_raise_exception (mono_get_exception_security ());
+
+3. Execute
+
+
+Actual Results:
+Unhandled Exception: System.Security.SecurityException: Calling unmanaged
+code isn't allowed from this assembly.
+in <0x000c8> System.Security.SecurityManager:LinkDemandSecurityException
+(int,System.Reflection.Assembly)
+
+
+Expected Results:
+an exception that can be catched using:
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+[*] LinkDemand tests will soon be available to test this.