Fix Memory Leaks in C Code with Valgrind

  Рет қаралды 37,164

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 20
@killermonkey1392
@killermonkey1392 2 жыл бұрын
Valgrind becomes especially powerful when you're compiling with debug symbols (-g), since it then also shows you the file and line number where the leak, invalid write etc. occurs (as can be seen for some STL functions in the video).
@markusbuchholz3518
@markusbuchholz3518 2 жыл бұрын
I do believe your channel is outstanding with remarkable and consistent content . You are brilliant person who share the knowledge and inspire people to be better in probably most challenging domain in our times. I love especially parts where you discuss great Linux, C++ , compilers, and other content connected with fundamental principles of Computer Science. Keep finger for you success and goals!
@markkitur5326
@markkitur5326 14 күн бұрын
I have really learnt a lot thank you.
@JLSXMK8
@JLSXMK8 2 жыл бұрын
"[numOfAllocs] allocations, [numOfFrees] frees"; The program gives you a summary of the number of memory allocations and deallocations by providing an overall count, possibly before providing you with more information on each specific memory leak. This is just in case you have dozens of memory leaks to fix and you need to run it multiple times in order to make sure each one is taken care of.
@ralvarezb78
@ralvarezb78 2 жыл бұрын
So useful to find memory leaks when you make glue code between python and C
@adegbiteseyi1342
@adegbiteseyi1342 Жыл бұрын
this is a great insight into interpreting the checks. but i will like you to explain to deal with the errors that occur as a result of the invalid write of size 4..... thanks
@paulfloyd9258
@paulfloyd9258 11 ай бұрын
--track-origins doesn't help with leak detection As valgrind --help says --track-origins=no|yes show origins of undefined values? [no] You can also track file descriptors --track-fds=no|yes|all track open file descriptors? [no] (which will be the int file descriptor underlying the FILE interface)
@lennuard_6998
@lennuard_6998 2 жыл бұрын
please more c content! love ur videos
@ripplerxeon
@ripplerxeon 2 жыл бұрын
Thanks for the video ... It helps allot
@xyr0s.official
@xyr0s.official 2 жыл бұрын
Hey, I watch lots of your videos, and I see you are a beast with python and other languages, and I since im working on this project, I decided to ask you this. Can you show how to make a steam account generator please? I'm trying to do it in python using selenium and the online temp-mail generator but it's a bit hard to set up proxies,solve the captchas and I don't really know how to confirm the email. Thank you!!
@shadowrealm8937
@shadowrealm8937 6 ай бұрын
shouldnt it be malloc(sizeof(char)*20))?
@mrglick5050
@mrglick5050 4 ай бұрын
sizeof(char) is equal to 1, i would still do it for clarity though
@judedavis92
@judedavis92 2 жыл бұрын
I liked the video and this was helpful. One thing though is that sometimes when you talk you sound like you're bored like at 6:10. Sometimes my teachers speak like that and for some reason, it irritates me. Even TWT sometimes speaks like that and I'm not sure why it's so common :D. Just a small point, but I still really like your videos in general.
@navi-wi9mu
@navi-wi9mu 8 ай бұрын
Because we are all dead inside.. haha
@guilherme5094
@guilherme5094 2 жыл бұрын
👍Thanks!
@chriswang8343
@chriswang8343 Жыл бұрын
where did u even get valgrind? do u need to install it? Is it an extention?
@CoolKoon
@CoolKoon Жыл бұрын
Watch the video again. It says right there.
@tips1483
@tips1483 2 жыл бұрын
Hello!
@SerjCrimea
@SerjCrimea Жыл бұрын
Hi from Crimea? Russia. Am see your video with Yandex/Alisa AI/ Translate ;)
@philtoa334
@philtoa334 2 жыл бұрын
Thx_.
Memory Leaks And How To Prevent Them | C Programming Tutorial
15:15
Portfolio Courses
Рет қаралды 10 М.
Memory leak in C/C++
17:55
mycodeschool
Рет қаралды 246 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
you will never ask about pointers again after watching this video
8:03
i wrote my own memory allocator in C to prove a point
5:23
Low Level
Рет қаралды 400 М.
Running a Buffer Overflow Attack - Computerphile
17:30
Computerphile
Рет қаралды 2 МЛН
find memory errors quickly. (-fsanitize, addresssanitizer)
9:44
Jacob Sorber
Рет қаралды 19 М.
An unexpected memory leak in JS
13:56
Theo - t3․gg
Рет қаралды 62 М.
Beginner's Guide To The Linux Terminal
42:27
DistroTube
Рет қаралды 399 М.
Debugging C Programs with GDB
16:43
NeuralNine
Рет қаралды 46 М.
Garbage Collection (Mark & Sweep) - Computerphile
16:22
Computerphile
Рет қаралды 248 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН