[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sigaction and sigaltstack - is detecting stack overflow possible?
From: |
Geoff Clare |
Subject: |
Re: sigaction and sigaltstack - is detecting stack overflow possible? |
Date: |
Thu, 17 Jul 2008 10:28:34 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Eric Blake <address@hidden> 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 <address@hidden>
The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England