Bug 314091 (MONO55442) - Stack overflow causes segmentation fault
Summary: Stack overflow causes segmentation fault
Status: RESOLVED MOVED
Alias: MONO55442
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Red Hat 9.0
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 00:38 UTC by David Mitchell
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:29:53 UTC


---- Reported by david.mitchell@telogis.com 2004-03-10 17:38:33 MST ----

Description of Problem:
When a stack overflow occurs, rather than throwing the appropriate
exception, mono causes a segmentation fault.

Steps to reproduce the problem:
1. Write a function that calls itself infinitely

Actual Results:
Segmentation fault

Expected Results:
System.StackOverflowException

How often does this happen? 
Consistently with my test program

Additional Information:
Following is my test program, which demonstrates the bug:

using System;
                                                                          
     
namespace Blow {
        public class Killer {
                                                                          
     
                public static void KillerMethod() {
                        KillerMethod();
                }
                                                                          
     
                public static int Main(string[] args) {
                        KillerMethod();
                        return 0;
                }
        }
}



---- Additional Comments From vargaz@freemail.hu 2004-03-10 18:11:27 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO47689 ***


This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"