[Mono-bugs] [Bug 514770] New: Unbounded recursion causes segfault

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 19 11:53:44 EDT 2009


           Summary: Unbounded recursion causes segfault
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: tigeba at altereality.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other

Created an attachment (id=299322)
 --> (http://bugzilla.novell.com/attachment.cgi?id=299322)
Recursion segfault example

Description of Problem:

Unbounded recursion causes a segfault.

Steps to reproduce the problem:
1. Build and run attached test.cs

Actual Results:

> mcs test.cs 
test.cs(4,20): warning CS0649: Field `test.foo' is never assigned to, and will
always have its default value `null'
Compilation succeeded - 1 warning(s)

> mono test.exe 
Segmentation fault

Expected Results:

Mono runtime should throw StackOverflowException

How often does this happen? 

Every time

Additional Information:

> mcs --version
Mono C# compiler version

> mono --version
Mono JIT compiler version 2.4 (tarball Fri Mar 13 09:25:35 MDT 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS:           normal
    GC:            Included Boehm (with typed GC)
    SIGSEGV:       normal
    Notification:  Thread + polling
    Architecture:  x86
    Disabled:      none

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list