New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when running .NET Core 3.0 app on OpenVZ #13833
Comments
Here's |
@303248153 @janvorli Do you think this could be related to dotnet/coreclr#26912? I'm seeing this on an OpenVZ VPS so it sounds like it might be related, but I don't know enough about C++ debugging to confirm that. Sometimes it just locks up (like what you reported), and other times I get this segmentation fault in Do you know of any workaround I can use in the meantime? @303248153, do you have a patched |
Looks like it's the same problem, but I already deleted my workspace so no patched libcoreclr.so in my hand now. |
Today I learnt that it's pretty easy to override library methods using As a workaround, I defined a // coreclr-27955-workaround.c
int sched_getcpu(void) {
return 0;
} Compiled it: gcc -shared -fPIC coreclr-27955-workaround.c -o libcoreclr-27955-workaround.so
sudo cp libcoreclr-27955-workaround.so /usr/local/lib Then ran my app with the LD_PRELOAD=/usr/local/lib/libcoreclr-27955-workaround.so ASPNETCORE_ENVIRONMENT=Production ASPNETCORE_URLS=http://*:54561 ./Foo It worked! |
Duplicate of #13475. This issue will be fixed in .NET Core 3.1.2 update. |
I have a .NET Core app that's a fairly basic gRPC service (unfortunately not open source yet, so I can't link to the source at the moment). On one particular server, it's throwing a segmentation fault as soon as I run it:
In fact, I'm seeing this for a very basic ASP.NET website too (just one custom middleware using
app.Run
).Backtrace from lldb + SOS:
Debian stable (buster)
The text was updated successfully, but these errors were encountered: