lkml.org 
[lkml]   [2002]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: SA_SIGINFO in Linux 2.4.x
    From
    Date

    On Fri, 2002-08-02 at 04:14, Camm Maguire wrote:
    > Greetings! The 2.4.x kernels on alpha don't appear to be filling in
    > the si_addr element of the siginfo_t structure when a signal handler
    > is setup with SA_SIGINFO. Is this right? Any other way to get this
    > address in the handler?

    You may be able to use the third argument to the signal handler:
    given a handler declared as (int n, siginfo_t *info,struct ucontext *context),
    look at context->uc_mcontext.sc_traparg_a0

    SBCL has been doing this for a few months now and nobody has yet
    complained that it's broken for them. Look for arch_get_bad_addr
    in http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sbcl/sbcl/src/runtime/alpha-arch.c?rev=1.14&content-type=text/vnd.viewcvs-markup



    -dan

    --

    http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:27    [W:0.028 / U:0.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site