~/talk

Debugging memory issues with Valgrind and GDB

Talkat DevConf.CZ 2023 · 2023-06-16..06-18· [linux-and-operating-systems]
links:none on file
slides:none on file

Valgrind and GDB now integrate so GDB can launch Valgrind with target valgrind (no separate terminal needed): Fedora 38 ships vgdb multi-mode plus a Valgrind Python monitor that lets GDB autocomplete Valgrind commands, change options at a breakpoint, run memcheck and ask Valgrind for defined/undefined bits with memcheck get debits, and stop at exit to inspect leaks. Debuginfod auto-downloads missing debuginfo. Works out of the box but is slightly experimental and currently consumes standard input/output of the debugged process.

AI-written summary · about

  1. 0:00Introduction to integration
  2. 1:07Debugging methodologies
  3. 2:20New Valgrind features
  4. 4:08Understanding vgdb multi-mode
  5. 6:16Setting up Valgrind in GDB
  6. 8:17Python monitor commands
  7. 10:07Real-world usage examples
  8. 12:38Diagnostic analysis
  9. 15:08Summary and acknowledgments
  10. 17:18Q&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.