Fix multiple dumps from being generated (#80474)
authorMike McLaughlin <mikem@microsoft.com>
Wed, 11 Jan 2023 08:13:37 +0000 (00:13 -0800)
committerGitHub <noreply@github.com>
Wed, 11 Jan 2023 08:13:37 +0000 (00:13 -0800)
commit7e439a1349c596b8a1130b85bd2180a883eface4
tree03c5d3e095338cb17187d4c55e4b54d52d47735c
parent52381a1f88c5b3c6c0bde46c7f6d2b4dba49aab5
Fix multiple dumps from being generated (#80474)

Issue: https://github.com/dotnet/runtime/issues/78956

After a core dump is generated because of a unhandled managed exception
abort() is called but a SIGSEGV is generated in libpthread.so which is
caught by the runtime and a second core dump is generated. The fix is
to uninstall/uninitialize all the signal handlers, not just SIGABORT.
src/coreclr/pal/src/exception/signal.cpp
src/coreclr/pal/src/include/pal/signal.hpp
src/coreclr/pal/src/thread/process.cpp