Mail Archives: djgpp/1997/06/01/09:10:09
On 29 May 1997, Jason M. Daniels wrote:
> What is the difference between a Page Fault and a SIGSEGV?
SIGSEGV is a name of the signal that is generated for quite a few
exceptions. Page Fault is one of them; others include Stack Fault,
GPF and a few others (see the description of the `signal' library
function in the libc reference for more details).
> Why is it that
> SIGSEGV's display more information about the error than a Page Fault
> (most notably, a Page Fault doesn't give Call Frame Tracebacks).
The displayed info is the same in all cases. The difference that you
observe is specific to your particular problem/bug. For example, if
you trash the stack you (obviously) cannot expect to get a meaningful
stack dump.
> I'm
> writing a program, and it is generating Page Faults. Due to the lack of
> information given from this error, it is making it very hard to debug. :(
If you cannot figure things out, post the entire message printed when
the program crashes (including the registers' listing and the rest):
it might include cricual info about your problem. If you can pinpoint
the place where it crashes, post the code fragment around there also.
- Raw text -