mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-15 21:49:22 +08:00
To avoid race issues, pthread::once() uses pthread_mutex. This caused the handle leak which was fixed by the commit 2c5433e5da82. However, this fix introduced another race issue, i.e., the mutex may be used after it is destroyed. This patch fixes the issue. Special thanks to Bruno Haible for discussing how to fix this. Addresses: https://cygwin.com/pipermail/cygwin/2024-May/255987.html Reported-by: Bruno Haible <bruno@clisp.org> Fixes: 2c5433e5da82 ("Cygwin: pthread: Fix handle leak in pthread_once.") Reviewed-by: Ken Brown <kbrown@cornell.edu> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
15 lines
589 B
Groff
15 lines
589 B
Groff
Fixes:
|
|
------
|
|
|
|
- Fix regression in 3.5.3 which fails to open files for stat(2) if the
|
|
file is opened exclusively by another process.
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2024-April/255811.html
|
|
|
|
- Fix regression introduced in 3.5.0 when reading surrogate pairs (i.e.,
|
|
unicode chars >= 0x10000) from the DOS command line. Addresses:
|
|
https://cygwin.com/pipermail/cygwin/2024-April/255807.html
|
|
|
|
- Fix regression of pthread::once() introduced in 3.5.0 (i.e., the race
|
|
issue regarding destroying mutex).
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2024-May/255987.html
|