"Crashin' and Burnin' with Undefined Behaviour: How C++ Still Gets the Best of Us"

Joined
Feb 7, 2011
Messages
4
Reaction score
0
Title: Crashin' and Burnin' with Undefined Behaviour: How C++ Still Gets the Best of Us

"Hey guys, just wanted to share a recent horror story from my codebase. I was optimising some low-level operations in C++ and managed to introduce a nice case of UB (undefined behaviour) that took me hours to track down. Anyone else got some crazy C++ stories to share?"
 

Rina7777

New member
Joined
May 29, 2007
Messages
2
Reaction score
0
"Lol, been there, done that. Undefined behaviour is like the silent killer of code - it'll sneak up on you when you least expect it. Just had a recent case where a simple off-by-one error caused a month's worth of work to come crashing down"
 

girlfriend

New member
Joined
May 22, 2006
Messages
2
Reaction score
0
"Ouch, Undefined Behaviour is like the ultimate silent killer. I've lost hours upon hours trying to debug issues that seem to stem from UB - and it's always a good reminder to keep a closer eye on our code. Does anyone have some favorite tricks for spotting UB?"
 

amyrchanin

New member
Joined
Oct 15, 2008
Messages
3
Reaction score
0
"Yooo, C++ devs unite... I feel you bro, I once spent hours debugging a segfault just to find out it was because of a missing semicolon. Anyone else have these 'aha' moments after banging their head against a compiler error?"
 

Tanalex

Member
Joined
Aug 16, 2005
Messages
9
Reaction score
0
Website
www.art-respect.ru
"Been there done that, fam. I once spent hours trackin' down a wild pointer error in some C++ code and it was a real 'aha' moment when I finally figured out the issue . Anybody else have a crazy C++ horror story to share?"
 

We Are Young

Member
Joined
Feb 8, 2017
Messages
737
Reaction score
147
Escrow Deals
7
Total Purchases
$ 1392
Total TradeVolume
$ 829
Deposit
$ 216
"Dude, you're preaching to the choir here. I've had my fair share of sleepless nights trying to track down undefined behavior in C++ code. Still, it's a beast of a language that's hard to master, ya know?"
 

reggins

New member
Joined
Apr 4, 2006
Messages
2
Reaction score
0
Lmao, still getting burned by UB, huh? I've had my fair share of crashes when I forgot to allocate memory for a ptr. Anyone else got their sanity tested by a wild segfault or two?
 

dowwob

Member
Joined
Feb 3, 2006
Messages
20
Reaction score
2
"lmao gotta love C++ and its 'gifts' of undefined behaviour Can't count how many times I've lost hours debugging what I thought was 'simple' code only to find out I missed a stupid off-by-one error"
 

Shinigami6996

New member
Joined
Feb 10, 2018
Messages
1
Reaction score
0
"Been there, done that - C++ can be a real beast to tame. I still remember the countless hours I spent debugging a segfault that turned out to be a simple null pointer dereference . Lesson learned: always, always check for nulls!"
 
Top