Debugging one layer deeper
summary
Investigation traces daily crashes to a promoted thin lock whose sync block contains -1 stored as thread pointer, causing an access violation when reading thread id at offset 0x2C. Diagnosis uses WinDBG + SOS (ip2md, syncblk, dd, disassembly) mapped to coreclr source to confirm m_HoldingThread = -1, finds thread id table cleared after finalization and id reuse, reproduces with a small repro program, mitigates by reverting to synchronous controller, and files an issue/PR to the runtime repo (runtime bug not yet fixed).
AI-written summary · about
chapters (15)
- 0:00Start
- 0:40What Do You Like More Having Talk Online or Offline
- 5:56What Do I Mean by One Layer Deeper
- 7:50Identify
- 9:17What Is a Tracer
- 11:32Configure the Server To Automatically Capture a Memory Dump
- 12:15Access Violation
- 19:44Calling Convention
- 25:01Thin Lock
- 29:28Inspect a State from the Memory Dump
- 43:26Conditional Jump
- 46:59Source Code
- 56:16Garbage Collector
- 59:45What Has Started the Incident
- 1:03:18Questions
