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-cygwin@cygwin.com>2021-10-26 19:03:28 +0300
committerCorinna Vinschen <corinna@vinschen.de>2021-10-28 23:35:17 +0300
commite528cfe919d757ba9bc07db1798cb17560bba457 (patch)
tree95564384f7627a58dd29c78bf26e138e7daef85b /winsup/cygwin/release/3.3.1
parent462ca33745cfa45302eeeb1d6e6bd82cc64c4027 (diff)
Cygwin: split malloc_initcygwin-3_3_1-release
Cygwin 3.3 only: Replace SRWLOCK usage for malloc synchronization with the first incarnation of the patch splitting malloc_init into two parts. The SRWLOCK usage requires TryAcquireSRWLockExclusive, which isn't available on Vista / Server 2008, unfortunately. Per https://cygwin.com/pipermail/cygwin-developers/2021-October/012429.html, we may encounter a crash when starting multiple threads during process startup (here: fhandler_fifo::fixup_after_{fork,exec}) which in turn allocate memory via malloc. The problem is concurrent usage of malloc before the malloc muto has been initialized. To fix this issue, split malloc_init into malloc_init_0, called from dll_crt0_0, and malloc_init_1, called from dll_crt_0_1. malloc_init_0 just initializes the muto, malloc_init_1 checks for user space provided malloc. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/release/3.3.1')
-rw-r--r--winsup/cygwin/release/3.3.16
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/release/3.3.1 b/winsup/cygwin/release/3.3.1
new file mode 100644
index 000000000..8af5f9139
--- /dev/null
+++ b/winsup/cygwin/release/3.3.1
@@ -0,0 +1,6 @@
+Bug Fixes
+---------
+
+- Fix a fix in 3.3.0 which broke Vista / Server 2008 by using a Windows
+ function introduced with Windows 7 only, namely TryAcquireSRWLockExclusive.
+ Addresses: https://cygwin.com/pipermail/cygwin/2021-October/249732.html