~/talk

Debugging asynchronous scenarios in .NET

Talkat DotNext 2019 Piter · 2019-05-15..05-16· [dotnet]
links:none on file
slides:none on file

Reconstructs async causality by walking runtime objects and continuations to find the actual blocking point: uses WinDbg and Visual Studio to open dumps, inspects ActionBlock internals and finds a completion task faulted with a SocketException that prevents shutdown, and uses SOSX/ref and a custom grunt extension to follow continuations back to the awaiting state machines. Shows thread‑pool starvation where synchronous Task.Wait on Task.Run/LongRunning plus global/local queue behavior inflates threads (observed ~1,466 threads) and the fix is to stop blocking on tasks.

AI-written summary · about

  1. 0:00Start
  2. 3:32Debug Windows and Parallel Stack
  3. 4:51Check the Source Code
  4. 5:52The Action Block
  5. 14:10Retrieve the Address of the Action Block
  6. 14:35Get the Address of an Object
  7. 26:41The Source Code of the Node Object
  8. 30:10Print Exception
  9. 33:03Timer Information
  10. 40:48The Windows Calculator
  11. 43:45What Is a Task Scheduler
  12. 58:31Conclusion
~/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.