I have a program that crashes the CLR. How do I go about debugging the root cause?
I have a program that sometimes, but not always, crashes the CLR. It might be something to do with accessing an enumerator from a catch block, but that might be a red-herring and it might be coming from a library I'm using. I'd like to work out whether it's my own code or the library before I raise a bug against the library. So I need some help on how to diagnose what exactly is happening. Most of the time it crashes with no output at all, sometimes the only output is
Fatal error. , and once, I got Fatal error. 0xC0000005 which is Access Violation. Just one, but I've not seen it since, was an actual mini CLR stack trace in which the error message was something like "CLR Crash" but I don't remember the detail.