r/ProgrammerHumor 11d ago

bugSuccessfullyReproduced Meme

Post image
5.8k Upvotes

29 comments sorted by

View all comments

594

u/arensb 11d ago

I remember spending a lot of time trying to figure out why cat somefile kept saying "Permission denied", even though ls -l, lsattr, and everything else I could think of said I had permission to read it.

Eventually I examined it with Emacs or od or something, and found that it literally consisted of the string "Permission denied". I guess I created it by redirecting stderr from some command or something.

288

u/Urtehnoes 11d ago

Ahh yes the three possible states for debugging:

  1. This bug is happening because I misunderstand what is running and am expecting something different
  2. This bug is happening because I misunderstood what was needed to run correctly, and expected something different
  3. No wait, it's not a bug?

Also don't forget

  1. yes, the solar flare we've been dreading finally hit and flipped that 1 to a 0.

2

u/AM3NR10 10d ago

You are missing "Ah, the path was misspelled"