Bugzilla – Bug 313525
Excessive recursion causes silent segmentation fault
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by sebastian@nowozin.de 2004-01-07 01:37:06 MST ---- 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. ---- Additional Comments From vargaz@freemail.hu 2004-01-07 08:40:07 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO47689 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"