X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDECC3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1673905414; bh=7p29gAKTNFy/d6h2q2GReB4EPtIIyAHmfNvifn11Rio=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=aPkh+5fh8X1r62pqMdeOxUyCTnJoBUwCdnHCOWHHQCWwXGA4VCSraIcXQ8HpmHqXe 8WuUEWOe0MQJXELWcu9LHcc8IaGdejFZuWkmpDyoMaOvyQCGQo6++7q+A6nM7rs2PB s4UmaWPMZ+bZviJrj8YfywCZaTKqTOm+gkOe+7ho= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Mon, 16 Jan 2023 22:42:54 +0100 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/... Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <4a4427cc-422b-1d14-015e-26523e620d9b AT Shaw DOT ca> <20230102113201 DOT 476c10bef7a5643bddc00762 AT nifty DOT ne DOT jp> <20230102143803 DOT 53f89d07a545a1bdd596e1e8 AT nifty DOT ne DOT jp> <20230102172147 DOT 83789d400bb0400cb8c8ca74 AT nifty DOT ne DOT jp> <20230116180213 DOT 0e03a896f512d784933f54da AT nifty DOT ne DOT jp> <20230116234532 DOT f567e64fe7bf9a0a13704af9 AT nifty DOT ne DOT jp> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:sO+Y8S9r+kXIhMaFKLz1iYbaxNRYKivoqj4+wxi6RmdBQskiotS Zr6P/kKP+YrG+2TjGHEojommA9eHb1kadwaLjWfNSbbpAtFNLL9FWNzrkfgul9VndreNO9q /rqCiWX55O84oYrN7GdejT5XsPPUU8K3V+KIizpPNtydXWSKYh0fq3Qou/7yf+Ja9xAqjlD o2HUmShNi0SOxfrSNlMjg== UI-OutboundReport: notjunk:1;M01:P0:mpHO9JFXGkY=;ySDcK9P85yzV5hLJGWWZGxV/hct qtsTYSDAGO3hbO8CKf2k0NiIA+7e70i97Hc+FTtP2JR1pHgvf8OOGRM58l8efhXDaRYDkJkJh ddS3ushUp6wGe37GqAPRIOCTpV9WTs1+5hGHk8jkbJF+kKMBB8+n45Bpq4TM4LS/YHS/fHZor D/Mj8ig+rewjqON64RGoqS+MXpv2zdPfy/K5G2KAeV3nRr2dLx1uBes55FzMiOk1rC8dFRCxr hyRwiaFNKqH1TQEcN8B1Unw/XFurZYq9B2b89Jg3VqOrQC5bJNB1Ua5qhmDLsGwqfu9DxJSKd wxCyL0Q9eRxLnJ2+wYbFjiquaxvhrP3YJXnjTPX94JN7qP85IkQHLitK3LDTwiRS5ZLuhFYk6 4PsPKGsTRzgdgSwCHFmhAMw3BoOFScTKZV5pIIC6m4ehq8eU/e2RCTBY/FYAZRA9+mDTZP1R+ I/prE9lw5f+H9o0zt1nOIuzKb2Z/sMP1Duay9FZjNe3VtNYPSQJ7gfGIoxAhzMMwau5BPRh+o QOXJsQiVLmKtWTAfGPY7LmTQC3NJH91A1uxRsGRyQSvCoDLnhGBAVIuM55wkoPWK89SP/mFbq rz7SQ1gCnVKvogrC2+eVn/iPRn9r6qTi5FsVYjgahczFNR57rtrIYtukMP7LnoajAuh4ZSYBK VVi3q4G5hOK6klEB9OF6YfppL3A5BdqE+ApkjpgZgg== X-Spam-Status: No, score=-102.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple