Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2003 23:16:22 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        David Xu <davidxu@freebsd.org>
Subject:   Re: First draft: rewrite of {get|set|swap}context(3)
Message-ID:  <Pine.GSO.4.10.10308172313050.29967-100000@pcnet5.pcnet.com>
In-Reply-To: <20030817231246.GA17207@dhcp42.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Aug 2003, Marcel Moolenaar wrote:

> On Mon, Aug 18, 2003 at 06:47:52AM +0800, David Xu wrote:
> > 
> > Then doesn't signal context in signal handler have a UCF_SIGMASK ?
> 
> Yes.
> 
> > void    (*__sa_sigaction)(int, struct __siginfo *, ucontext_t *ucp);
> > the context *ucp should have UCF_SIGMASK now.
> 
> We never define uc_flags currently. We only copyout() uc_sigmask and
> uc_mcontext. Hence, the uc_flags field is garbage. As is the uc_stack
> field.
> 
> > I think it should be UCF_NOSIGMASK. But for libkse, we really needn't
> > this kind of hack, because M:N thread in kernel always masks all signals,
> > you can always SIGFILLSET(&uc.uc_sigmask) before call set_context.
> 
> I tried this, but it didn't fix mutex_d.

I don't think the signal mask problem is the cause of mutex_d
failing, but I did notice it when trying to kill the test.
The mutex_d problem seems to be that either _ia64_restore_context()
or _ia64_break_setcontext() are not working.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10308172313050.29967-100000>