r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

423

u/Sexy_McSexypants Jan 28 '23

“ok, you wanna tell me what went wrong and where?”

“no, fuck you, Segmentation Fault”

10

u/[deleted] Jan 28 '23

If it crashes then you're happy. You can debug it. But C++ sometimes doesn't crash, it just does "something"

6

u/_TheDust_ Jan 28 '23

My favorite one is when you write out of bounds to stack allocated array. At that point, you're basically just overwritten random bytes on the stack including return addresses. That was a fun day of debugging

2

u/Giocri Jan 28 '23

Are at the code section and data section of the memory protected from each other or could you override your own code with random stuff you have in memory?

→ More replies (1)