Investigating a crash in a .NET application, caused by an AccessViolationException when inspecting the state of a lock.

InvalidProgramException
, caused by a bug in the Datadog profiler, from a memory dump sent by a customer. This is the last part of the investigation, about figuring out what is wrong with the IL code.