Loading…
Devconf.cz 2023 has ended
Back To Schedule
Friday, June 16 • 10:30am - 11:05am
Debugging memory issues with Valgrind and GDB

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Buffer overflows, memory leaks, and similar memory issues plague many C and C++ programs. Valgrind is a sophisticated utility for finding low-level programming errors, particularly involving memory use. The GNU Project Debugger (GDB), is a popular tool for use with C/C++ and other languages. We'll show how in the latest Fedora distro they can be used together and how you can get debuginfo for all your system libraries automatically.
I'll show how to use Valgrind and GDB together. It used to be a bit cumbersome to setup them up together. But through recent work upstream and in Fedora it's possible to run gdb as normal, type target valgrind, and start debugging the program which now automatically runs under valgrind inside Gdb. We'll demo finding and debugging memory issues like undefined memory, accessing freed memory and memory leaks all from gdb using the information valgrind provides.

Speakers
AP

Alexandra Petlanova Hajkova

software engineer, red hat
I'm Alexandra from the Czech Republic. I'm an avid reader who loves hiking and camping. I'm working as a Software Engineer in a gdb team and I love to contribute to various upstream projects.



Friday June 16, 2023 10:30am - 11:05am CEST
D0206 | Talks