r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

27

u/LvS Jul 20 '18

You can see the stacktrace from where your code died.

In C you could mess with the stack pointer and then jump to a random address, but even that can be caught with tools like rr.

What you want to throw is a DNS lookup failure or something that just happens regularly in that piece of code.

12

u/Hdmoney Jul 20 '18

The real way to do it would be by invalidating state in a way that you know will get caught in the future.

3

u/SheepLinux Jul 20 '18

I feel sorry for whoever has to debug/deploy ur horrible horrible mess lol

7

u/FatFingerHelperBot Jul 20 '18

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text "rr"


Please PM /u/eganwall with issues or feedback! | Delete

2

u/AUTplayed Jul 20 '18

In C you could mess with the stack pointer and then jump to a random address, but even that can be caught with tools like rr.

oh no, why is that a feature? D: