C
C#2y ago
h

✅ ASP.NET Core Web API application crashes with no error message only in some environments

I am working on a Web API project which runs fine in Docker and on a Windows machine, but crashes with no error message and an exit code of 139 (segfault) on Linux. What troubleshooting steps should I take?
25 Replies
h
hOP2y ago
also when i run the app from the executable in bin/debug/net6.0, this pops up
Failed to load /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so, error: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so)
The library libhostfxr.so was found, but loading it from /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=2063370
Failed to load /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so, error: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so)
The library libhostfxr.so was found, but loading it from /usr/lib/dotnet/host/fxr/7.0.8/libhostfxr.so failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=2063370
now it just segfaults
$ bin/Debug/net6.0/Thread.NET.WebAPI
[1] 19794 segmentation fault (core dumped) bin/Debug/net6.0/Thread.NET.WebAPI
$ bin/Debug/net6.0/Thread.NET.WebAPI
[1] 19794 segmentation fault (core dumped) bin/Debug/net6.0/Thread.NET.WebAPI
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
on docker it works completely fine it just doesnt work locally
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
also it works on windows
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
no i am not deploying i am launching using dotnet run the app isnt ready yet
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
it no longer does, it had to do with it being a snap install of dotnet
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
i am running it on my linux install using dotnet run /media/h/path/to/solution/project/ $ dotnet run
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
ubuntu 22.04
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
i am currently on windows
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
i did that sudo apt install dotnet yadda yadda maybe i should just switch the development to windows at this point since no issues there
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2y ago
Tag Search Results
Tags matching the search query "ubuntu":
0 of 0 results shown
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
i will do that and respond
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
h
hOP2y ago
what timezone are you in
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server