This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Signal handler not executed


On Thu, Aug 09, 2007 at 01:09:48PM -0400, Ernie Coskrey wrote:
>There's a very small window of vulnerability in _sigbe, which can lead
>to signal handlers not being executed.  In _sigbe, the _cygtls lock is
>released before incyg is decremented.  If setup_handler acquires the
>lock just after _sigbe releases it, but before incyg is decremented,
>setup_handler will mistakenly believe that the thread is in Cygwin code,
>and will set up the interrupt using the tls stack.
> 
>_sigbe should decrement incyg before releasing the lock.

I'll apply this but are you saying that this actually fixes your problem
or that you think it fixes your problem?

Thanks for the patch.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]