https://bugzilla.novell.com/show_bug.cgi?id=336205

           Summary: Mono Segfault On Recursive Properties Call
           Product: Mono: Runtime
           Version: 1.2
          Platform: i386
        OS/Version: FreeBSD
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: Development


Created an attachment (id=180136)
 --> (https://bugzilla.novell.com/attachment.cgi?id=180136)
Code Example

For a recursive call to a class property (please refer to the line "CrashValue
= value" in the code example), Windows .NET runtime throws a
StackOverflowException as expected. However, the Mono runtime on Linux and
FreeBSD (I expect to found it among various operating systems) would crash with
"Bus error: 10 (core dumped)" (or Segmentation Fault on Linux). This error
reflects that the StackOverflowException for recursive class property call is
not handled properly in Mono.

Here are the system environment tested (the attached code.cs crashed on all the
testing environments)
-------------------------- FreeBSD 6.1 --------------------------
# uname -a
FreeBSD pear.jackcheung.com 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26
14:39:24 UTC 2007     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP 
i386

# mono -V
Mono JIT compiler version 1.2.5.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Architecture:  x86
        Disabled:      none
-------------------------- Fedora Core 6 --------------------------
# uname -a
Linux hades 2.6.22.9-61.fc6 #1 SMP Thu Sep 27 17:45:57 EDT 2007 i686 i686 i386
GNU/Linux

# mono -V
Mono JIT compiler version 1.1.17.1, (C) 2002-2006 Novell, Inc and Contributors.
www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Disabled:      none
-------------------------- Fedora 7 --------------------------
# uname -a
Linux torvalds.jackcheung.com 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 23:10:59 EDT
2007 i686 i686 i386 GNU/Linux

# mono -V
Mono JIT compiler version 1.2.3, (C) 2002-2006 Novell, Inc and Contributors.
www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Architecture:  x86
        Disabled:      none
--------------------------------------------------------------


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to