[LCP]debugging a Segmentation fault
Md Zaheeruddin Khan
zaheeruddin.mk at uttarainfo.com
Thu Oct 7 16:59:02 UTC 2004
Use GNU debugger to find out exactly which line caused the
fault. This is avaliable under gcc compiler (Linux OS)
**************************************************************************
Defeat is temporary condition. Giving up is what makes it permanent
**************************************************************************
-----Original Message-----
From: Karthik Vishwanath <karthikv at Alum.Dartmouth.ORG>
To: linuxcprogramming at lists.linux.org.au
Date: Thu, 7 Oct 2004 03:00:45 -0400 (EDT)
Subject: [LCP]debugging a Segmentation fault
> Hello,
>
> I develop a monte-carlo code written in standard C. I recently decided
> to
> "add features" to the previous stable version and now the code aborts
> with
> a Segmentation fault. I suspect the code is executing different parts
> of
> the code before crashing, on different runs (and therefore crashing at
> different points?). There is no core dumped either.
>
> Can I discover which source-line caused the program to abort (or get
> information about which function it was, etc.), or trap the signal
> within the code and print out details -- how?
>
>
> Thanks!
>
> -Karthik
>
>
> _______________________________________________
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
More information about the linuxCprogramming
mailing list