Bug 502575 - Tail call problems with F#
Summary: Tail call problems with F#
Status: RESOLVED DUPLICATE of bug 476785
Alias: None
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Major
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 18:42 UTC by Miguel de Icaza
Modified: 2010-11-16 22:08 UTC (History)
3 users (show)

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


Attachments
The tail call test that is failing. (3.84 KB, application/octet-stream)
2009-05-10 18:42 UTC, Miguel de Icaza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel de Icaza 2009-05-10 18:42:53 UTC
Created attachment 291204 [details]
The tail call test that is failing.

The following F# program tests a number of tail call features in the runtime and is currently failing in Mono.

To reproduce:
1. Download the zip file for F# September 2008 Community Release from:
http://www.microsoft.com/downloads/details.aspx?FamilyID=61ad6924-93ad-48dc-8c67-60f7e7803d3c&displaylang=en

2. Unzip fsharp.zip

3. cd FSharp-1.9.6.2

4. sh install-mono.sh

5. Compile the sample:
mono bin/fsc.exe TailCallsTest.cs

6. Run, it should complete.   Currently we terminate with a stack overflow:

simpleTail1: YES
simpleTail2: YES
mutualTail1IsOdd: YES
mutualTail1IsEven: YES
Stack overflow in unmanaged: IP: 0x7f8572a2ad8b, fault addr: 0x7fff7b6d4cd8
Stack overflow: IP: 0x58f926, fault addr: 0x7fff7b6c6398
At Unmanaged
Comment 1 Forgotten User vxPDddArjq 2010-11-16 22:08:53 UTC
Its a dup.

*** This bug has been marked as a duplicate of bug 476785 ***