[prev in list] [next in list] [prev in thread] [next in thread]
List: gnulib-bug
Subject: Re: sigaction and sigaltstack - is detecting stack overflow
From: Geoff Clare <gwc () opengroup ! org>
Date: 2008-07-17 9:28:34
Message-ID: 20080717092834.GA32430 () squonk ! masqnet
[Download RAW message or body]
Eric Blake <ebb9@byu.net> wrote, on 16 Jul 2008:
>
> Any response as to whether the standard intended to codify the behavior of
> Solaris in allowing portable detection of stack overflow, and thus whether
> Linux' behavior is buggy for populating uc_stack with the alternate stack
> details rather than the interrupted stack?
I would say the Linux behaviour you observed is definitely non-conforming,
based on the description of SA_SIGINFO you quoted ("the third argument
can be cast to a pointer to an object of type ucontext_t to refer to
the receiving thread's context that was interrupted when the signal was
delivered"), and specifically the words "context that was interrupted".
--
Geoff Clare <g.clare@opengroup.org>
The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic