854
submitted 2 months ago by BlueKey@fedia.io to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Quacksalber@sh.itjust.works 158 points 2 months ago

Aren't those almost always race condition bugs? The debugger slows execution, so the bug won't appear when debugging.

[-] BlueKey@fedia.io 83 points 2 months ago

Turned out that the bug ocurred randomly. The first tries I just had the "luck" that it only happened when the breakpoints were on.
Fixed it by now btw.

[-] dunz@feddit.nu 17 points 2 months ago

I had a bug like that today . A system showed 404, but about 50% of the time. Turns out I had two vhosts with the same name, and it hit them roughly evenly ๐Ÿ˜ƒ

[-] vortexsurfer@lemmy.world 2 points 2 months ago

Had a similar thing at work not long ago.

A newly deployed version of a component in our system was only partially working, and the failures seemed to be random. It's a distributed system, so the error could be in many places. After reading the logs for a while I realized that only some messages were coming through (via a message queue) to this component, which made no sense. The old version (on a different server) had been stopped, I had verified it myself days earlier.

Turns out that the server with the old version had been rebooted in the meantime, therefore the old component had started running again, and was listening to the same message queue! So it was fairly random which one actually received each message in the queue ๐Ÿ˜‚

Problem solved by stopping the old container again and removing it completely so it wouldn't start again at the next boot.

load more comments (6 replies)
load more comments (9 replies)
this post was submitted on 03 Sep 2024
854 points (99.4% liked)

Programmer Humor

32461 readers
470 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS