~/talk

Debug C++ Programs You did not write

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp]
links:none on file
slides:none on file

Debugging C++ binaries without source proves practical: retrieve debuginfod / public symbol servers for OpenJDK nightlies, but optimizer still hides values; decompile with Ghidra (decompile to C) and map parameters to registers to find addresses; instrument the loaded shared object with Frida to inject fast runtime prints and unlimited hardware breakpoints via page-protection, which reliably logs values in the JVM; GDB record/trace and gdb-based tracing fail to scale on large multithreaded targets. The injected traces expose the wrong pointer use and enable a confirmed workaround.

AI-written summary · about

  1. 0:00Introduction to debugging
  2. 1:08Compiler errors and workarounds
  3. 2:55Debugging external libraries
  4. 3:58Finding debug symbols
  5. 5:43Using debug symbols with GDB
  6. 7:30Debug info limitations
  7. 8:11Ground truth and register values
  8. 10:20Failed debugging attempts
  9. 11:46Automated breakpoints and slowness
  10. 12:47Decompilation approach
  11. 15:18Tracing with Frida
  12. 17:26Dynamic module instrumentation
  13. 19:11Hardware breakpoints with Frida
  14. 20:34Planning and debugging strategies
  15. 21:41Q&A and wrap-up
~/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.