runtime: Add a way to capture runtime fatal errors

As discussed in https://github.com/dotnet/core-setup/issues/4455#issuecomment-422214003 it would be nice for the host to be able to capture runtime fatal errors (including unhandled exception).

Original motivation: In ANCM we are trying to prevent the worker process from crashing by means of catching all native exceptions coming from hostfxr_main but doing so overrides coreclr unhandled exception handler that is logging to event log making diagnostics of unhandle exception very hard for customers.

@vitek-karas @jkotas

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (28 by maintainers)

Most upvoted comments

We had a meeting to discuss this. We briefly discussed the requirements and the proposed solution. The next step is to document the proposed design. I have been focusing on infrastructure, but will be able to make progress next week.