Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jan 16 21:42:54 GMT 2023
Hi Takashi,
On Jan 16 16:18, Corinna Vinschen via Cygwin wrote:
> Actually, I' running your testcase on two machines in parallel now for
> quite some time, which only one hunk of 60675f1a7eb2 reverted, i.e.
>
> diff --git a/winsup/cygwin/mm/shared.cc b/winsup/cygwin/mm/shared.cc
> index 893b20d289b4..6d6d2940b6d4 100644
> --- a/winsup/cygwin/mm/shared.cc
> +++ b/winsup/cygwin/mm/shared.cc
> @@ -140,7 +140,11 @@ open_shared (const WCHAR *name, int n, HANDLE& shared_h, DWORD size,
> if (*m == SH_JUSTCREATE || *m == SH_JUSTOPEN)
> addr = NULL;
> else
> - addr = (void *) region_address[*m];
> + {
> + addr = (void *) region_address[*m];
> + VirtualFree (addr, 0, MEM_RELEASE);
> + }
> +
>
> WCHAR map_buf[MAX_PATH];
> WCHAR *mapname = NULL;
>
> So far (and knocking on wood madly while writing this) the mapping
> problem didn't show up once. Maybe you'd like to try the same?
Never mind, I encountered another error. After a bit more debugging
I think I understand the problem now, and I'm just in the process of
reworking open_shared. This may take a day or two. Stay tuned.
Corinna
More information about the Cygwin
mailing list