dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.29k stars 9.96k forks source link

Stack Overflow on Mac OS #18237

Closed llustosa closed 4 years ago

llustosa commented 4 years ago

I'm having this issue for some time already, but only happens in OSX. For some reason the app crash with a stack overflow. As a workaround I run the app inside a docker container, and everything runs fine. In dotnet 2.1 this issue occurs more sporadically, but now I'm upgrading to dotnet 3.1 and just calling an api method makes the app crash. The 2.1 version are at https://github.com/bizanc/Bizanc.io.Core The 3.1 version are at https://github.com/llustosa/Bizanc.io.Core/tree/DotnetCore3

llustosa commented 4 years ago

Just to give more clarification to the issue: The stable version uses dotnet core 2.2.6. The application uses ravendb embedded targeting this version specifically. The updated version run on dotnet 3.1 but the database uses the 2.2.8 runtime. There are no code changes, just dependency updates and asp net changes demanded by asp net 3. I had executed more tests on a Centos 7 machine. The older version runs fine but the new one crash with stack overflow too. To reproduce the exception just build/start the project Bizanc.io.Matching.App with default configurations.

llustosa commented 4 years ago

Sorry to bother you guys, this was my bad. Finally managed to finde the problem, was a bug in my application. Closing the issue.