~/talk

Debugging concurrency programs in Go

Talkat GoWayFest 4.0 (online edition) · 2020-07-11..07-12· [go]
slides:none on file

Shows concrete techniques: run-time tracing with GOMAXPROCS tweaks and GODEBUG=schedtrace to see scheduler-to-thread mapping, inspect goroutine stacks and channel buffers, and set conditional breakpoints to hit a specific goroutine. Demonstrates using delve and gdb to list goroutines, print goroutine backtraces, and inspect channel internals; explains why Go only reports a deadlock when all goroutines sleep and recommends go-deadlock-like libraries and practices to find leaking or blocked goroutines.

AI-written summary · about

  1. 0:00Introduction to debugging concurrency
  2. 1:34Why concurrency debugging is hard
  3. 4:27What is a goroutine
  4. 6:16Using Go Playground for debugging
  5. 7:46Visualizing goroutines with colors
  6. 10:16Tracing with GODEBUG
  7. 12:29Debugging with Delve basics
  8. 13:56Debugging goroutines with Delve
  9. 22:18Debugging channels in Go
  10. 26:55Using GDB for Go debugging
  11. 29:46Detecting deadlocks in Go
  12. 32:41Seven rules for concurrency debugging
  13. 35:15References and resources
  14. 36:21Q&A session
~/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.