lkml.org 
[lkml]   [1998]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [?] Find the address of a segfault in userland
I believe so.  I think the alpha ends up pointing to the buggy
instruction, but on the x86 it points to the instruction after.

Jason



On Sat, 28 Feb 1998, David Woodhouse wrote:

> jasond@cdc.net 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 majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.032 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site