Re: [PATCH] cygthread: suspend thread before terminating.

2024-11-13 Thread Jeremy Drake via Cygwin-patches
On Tue, 12 Nov 2024, Jeremy Drake via Cygwin-patches wrote: > diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc > index 81b6c31695..360bdac232 100644 > --- a/winsup/cygwin/sigproc.cc > +++ b/winsup/cygwin/sigproc.cc > @@ -410,7 +410,8 @@ proc_terminate () > if (!have_execed

Re: [PATCH] cygthread: suspend thread before terminating.

2024-11-13 Thread Jeremy Drake via Cygwin-patches
On Wed, 13 Nov 2024, Johannes Schindelin wrote: > Hi Jeremy, > > Excellent work! Thank you for your impressive tenacity to stick with this > problem. I built an MSYS2 runtime with the fix in > https://github.com/git-for-windows/msys2-runtime/pull/73, and then started > your reproducer from > https

Re: [PATCH] cygthread: suspend thread before terminating.

2024-11-13 Thread Johannes Schindelin
Hi Jeremy, On Tue, 12 Nov 2024, Jeremy Drake via Cygwin-patches wrote: > From: Jeremy Drake > > This addresses an extremely difficult to debug deadlock when running > under emulation on ARM64. > > A relatively easy way to trigger this bug is to call `fork()`, then within the > child process imme