[Mono-bugs] [Bug 693906] New: F# programs crash with Mono 2.10/2.8

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 15 16:30:09 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=693906#c0


           Summary: F# programs crash with Mono 2.10/2.8
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: x86-64
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: petebu at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
The following F# program causes Mono to crash.
-----
module Test

let rec f x acc =
  if x = 0 then acc
  else f (x - 1) (acc + 1)

f 10 0 |> ignore
-----


Steps to reproduce the problem:
1. Add FSharp.Core.dll to the GAC (may have to resign it with mono.snk first)
2. Compile the above code with Fsc.exe
3. Run the resulting exe


Actual Results:
Stack overflow: IP: 0x4057db84, fault addr: (nil)
Stacktrace:

Expected Results:
(no output expected)

How often does this happen? 
Always.

Additional Information:
I tried the code with the following Mono runtimes/platforms and got various
results:
- Mono 2.10.2 (compiled from sources on Debian Squeeze)
  "Stack overflow: IP: 0x4153bb84, fault addr: (nil)"
- Mono 2.8 (compiled from sources on Debian Squeeze)
  "Native stacktrace: ..."
- Mono 2.10.2 (Windows binary)
  "mono.exe has stopped working" dialog.
- Mono 2.10.2 (VMware image)
  Segmentation fault
- Mono 2.6.7 (bundled with Debian Squeeze)
  Works as expected

Some F# programs work fine e.g. a simple hello world function.

I used the F# compiler from the November 2010 CTP.

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


More information about the mono-bugs mailing list