gogo wrote:
my C program crashes due to segfault .
And on using gdb it shows message
"can not acess memory at address ox0"
what could be the possible problem.
The problem is a bug. Perhaps that sounds vague, but so is
your question and problem.
Likely you are dereferencing a NULL pointer, which could
be the result of any of some thousand different problems.
Program is vary complecated so i can not simple debug using my own
debug statments.
and PC's value is 0x00000 which is no way helpful for backtracking the
problem.
Improve your debugging skills. Atleast try to get a backtrace from
'gdb', try to inspect which variable that has an unexpected value.
A backtrace might show the line of the source code where things
failed - that's always a nice start.
For further help, post the problematic code. If it isn't standard
C, ask in a news group for your platform.