[Mono-bugs] [Bug 81685][Wis] Changed - Stack Overflow detection

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jul 30 12:36:35 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 lupus at ximian.com.

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

--- shadow/81685	2007-05-27 12:32:57.000000000 -0400
+++ shadow/81685.tmp.3135	2007-07-30 12:36:35.000000000 -0400
@@ -203,6 +203,23 @@
 
 ------- Additional Comments From miguel at ximian.com  2007-05-27 12:32 -------
 Paolo,
 
 I meant to say finally clauses, not finalizer, that was a thinko on my
 part.
+
+------- Additional Comments From lupus at ximian.com  2007-07-30 12:36 -------
+svn now has some of the code needed to implement the proper solution
+to this bug (currently on x86, amd64, ppc).
+The new code solves already a few issues:
+*) the size needed for the altstack is greatly reduced
+*) while executing on the altstack we don't manipulate
+new object references: the GC basically doesn't need to know about it
+*) the code is enabled by default if sigaltstack works on the platform
+so we print an error message and abort on stack overflow (the user
+gets an hint about what went wrong instead of staring at the usual and
+uninformative short sigsegv message).
+
+Additional work needed:
+*) port more architectures to the new code
+*) setup the additional protected pages on the stacks so we can make
+stack overflows catchable, at least in some cases


More information about the mono-bugs mailing list