This is the mail archive of the
mailing list for the Cygwin project.
Re: REVISITED: Signal delivered while blocked
On Fri, 18 Aug 2017 18:20:40, Corinna Vinschen wrote:
> On Aug 16 23:22, Houder wrote:
> > The alternative testcase in fact consists of 2 testcases (2 files):
> > 1. sigprocmask-exclusion4.c
> > 2. sigprocmask-exclusion5.c
> Thanks for the testcases. This is still a pretty tricky problem and a
Providing a proper testcase was my sole purpose (intention?). That is,
to help you (i.e. to prevent you from waisting your precious time).
Though Noah believes that my modification of his testcase is uncalled
Consequently, it is up your discretion :-)
> few hours of debugging haven't shown anything conclusive. The signal
> code was my former co-maintainer's domain, so I'm not as fluent in
> debugging it.
Got it, "Advantage Christopher Faylor, disadvantage Corinna Vinschen"!
Perhaps Christopher would be willing to lend you a hand here ... for old
times' sake ... or as an once-only challenge (to proof to himself, he can
still do it :-))
> ATM it looks like a race inside of the Cygwin DLL to me. The checks if
> a signal should be handled and the *creation* of the call to the signal
> handler (but *not* the actual call to the signal handler) may occur
> before the signal is blocked, while the call then occurs after the
My impression as well (however, in my case it was based on the results of
.. uhm, in "U/Linux land" the delivery of a signal is "immediate", once
the process returns to the kernel ... (i.e. the stack of the process is
adjusted with a call to the signal handler before it will continue).
.. signal handler A is not allowed to continue (and block signal B) if
the kernel has decided that signal handler B should run.
That is, it is what I remember from old times ...
> Anyway, I'm not sure I have enough time to fully immerse into that
> problem any time soon. I'd be not too unhappy if somebody would try to
> debug this in the Cygwin DLL, too...
I hear you. However I am not capable to help you here ... Perhaps somebody
else can ... a much younger person than I am.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple