~/talk

Debugging one layer deeper

Talkat Dotnetos Conference 2021 · 2021-10-05..10-06· [security]
slides:none on file

An instrumentation agent causes an access violation that traces all the way into the CLR: dumps from an instrumented server that crashes about once a day reveal a read at address -1+0x2c, and WinDbg with SOS shows the fault in objectnativeislockheld. The investigation uses WinDbg, reverse-engineered CLR assembly and syncblk inspection to find an -1 in m_HoldingThread inside a promoted sync block (one orphaned entry), a small repro is built that reliably reproduces the crash.

AI-written summary · about

  1. 0:00Intro
  2. 1:47Debugging methodology
  3. 3:39What is Data Tracer
  4. 4:58The problem
  5. 5:55Finding the issue
  6. 9:38Analyzing the code
  7. 10:18Digging into the source code
  8. 10:51CLR source code
  9. 12:04Lockheed source code
  10. 14:40Calling convention
  11. 16:11Theories
  12. 18:37Example
  13. 19:33SynLock
  14. 21:25Programmatic
  15. 22:39Verifying theories
  16. 26:30Orchard source code
  17. 27:58Mapping instructions
  18. 33:20Verification
  19. 42:18Inspecting the value
  20. 45:55Debugging the access violation
  21. 48:59Wrapping things up
  22. 51:35Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.