Does anyone else here write software as part of their job? I have been searching for a bug in some of my code for more than a month, and I just found it. I will actually sleep tonight.
This code is thousands of lines, and runs on a cluster, running computation jobs sometimes for days or weeks, so it's not exactly easy to debug. All your usual debugging tools like gdb or valgrind don't work so well in a multiprocess environment, especially when running under a resource manager (which fairly parses out cluster resources).
Keep this in mind when you want to know why your favorite software company can't "just" fix bug X. This turned out to be a simple one-line oversight on my part which no debugger would've caught anyway, because I out-clevered myself.[DOUBLEPOST=1434572635,1434572574][/DOUBLEPOST]Also for the record, bugs almost always seem to come down to one dumb line. And it's usually about 3 miles from where the bug manifests.