jacob andreas [.net]

GC Bug R,ant

October 31, 2006

Shah B. and I have spent the last 3 weeks trying to resolve a segfault in our hex module. We’d been through it line by line, reduced the size of the game to deal with any memory errors and confirmed the validity of our initial hash. Clearly, the bug wasn’t in our code. After long discussions with the team leads and a final appeal to Dan, we were still unable to discover the source of the mysterious segmentation fault.

I came home after school today to do one final sweep of the code to look for the error. A couple passes with GDB modifying various little things turned up nothing, and I finally decided to recheck the hash setup.

To my horror, I discovered a single missing comma at the end of our pieces array in generic_hash_init.

3 weeks. Because of a comma.

GAAAAAHHHHHH!

Thinking about the loss of productivity makes me slightly nauseous, but I guess the whole situation’s pretty funny, or at least will be in retrospect.

Still, just one comma!

2 Comments (Jump to form)

  1. ,

    Davi — November 1, 2006 @ 6:04 pm

  2. hahaha

    Fona — November 3, 2006 @ 11:47 pm

Leave a comment

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

fine print

All content in public domain unless otherwise specified. Powered by prgmr, FreeDNS, Wordpress and vim.