libc/winsup
Corinna Vinschen 2cd7eb7f60 Fix original stack when running signal handler on alternate stack
* autoload.cc (SetThreadStackGuarantee): Import.
        * cygtls.h (struct _cygtls): Replace thread_context with a ucontext_t
        called context.
        * exceptions.cc (exception::handle): Exit from process via signal_exit
        in case sig_send returns from handling a stack overflow SIGSEGV.
        Explain why.
        (dumpstack_overflow_wrapper): Thread wrapper to create a stackdump
        from another thread.
        (signal_exit): Fix argument list to reflect three-arg signal handler.
        In case we have to create a stackdump for a stack overflow condition,
        do so from a separate thread.  Explain why.
        (sigpacket::process): Don't run signal_exit on alternate stack.
        (altstack_wrapper): Wrapper function to do stack correction when
        calling the signal handler on an alternate stack to handle a stack
        overflow.  Make sure to have lots of comments.
        (_cygtls::call_signal_handler): Drop local context variable to reduce
        stack pressure.  Use this->context instead.  Change inline assembler
        to call altstack_wrapper.
        (_cygtls::signal_debugger): Accommodate aforementioned change to
        struct _cygtls.
        * tlsoffset.h: Regenerate.
        * tlsoffset64.h: Regenerate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-07-04 22:49:30 +02:00
..
cygserver * pwdgrp.cc: Handle default fetch_user_arg_type_t in switches 2015-02-23 21:00:31 +00:00
cygwin Fix original stack when running signal handler on alternate stack 2015-07-04 22:49:30 +02:00
doc winsup/doc: Update ancient README about building documentation 2015-06-23 12:07:47 +01:00
lsaauth * configure.ac: Convert to new AC_INIT style. 2014-08-15 21:24:35 +00:00
testsuite * configure.ac: Convert to new AC_INIT style. 2014-08-15 21:24:35 +00:00
utils Improve strace to log most Windows debug events 2015-06-11 12:00:51 +01:00
COPYING
CYGWIN_LICENSE
ChangeLog * configure.ac: Convert to new AC_INIT style. 2014-11-13 12:12:56 +00:00
Makefile.common * Makefile.common (COMPILE.cc): Add -fno-use-cxa-atexit. 2014-08-07 16:19:09 +00:00
Makefile.in * Makefile.in: Ignore errors on doc install. 2014-02-18 19:58:39 +00:00
README
acinclude.m4 ChangeLog: 2012-11-23 13:22:47 +00:00
aclocal.m4 winsup/ChangeLog: 2013-11-07 00:19:52 +00:00
autogen.sh ChangeLog: 2012-11-23 13:22:47 +00:00
c++wrap ChangeLog: 2012-11-23 13:22:47 +00:00
ccwrap * ccwrap: Don't drop mingw header file paths unless we've specified them with 2012-11-26 19:00:35 +00:00
config.guess ChangeLog: 2012-11-23 13:22:47 +00:00
config.sub ChangeLog: 2012-11-23 13:22:47 +00:00
configure * configure.ac: Convert to new AC_INIT style. 2014-11-13 12:12:56 +00:00
configure.ac * configure.ac: Convert to new AC_INIT style. 2014-11-13 12:12:56 +00:00
configure.cygwin winsup/ChangeLog: 2013-11-07 00:19:52 +00:00
install-sh ChangeLog: 2012-11-23 13:22:47 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at http://cygwin.com
You might especially be interested in

http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin