lkml.org 
[lkml]   [2000]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.2.17pre15 and SA_SIGINFO
Hello all,

I have a program which relies on being able to derive the address of a SIGSEGV. To do that, I use the SA_SIGINFO option to sigaction() and read out the faulting address from the si_addr parameter of the siginfo structure (second argument.) I also check si_code for SEGV_ACCERR.

Under 2.4 kernels, this works great. However, under 2.2.17pre15 (I downgraded because of stability problems) and glibc 2.1.2, si_code and si_addr are both 0. Is this simply unimplemented in 2.2 kernels, or is this a bug?

-hpa

--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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