[LCP]Segmentation Fault

Dhaval Mehta dhavalm99 at gmail.com
Wed Feb 22 15:39:02 UTC 2006


Hello Everybody,

I have a C program which executes successfully on RedHat 8.0 gcc
version 3.2.When i execute the same program on different machine
having Fedora Core gcc version 3.3.2 it gives the Segmentation
fault.When i used gdb tool for debugging i got the following message:-
Program received signal SIGSEGV, segmentation fault
build() at "program.c":2862
So when i comment the line 2862 which is a initialisation statement
and again use gdb,i get error at some other line.
Also this program was translated using P2C which was installed
separately for both the machines (Pascal to C translator).
Please guide me.
Thank You.

Dhaval.




More information about the linuxCprogramming mailing list