On Sun, Jul 03, 2011 at 02:55:06AM +0200, Samuel Thibault wrote: > Jeremie Koenig, le Wed 29 Jun 2011 18:30:26 +0200, a écrit : > > + uc->uc_sigmask = sc->sc_mask; > > + uc->uc_stack.ss_sp = (__ptr_t) sc->sc_esp; > > + uc->uc_stack.ss_size = 0; > > + uc->uc_stack.ss_flags = 0; > > We generally don't know much beyond esp indeed. In the sigaltstack case, > however, we do.
The ucontext_t passed to the handler refers to the context that the signal interrupted, though, so this would work only when a SA_ONSTACK handler is interrupted by another signal. -- Jeremie Koenig <j...@jk.fr.eu.org> http://jk.fr.eu.org