Description
Description
When I was testing generating an AOT binary for my TUnit test the dotnet publish take a very long time and eds on a StackOverflow.
Extract from the CLI:
Rpc.Json net9.0 succeeded (0.1s) → artifacts\bin\Rpc.Json\debug_net9.0\Teksoft.Rpc.Json.dll
Rpc.Protobuf net9.0 succeeded (0.1s) → artifacts\bin\Rpc.Protobuf\debug_net9.0\Teksoft.Rpc.Proto.dll
Rpc.Protobuf-net net9.0 succeeded (0.1s) → artifacts\bin\Rpc.Protobuf-net\debug_net9.0\Teksoft.Rpc.Proto-net.dll
Rpc.Session net9.0 succeeded (0.2s) → artifacts\bin\Rpc.Session\debug_net9.0\Teksoft.Rpc.Session.dll
Rpc.Test failed with 1 error(s) (474.9s) → test\artifacts\bin\Rpc.Test\debug_win-x64\Rpc.Test.dll
Generating native code
Process is terminating due to StackOverflowException.
C:\Users\rodrigov\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.5\build\Microsoft.NETCore.Native.targets(317,5): error MSB3073: The command ""C:\Users\rodrigov\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\9.0.5\tools\\ilc" @"D:\teksoft\tek.shared.net\test\artifacts\obj\Rpc.Test\debug_win-x64\native\Rpc.Test.ilc.rsp"" exited with code -1073741571.
Reproduction Steps
A project with a dependency of TUnit version 0.21.13 and my rpc libraries.
Using .NET 9 with 9.0.300
Expected behavior
dotnet publish succeed and generate the .exe in the case of Windows
Actual behavior
dotnet publish CLI takes a long time and eventually finished with a StackOverflow
Regression?
Not sure
Known Workarounds
No workarounds
Configuration
.NET 9 with 9.0.300 bits trying on a winx64 runtime id
Other information
No response
Metadata
Metadata
Assignees
Type
Projects
Status