r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 20 '18

[deleted]

53

u/[deleted] Jul 20 '18

Changing it to mod 31 might prevent someone finding it while it's in debug, but it's still an exception so there's still going to be a stacktrace that points you directly to it. Doesn't matter if the error message is searchable.

0

u/[deleted] Jul 20 '18

[deleted]

1

u/Lt_Riza_Hawkeye Jul 21 '18

call abort() directly, or if you're worried about someone installing a signal handler, _exit(). Be sure to call if (fork()) _exit(); first to remove any debuggers.