Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-07-07 23:58:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-07-07 23:58:16 +0400
commite1d158a04fb1ebce2cc64c317415003b7440ddea (patch)
tree8cf9f7526d7976d951dc2e71158015ad90d07710
parent7bd00a0bef1d58c3723601f0e5cf57935b01a57c (diff)
* exceptions.cc (exception::myfault_handle): Disable handling
STATUS_STACK_OVERFLOW. Explain why.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/exceptions.cc3
-rw-r--r--winsup/cygwin/release/1.7.312
3 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 121f3e601..6dede5698 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2014-07-07 Corinna Vinschen <corinna@vinschen.de>
+ * exceptions.cc (exception::myfault_handle): Disable handling
+ STATUS_STACK_OVERFLOW. Explain why.
+
+2014-07-07 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler_socket.cc (fhandler_socket::send_internal): Improve loop to
write streams in chunks of wmem() bytes to raise performance when
writing small buffers. Rename variables and add comments to help
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 7e707013e..ebfc97572 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -563,7 +563,10 @@ exception::myfault_handle (LPEXCEPTION_POINTERS ep)
{
case STATUS_ACCESS_VIOLATION:
case STATUS_DATATYPE_MISALIGNMENT:
+#if 0
+ /* Short-circuting STATUS_STACK_OVERFLOW disables stack commits. */
case STATUS_STACK_OVERFLOW:
+#endif
case STATUS_ARRAY_BOUNDS_EXCEEDED:
me.andreas->leave (); /* Return from a "san" caught fault */
default:
diff --git a/winsup/cygwin/release/1.7.31 b/winsup/cygwin/release/1.7.31
index 400216469..cdd1ca458 100644
--- a/winsup/cygwin/release/1.7.31
+++ b/winsup/cygwin/release/1.7.31
@@ -13,3 +13,5 @@ What changed:
Bug Fixes
---------
+- Don't catch STATUS_STACK_OVERFLOW preliminary on 64 bit.
+ Fixes: https://cygwin.com/ml/cygwin/2014-07/msg00046.html