Picture This

Oct 09, 2006 03:34

My days work. Coding from 12 pm to 3 am, with a break for dinner, showering and about 2 hours at my neighbors. Picture my entire days work that i have been trying to figure out comes down to one very last compile of the night. it works...then i try it with a different set of data. What happens. A FUCKING SEGMENTATION FAULT!!!!*screams on top of ( Read more... )

programming

Leave a comment

Comments 5

tuxmentat October 9 2006, 14:35:02 UTC
This is why I hate C :P I would triple check for bounds on arrays first..

Do you use an IDE with a debugger? Sometimes it helps to set some stop points in the code and let it run through the debugger to see where it fucks up. You might be able to narrow it down to a single method or block of code.

BTW, have you heard about lint. Many unix systems have it installed by default (I just checked and pegassus/freddie has it). If you don't have it you can probably get it via yum, or perhaps use splint.

Reply

zewrestler October 9 2006, 14:45:13 UTC
i've been using xemacs for this project. and compiling it in a sun machine.

Reply

tuxmentat October 9 2006, 14:57:37 UTC
Hehe, you are doing it old school! :)

Well, you can always try to use gdb. It's not the most user friendly app though... :/

Reply

zewrestler October 9 2006, 15:04:29 UTC
which do you think will be better?

Reply


Leave a comment

Up