This is the mail archive of the cygwin 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]


On Jul  7 15:37, Ken Brown wrote:
> On 7/7/2015 2:49 PM, Corinna Vinschen wrote:
> >I spoke too soon.  This *is* a result of the alternate stack handling.
> >When the exception occurs while running on the alternate stack, the OS
> >exception handler checks if the stack pointer is valid, and since it's
> >not in the stackarea as stored in the TEB, it treats the stack as
> >corrupted.  That's why it stops calling the SEHs.
> >
> >In the meantime I found a workaround for this problem with only a very
> >marginal performance hit.  I applied it to the repo and I'm just in the
> >process of creatsing new snapshots.  If the snapshots work for you I
> >create another test release.
> They work for me.  I guess I can go ahead and file that emacs bug report.
> Thanks.

Thank you.  Btw., if you want to be really sure that pthread_getattr_np
recovers from an uninitialized or invalid pthread_attr_t argument, just
initialize it like this:

  pthread_attr_t attr = { 42 };

This gives a compile time warning, but it makes sure that the internal
validity check SEGVs and the exception handling kicks in.

I'll release a new test version today.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpXZFXd6GENf.pgp
Description: PGP signature

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