~/talk

What Really Happens When You Start Panicking in Rust

Talkat Rust in Paris 2025 · on Wednesday, 2025-06-25· [rust, concurrency]
links:none on file
slides:none on file

Explains that calling panic! or panic_any either hands a formatted message or an arbitrary payload to a panic handler, with panic_any payload trick used by the compiler to mark owned panics; standard library installs a global handler and composable panic hooks while runtime chooses abort or unwind. Unwinding relies on DWARF/LSDA tables and a C++-compatible personality function, so using extern "C-unwind" or compiling C/C++ with -fexceptions lets panics cross language boundaries. Unwinding adds about ~10% binary size and significant complexity (cleanup code, mutex poisoning, optimizer limits).

AI-written summary · about

  1. 0:00Introduction to panic in Rust
  2. 1:08Talk scope and assumptions
  3. 2:13Entry points to panic machinery
  4. 3:37Core panic behavior explained
  5. 5:20Standard library panic handler
  6. 7:24Panic hooks and customization
  7. 8:49Panic runtime options
  8. 10:34Unwinding as exception handling
  9. 11:40Normal program execution flow
  10. 13:08Panic flow and stack unwinding
  11. 14:14Unwinding metadata in binaries
  12. 15:38Cleanup code during unwinding
  13. 17:46LSDA and personality functions
  14. 20:34Bonus: panic any use case
  15. 23:05Rust C++ interoperability
  16. 24:34Zero-cost exceptions myth
  17. 25:57Complexity of unwinding
  18. 27:41Q&A and closing
~/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.