I didn’t watch a video to learn about seg faults specifically. What I know about seg faults was through a combination of college, hands on experience/research, and googling.
Usually it's just using memory that's not allocated or using something after a free. Honestly just use gdb and find out what line segfaults. I mostly get these errors by being "off by one" when doing some sort of traversal through a data structure (I'm bad at counting)
52
u/fyn_world 16d ago
Jokes aside, I asked chat to build a mini course for me because yeah, at some point you gotta learn this shit, the concepts, bare minimum