Mail Archives: djgpp/1999/08/23/09:22:41
On 22 Aug 99, wriska was found to have commented thusly:
> I am working on a program, and when I run it, I am getting
> a SIGSEGV signal. Does anyone know what this signal
> means? Any help would be greatly appreciated. Please
> email me with whatever help you can give me.
This processor exception means you are trying to access memory that is
forbidden to your application. It is always (or at least 99 in 100 times) the
result of failing to initialize a pointer to memory properly.
Find the source code line that is causing the problem: using a debugger will
bring you to the stopping point. Look at all the variables on that source code
line that could be the problem, namely, look for a variable that is a pointer.
Check the value of the pointer(s) on that line just prior to stepping into the
exception. Try accessing the pointer through indirection: it should give you
values you expect if you have initialized. If the pointer itself has a value
of '0x0', namely NULL, and you have de-referenced it in the offending line,
that's a sure clue.
> Thank you,
> wriska
Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara TURKEY
- Raw text -