I spent 1 week debugging my C++ program using GDB/Valgrind...

I spent 1 week debugging my C++ program using GDB/Valgrind, today I found it was missing one single "!" in an if statement.

Attached: 1445972464054.jpg (482x427, 36K)

on the bright side, you found the bug. good job, user. :) now go have a beer.

How large was the program?
Seems like kind of an obvious thing.
Shit like that is usually among the first things I check if something isn't working.

fun

Include iso646.h and save your sanity next time

thanks man
it's not big, it's an esolang, it takes the code and interpret it, the input code was not working as expected, it should be checking the stack for NOT being zero, but it was ==.

you could be me, I spent 1 week doing the literal exact same thing... except it was on a VM... on my windows machine. Was waiting for the crash. Then a windows update happened.

Attached: 1524093929613.png (645x729, 50K)

My worst bug to encounter was due to makefile not detecting a change in header file and building few files with old version and few with new version included. The project had pretty big build time and silly me didn't want to rebuild it.
Technically it was a bug in make script.

>*didn't want to clean and build it from scratch

I once spent 7 hours trying to see if I could unit test webgl applications made with scala.js. I wasn't able to find a way.