Support this blog. Buy from Amazon!
2007-07-24
Painfully Debugging
I spent the last two day debugging painfully. It was bad enough that the debugging was done in a beefy 64-bit Linux machine with 8GB of RAM connected via Xwindows tunneled through ssh in a Redhat Linux environment running as a VMware image in my Windows XP laptop. The bug did not emerge until after running the program for half an hour. And the only message I got was a segmentation fault. And debugger only showed corrupted memory...
At last, I realized the bug was because when I compute the memory size for allocation, the result overflowed the 32-bit unsigned long integer. Sigh.
At last, I realized the bug was because when I compute the memory size for allocation, the result overflowed the 32-bit unsigned long integer. Sigh.
Labels: work