Тёмный

find memory errors quickly. (-fsanitize, addresssanitizer) 

Jacob Sorber
Подписаться 166 тыс.
Просмотров 18 тыс.
50% 1

Patreon ➤ / jacobsorber
Courses ➤ jacobsorber.th...
Website ➤ www.jacobsorbe...
---
find memory errors quickly. (-fsanitize, addresssanitizer) // new programmers often struggle with memory corruption errors and other memory issues. This video's is go remove the headaches and get your program back into working order quickly. Specifically, we're looking at the AddressSanitizer tool that brings valgrind-like functionality into your programs to make it that much easier to find your bugs.
Related Videos:
valgrind video: • Finding memory errors ...
video that talks a bit about debug/release builds: • More Tips for Setting ...
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
www.jacobsorbe...
people.cs.clem...
persist.cs.clem...
To Support the Channel:
like, subscribe, spread the word
contribute via Patreon --- [ / jacobsorber ]
Source code is also available to Patreon supporters. --- [jsorber-youtub...]

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@Nominal_GDP
@Nominal_GDP Год назад
Write down the stuff you want to remember, memory is volatile and you'll forget what you want so writing in a notebook is best 👍
@phitc4242
@phitc4242 Год назад
I can recommend fleeting notes + obsidian or notion for those cloud freaks
@charliesumorok6765
@charliesumorok6765 Год назад
With tcc, -b and -bt make the program print the names of variables and functions when a bad pointer is dereferenced or a bad pointer is created via an array access.
@berk473
@berk473 Год назад
Yess, please more on shadow memory👍
@thejedijohn
@thejedijohn Год назад
Yes, please do one on shadow memory. Also, i know itd make the videos longer, but for videos like this i think itd ve really helpful if you gave even a brief synopsis of other options for flags like -fsanitize. Like, what else can be used other than address and what do those options do. I know i coukd look it up, but you explain things so well that a quick synopsis woukd be an excellent starting point.
@santoshsco
@santoshsco 4 месяца назад
Just fixed a memory corruption bug after months of debugging (hard to reproduce bug)after enabling this flags mentioned in the video ,had to forcefully enable these flags in a debug build to debug at customer site . learned a lot from this channel , thank you .Always recommend this channel to my peers who work on embedded networking stuff .
@davidx5828
@davidx5828 Год назад
I look forward to these videos. I know the good Dr doesn’t always have the time to make them but they are much appreciated.
@alexevier
@alexevier Год назад
thank you for this! i found atleast 3 overflows in my code and im fixing it
@cleightthejw2202
@cleightthejw2202 Год назад
Yes, we want to see the video on 'shadow memory'! AND we want to see the video/s on encryption function/s! :) Thank you :)
@Shmuklidooha
@Shmuklidooha Год назад
Nice intro, but it would be nice if you could help interpret how the debug feedback that fsanitize gives in order to trace it back to where the error occurs in the code.
@tk36_real
@tk36_real Год назад
bro there is a stack trace!?
@gerdsfargen6687
@gerdsfargen6687 Год назад
Sensei where have you been? Missed you and great to "C" you! 😊
@nitinmhetre7280
@nitinmhetre7280 Год назад
Superb tool. Thanks for this knowledge
@hossein4488
@hossein4488 Год назад
Hi Jacob, can you make a video of Heaptrack. It is a very useful memory management tool. The point is that you can attach it to the process at runtime and no need to compile. And a great GUI for analysing memory.
@omegahaifoleet
@omegahaifoleet Год назад
Nice tutorial You might want to use `make -B` instead of `make clean; make` -B, --always-make Unconditionally make all targets.
@kevin_mitchell
@kevin_mitchell 11 месяцев назад
This was great. I'm still using a 2009 iMac, and I can' use valgrind in the Terminal, but I can use -fsanitize=address.
@StandardLoop
@StandardLoop 2 месяца назад
You may also be able to use macos "leaks" command. "leaks --atExit -- ./${EXECUTABLE}
@Byynx
@Byynx Год назад
You should create a playlist for these c++ videos.
@capefry8323
@capefry8323 Год назад
Random question, but Do you have a degree in Electrical engineering Computer engineering, or Computer Science? Which is best for embedded systems work?
@brandonbackes930
@brandonbackes930 Год назад
I would recommend computer engineering. It'll be a little more practical for integrating embedded systems into other systems. Use that as a starting point then add additional courses and modules that expand on it.
@jasonenns5076
@jasonenns5076 Год назад
I also recommend computer engineering because it gives you versatility on what you can make.
@splicedbread
@splicedbread Год назад
Some universities are now offering Embedded Engineering Degrees directly. Computer engineering, however, is good for a dedicated hardware background for the degree and having a hardware level understanding is good to have. I personally dual enrolled in both Computer Engineering and Computer Software Engineering to get into embedded.
@varudurock
@varudurock 6 месяцев назад
Yes, Please make a video on shadow memory
@Bogulus
@Bogulus Год назад
Very good video
@cupofkoa
@cupofkoa Год назад
Yes please can we have a video on shadow memory.
@alincj21
@alincj21 Год назад
Hi, there is also -fsanitize=thread, just in case.
@sritharan20
@sritharan20 Год назад
where can i get T-shirts like the one you were ? Looks awesome
@wabdyli
@wabdyli Год назад
hello I use valgrind on linux, but a friend is coding on a mac and we don’t know how to use valgrind there. What would be the best replacement please?
@DenisTruong
@DenisTruong 5 месяцев назад
awesome
@mynameisjeff9124
@mynameisjeff9124 Год назад
Does this detect vtable overrides? If not, what does?
@redabou9al562
@redabou9al562 Год назад
memory issues it have other option like thread sanitizer check data race..
@michaelthornes
@michaelthornes Год назад
😎
@zxuiji
@zxuiji Год назад
DId you see my recent comment on C89 templates that I made on your "Don't write clever code" vid? Just checking since I know sometimes comments get unnoticed due to a variety of things such as life itself.
@codedsprit
@codedsprit Год назад
Waiting for such videos but in rust🦀
@Vineeth_Shankar
@Vineeth_Shankar Год назад
First 😅
Далее
Another way to check pointers at runtime in C
12:16
Просмотров 12 тыс.
Pulling Back the Curtain on the Heap
21:38
Просмотров 37 тыс.
Binary data exercise: how to tell if a file is a jpeg?
17:48
How to make memory read-only in your C programs.
12:57
But, what is Virtual Memory?
20:11
Просмотров 282 тыс.
All about MEMORY // Code Review
33:42
Просмотров 165 тыс.
How a Clever 1960s Memory Trick Changed Computing
20:05
Arenas, strings and Scuffed Templates in C
12:28
Просмотров 88 тыс.
The What, How, and Why of Void Pointers in C and C++?
13:12
ARRAYLIST VS LINKEDLIST
21:20
Просмотров 64 тыс.
What is the Smallest Possible .EXE?
17:04
Просмотров 402 тыс.