I have a small repro for an #fsharp compiler (fsc) crash. It crashes building a desktop class library, it does not repro in a dotnet classlib built on the command line.
Crash repro is here: https://github.com/SoundMetrics/zz_vs2019_fsc_stack_overflow_repro
Observed behavior is that it takes about 15 seconds to build, and fails.
Observed output in Visual Studio 2019 version 16.0.0 is:
1>------ Build started: Project: vs2019_so, Configuration: Release Any CPU ------
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\commonextensions\microsoft\fsharp\Microsoft.FSharp.targets(277,9): error MSB6006: "fsc.exe" exited with code -1073741571.
1>Done building project "vs2019_so.fsproj" -- FAILED.
1>
1>Build FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The error code -1073741571 is 0xC00000FD, which I suspsect to be stack overflow. Here's what windbg has to say:
0:002> !error 0xc00000fd
Error code: (NTSTATUS) 0xc00000fd (3221225725) - A new guard page for the stack cannot be created.
(I have not debugged the fsc.exe crash.)
Repro steps
-
Load the repro solution into Visual Studio 2019 version 16.0.0.
-
Build
-
Observe the build failure.
Expected behavior
Code should build successfully, as it often did in Visual Studio 2017.
Actual behavior
fsc.exe failed. Repeating:
1>------ Build started: Project: vs2019_so, Configuration: Release Any CPU ------
1>c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\commonextensions\microsoft\fsharp\Microsoft.FSharp.targets(277,9): error MSB6006: "fsc.exe" exited with code -1073741571.
1>Done building project "vs2019_so.fsproj" -- FAILED.
1>
1>Build FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Known workarounds
None.
Related information
- Windows 10 version 1809 (build 17763.404)
- .NET Framework 4.7.2 is installed
- Visual Studio 2019 version 16.0.0 (RTW)
- Severity: we can fall back to building with VS2017, for now.
I have a small repro for an #fsharp compiler (fsc) crash. It crashes building a desktop class library, it does not repro in a dotnet classlib built on the command line.
Crash repro is here: https://github.com/SoundMetrics/zz_vs2019_fsc_stack_overflow_repro
Observed behavior is that it takes about 15 seconds to build, and fails.
Observed output in Visual Studio 2019 version 16.0.0 is:
The error code
-1073741571is0xC00000FD, which I suspsect to be stack overflow. Here's whatwindbghas to say:(I have not debugged the fsc.exe crash.)
Repro steps
Load the repro solution into Visual Studio 2019 version 16.0.0.
Build
Observe the build failure.
Expected behavior
Code should build successfully, as it often did in Visual Studio 2017.
Actual behavior
fsc.exe failed. Repeating:
Known workarounds
None.
Related information