178
you are viewing a single comment's thread
view the rest of the comments
[-] wizardbeard@lemmy.dbzer0.com 9 points 4 hours ago

More than 15 years ago I ended up with one of those in a C++ program.

I'm sure the real ssue was somewhere else in the code, but if I removed one specific comment (or maybe it was a print to console, it was forever ago) it would segfault, otherwise it ran fine.

[-] nogooduser@lemmy.world 1 points 6 minutes ago

We had that in our DOS C code base. We didn’t have a debugger so we had a function that output debug messages to console if the debug flag was set.

There were more than a few instances where a crash would stop happening if we added debug messages.

We put it down to the linker rearranging modules to fit in memory as our exe was more than a megabyte in size.

this post was submitted on 04 Feb 2026
178 points (99.4% liked)

Programmer Humor

29320 readers
1003 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS