[Mono-bugs] [Bug 52653][Wis] New - Excessive recursion causes silent segmentation fault

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 7 Jan 2004 01:37:00 -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 sebastian@nowozin.de.


--- shadow/52653	2004-01-07 01:37:00.000000000 -0500
+++ shadow/52653.tmp.32580	2004-01-07 01:37:00.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 52653
+Product: Mono/Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastian@nowozin.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Excessive recursion causes silent segmentation fault
+Description of Problem:
+Upon endless or excessive recursion the mono runtime produces a
+segmentation violation without any helpful information being available to
+the user.
+Steps to reproduce the problem:
+1. Compile the program below: mcs /out:test.exe test.cs
+2. mono ./test.exe
+public class MonoBug {
+        public static void Main (string[] args) {
+                MonoBug mb = new MonoBug ();
+                mb.Test ();
+        }
+        public void Test () {
+                Test ();
+        }
+Actual Results:
+Segmentation violation
+Expected Results:
+Some kind of system exception being thrown (like "Insufficient stack space
+for method call ..., killing process.").
+At the very least not a silent segmentation violation.
+How often does this happen? 
+Every time.
+Additional Information:
+I know this bug has already been filed under the "recursive property"
+subject, but those bug has been closed and did (imho) not receive the
+deserved attention. Endless recursion bugs are rather difficult to spot
+anyway, just letting an OS-originated SIGSEGV reap the process just makes
+it even more difficult and let people suspect bugs in the mono runtime that
+originate at their code.