public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: Stefan Smorra <stefan@smorra-it.de>,
	The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Cygwin installer does not terminate
Date: Sun, 5 Dec 2021 15:43:52 +0000	[thread overview]
Message-ID: <03f587f3-35a1-5d34-c34e-f14be4446cea@dronecode.org.uk> (raw)
In-Reply-To: <efacc365-2a3c-3bdb-6f20-d45fdc453af3@smorra-it.de>

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?

  reply	other threads:[~2021-12-05 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30  9:09 Stefan Smorra
2021-12-05 15:43 ` Jon Turney [this message]
2021-12-08  9:31   ` Stefan Smorra
2021-12-08 19:55     ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03f587f3-35a1-5d34-c34e-f14be4446cea@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=stefan@smorra-it.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).