~/talk

Debugging C++ Coroutines

Talkat C++Online 2025 · 2025-02-26..02-28· [c-and-cpp]
links:none on file
slides:none on file

Walks through concrete debugging cases: implements a minimal suspendable subroutine and a Fibonacci std::generator example, inspects disassembly and promise callbacks, and reproduces a lifetime bug when generators yield heap-allocated vectors (sanitizers catch the access violation). Uses Visual Studio stepping, static thread pool and a scheduler from Nvidia/XAsync P2300 senders/receivers, shows that std::generator is not truly asynchronous and that std::task missed C++26. Demonstrates exception propagation (missing try/catch crashes) and scheduler affinity causing a timeout task never to run.

AI-written summary · about

  1. 0:00Introduction to coroutines
  2. 12:51First coroutine example
  3. 21:53Awaitable mechanics
  4. 30:12Debugging basics
  5. 44:21Exception handling
  6. 45:27Reference parameters
  7. 47:10Simple generator
  8. 50:06Concurrency explained
  9. 53:47Task scheduling
  10. 1:01:36Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.