C
C#13mo 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
h13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
on docker it works completely fine it just doesnt work locally
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
also it works on windows
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
no i am not deploying i am launching using dotnet run the app isnt ready yet
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
it no longer does, it had to do with it being a snap install of dotnet
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
i am running it on my linux install using dotnet run /media/h/path/to/solution/project/ $ dotnet run
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
ubuntu 22.04
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
i am currently on windows
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX13mo ago
Tag Search Results
Tags matching the search query "ubuntu":
0 of 0 results shown
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
i will do that and respond
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
h
h13mo ago
what timezone are you in
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord13mo 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
More Posts
❔ Can anyone break down this one-line code for me?```builder.Services.AddHttpClient<CatalogueService>(catalogueClient => { catalogueClient.BaseAddress❔ how to use swagger in console application?I created simple console application and wrote this: ```cpp static internal class Program { statI never reach the return, and i dont know why?I have this Task: (Picture 1), which also calls two other Tasks (Picture 2 and Picture 3). However ❔ Multiple Read and write to an excel file simultaneously C#Team, Can multiple users read an excel file ( say which is stored in network ) and update the value❔ ✅ How do I start with unity?Please make it so simple, so i can get to understand! NOTE: IF I NEED TO LEARN SOMETHING BEFORE, THE❔ SQL query for multiple data objectsHello folks, Imagine i have a json array of json objects that i send to an API wich uses a SQL query❔ Why is there no colorCan i ask why some of my code isn't like turning blue or red or purple etc. Cuz i'm getting an errorSocket Exception when creating a UDP client, and i dont know why :(Hello everyone, i need help understanding why my code doesnt work. I wrote a client-server chatroom ❔ Help with Action syntax for event handler systemI am trying to add a basic event system to my program and would like the syntax to be something likeNew to unity and c# how do I make a camera follow an object and rotate around a certain point on theNew to unity and c# how do I make a camera follow an object and rotate around the object