[CS-FSLUG] OT: C program crashes

Brian Derr bderr at myrealbox.com
Fri Mar 3 18:05:39 CST 2006


On Thu, 2006-02-09 at 14:34 -0500, Frank Bax wrote:
> I've got some C source code that sometimes crashes with a SIG11, which I 
> believe to be a seg fault.  The program I'm playing with was a free one I 
> got on the web and runs as cgi script.  It randomly fails with Sig 11 
> errors.  Very early in main.c, I see call to setsigs():
[...]
> What could I add/modify to get some clue as to where the real fault is in 
> the software?

Since it appears you have the source code, how about add the -g flag to
gcc and run it through gdb.  Set a break if you have to and then step
through until you find where it is dying.  There are many good quick
intros to gdb if you are unfamiliar with it.

Brian Derr





More information about the Christiansource mailing list