From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-042.btinternet.com (mailomta22-re.btinternet.com [213.120.69.115]) by sourceware.org (Postfix) with ESMTPS id 7F00C3858D28 for ; Sun, 5 Dec 2021 15:44:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F00C3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from re-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.54.4]) by re-prd-fep-042.btinternet.com with ESMTP id <20211205154423.SBIN12369.re-prd-fep-042.btinternet.com@re-prd-rgout-001.btmx-prd.synchronoss.net>; Sun, 5 Dec 2021 15:44:23 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 613A8CC30C3135C7 X-Originating-IP: [81.129.146.209] X-OWM-Source-IP: 81.129.146.209 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvuddrjedugdejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepheduueevueejueejgeeufeehtddtkeevtdduieelfeetteeffeejjedukeefgffgnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduvdelrddugeeirddvtdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdefngdpihhnvghtpeekuddruddvledrudegiedrvddtledpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehsthgvfhgrnhesshhmohhrrhgrqdhithdruggv X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.103] (81.129.146.209) by re-prd-rgout-001.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 613A8CC30C3135C7; Sun, 5 Dec 2021 15:44:23 +0000 Message-ID: <03f587f3-35a1-5d34-c34e-f14be4446cea@dronecode.org.uk> Date: Sun, 5 Dec 2021 15:43:52 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Cygwin installer does not terminate Content-Language: en-GB To: Stefan Smorra , The Cygwin Mailing List References: From: Jon Turney In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1191.5 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_EXEURI, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Sun, 05 Dec 2021 15:44:26 -0000 On 30/11/2021 09:09, Stefan Smorra wrote: > Hello, > > I am running the x86 installer under 64bit Windows 10 (as administrator) > as follows: > [...] > > The problem is that the installer does not terminate. It stays open in > the background (hidden) what can be seen in the task manager. > > Also it's consuming 90% CPU and the generated log file under > C:\smo-cygwin\var\log\setup.log is about 12GiB after 5min. > > The log file looks like this: > > ... > 2021/11/29 13:21:38 Changing gid back to original > ... > 2021/11/29 13:22:05 running: C:\smo-cygwin\bin\dash.exe > "/etc/postinstall/zp_man-db-update-index.dash" > 2021/11/29 13:22:05 Changing gid to AdministratorsEnding cygwin install > ... > > The line "Changing gid to AdministratorsEnding cygwin install" then > appears millions of times. It never ends and there are no other log > lines coming. > > Note that this only happens if I run the installer as administrator. > > There seems to be problem when the installer changes gid. This can be > seen in the log. The fact that it only happens if the installer is run > as administrator approves this. Thanks for reporting this problem. After some staring at the code, I think the problem is perhaps that the linked list of log entries can get corrupted if multiple threads add messages to it simultaneously. I built an updated setup with a change to avoid that in this case: https://cygwin.com/setup/setup-2.910-3-g217aad.x86_64.exe https://cygwin.com/setup/setup-2.910-3-g217aad.x86.exe Perhaps you could try that and see if it improves things for you?