My favorite software bug is definitely "off by one" errors (en.wikipedia.org/wiki/Off-by-on). They are so insidious at times. They're often overlooked and the issues they cause aren't always immediately apparent. Debugging them can be a royal pain in the ass.

