Bug 313525 (MONO52654) - Excessive recursion causes silent segmentation fault
Summary: Excessive recursion causes silent segmentation fault
Status: RESOLVED MOVED
Alias: MONO52654
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-07 08:37 UTC by sebastian
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:23:36 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"