[Mono-bugs] [Bug 81685][Wis] Changed - Stack Overflow detection
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 21 19:34:26 EDT 2007
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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=81685
--- shadow/81685 2007-05-21 16:49:11.000000000 -0400
+++ shadow/81685.tmp.21024 2007-05-21 19:34:26.000000000 -0400
@@ -44,6 +44,36 @@
For trusted execution (our regular code path) I think we would not
needs this, but we could probably have this optionally enabled for
when we pass some flag to the runtime (maybe it should be enabled with
--debug and --security)
+
+------- Additional Comments From robertj at gmx.net 2007-05-21 19:34 -------
+Besides the gc problem with the altstack, there is another one:
+"finally" code could overflow the altstack, which leads to an
+untrappable SIGSEGV, as like no altstacks were in use.
+
+The sample is first forcing a SIGSEGV, then it's overflowing
+the (pretty small) altstack:
+
+using System;
+
+class T
+{
+ static void Recurse (int i)
+ {
+ if (i % 1000 == 0) Console.Write (".");
+ Recurse (i + 1);
+ }
+
+ static void Main ()
+ {
+ try {
+ object o = null;
+ o.Equals (o);
+ } finally {
+ Recurse (1);
+ }
+ }
+}
+
More information about the mono-bugs
mailing list