[Mono-bugs] [Bug 68552][Nor] Changed - Abort exception not properly
rethrown in some cases
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 28 14:51:10 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 lluis at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68552
--- shadow/68552 2005-01-17 10:20:39.000000000 -0500
+++ shadow/68552.tmp.7233 2005-06-28 14:51:10.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 68552
Product: Mono: Runtime
Version: unspecified
OS: Windows XP (Cygwin)
OS Details: Windows XP SP2
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: vargaz at gmail.com
ReportedBy: lluis at ximian.com
QAContact: mono-bugs at ximian.com
@@ -86,6 +86,41 @@
------- Additional Comments From vargaz at gmail.com 2005-01-17 10:15 -------
This should be fixed in SVN.
------- Additional Comments From vargaz at gmail.com 2005-01-17 10:20 -------
Really fixed.
+
+------- Additional Comments From lluis at ximian.com 2005-06-28 14:51 -------
+I'm reopening this bug because although the patch did fix the previous
+cases, it did generate a new case in which the abort exception is not
+properly rethrown. This is the test case:
+
+using System;
+using System.Threading;
+
+namespace Bug
+{
+ public class Test
+ {
+ public static void Main(string[] args)
+ {
+ try {
+ Run ();
+ } catch (Exception ex) {
+ }
+ Console.WriteLine ("Should not print this");
+ }
+
+ public static void Run ()
+ {
+ try {
+ Thread.CurrentThread.Abort ();
+ } catch (Exception ex) {
+ throw new Exception ("other");
+ }
+ }
+ }
+}
+
+The catch in the Main method should rethrow the abort exception, even
+if the exception cached there is a regular exception.
More information about the mono-bugs
mailing list