Using Valgrind and GDB together to fix a segfault and memory leak

preview_player
Показать описание

►Lesson Description: In this lesson I show you how to use Valgrind and GDB together to find bugs. This is a nice review of some of the tools that we have learned, and a reminder that you can combine as many of the tools that we learn together in order to help debug!

►Please like and subscribe to help the channel!
Рекомендации по теме
Комментарии
Автор

Thank you for this explanation! You are a great teacher and this helped me fix my memory leak in one hour instead of one week

ricktierney
Автор

Thank you So Mike you are a great teacher by NATURE 😘

sallaklamhayyen
Автор

Even more fun (for users): using valgrind vgdb and gdb together.

paulfloyd
Автор

I have two follow up questions about Valgrind. I am currently having difficulty getting to the stage you are on, thanks to my Linux Lite naivete. How would you recommend, I create the right environment on Linux Lite to go from merely having Valgrind installed to allowing the terminal to recognize the valgrind command, which you used? Secondly, is my asking this sort of question here in the comments a good way of reaching out to you?

CarlosLeePerez
Автор

Mike since you are a professional C++ developer
can you make a practical and hands on Object Oriented programming course and share with us your experience ?

sallaklamhayyen
Автор

Do you have a video that covers what you did in the first few seconds of this video? I understand the C code and why we got a seg fault but I'm not as familiar with the Linux command line.

_Anna_Nass_
Автор

Seriously, how do you resize the left half screen at 5:54 ?

shawnkuo
Автор

Hello, Mike. I wanted to ask if you having some problems using leaks on Mac 💻 with M chip? I was trying to use memory leaks monitoring using methods you were speaking about in other videos, but it seems with Sonoma I don’t have access to usr/bin 🤷‍♂️

vkatasonov
Автор

I'm disappointed you didn't mention you can run `valgrind --vgdb=yes` and connect gdb to valgrind.

cprn.
Автор

Professionals Use : GDB
Legends use : printfs logs

JackSparrow-ttxg