Re: [?] Find the address of a segfault in userland

Jason Duerstock (
Sat, 28 Feb 1998 16:43:42 -0500 (EST)

I believe so. I think the alpha ends up pointing to the buggy
instruction, but on the x86 it points to the instruction after.


On Sat, 28 Feb 1998, David Woodhouse wrote:

> said:
> > void sigsegv_handler(int num, struct sigcontext info) /* ignore the
> > compiler whinings :D */ {
> > printf("EIP: %x\n", info.eip); }
> That doesn't give the address that caused the fault, though - does the sigsegv
> handler have to disassemble the offending instruction and work out the
> faulting address itself?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to