Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSC.exe crashes compiling high fieldcount records in Optimize/Release builds (>= 103) #6754

Closed
supergrade opened this issue May 16, 2019 · 3 comments

Comments

@supergrade
Copy link

supergrade commented May 16, 2019

Please provide a succinct description of the issue.

Repro steps

Provide the steps required to reproduce the problem

  1. In F# code, make a record that has > 103 fields
  2. Build with "Optimize" turned on (in a trivial project, this is release mode)

Repro solution
FSCompilerCrasher.zip

Basically, I just put in a record with 110 named 'int' fields.

Expected behavior

Can compile release / optimizing mode without FSC.exe crashing out

Actual behavior

Build of release/optimizing mode errors out with:

Microsoft.FSharp.Targets(277,9): error MSB6006: "fsc.exe" exited with code -1073741571

Known workarounds

Cut down the number of fields in the records, or turn off optimization.

Related information

Provide any related information

Windows 10
Visual Studio 2019 16.0.4
Severe if you want a large record

@KevinRansom
Copy link
Member

@supergrade,

110 isn't really that large a number of fields :-) , so for sure it should be able to cope with this. We will take a look, and thanks for the report.

@cartermp
Copy link
Contributor

This is a duplicate of #6258 and has been fixed. It will be available in the bits that correspond to the 16.1 release.

@KevinRansom
Copy link
Member

@supergrade,

@cartermp is correct, VS2019.1 is quite close to release, you can download the preview from here:

https://visualstudio.microsoft.com/downloads/

click on download preview.

Thanks

Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants