delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/13/13:03:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF3483857C7E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1707847409;
bh=qBjyaArGDqi9mFHh1aPPsyIQwMHOlTqsUm76BziZ6DA=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=G2bHoRQoai3gCKnGH03lHIrzV7MOMr+uM86YbSOMwhWm8oHZ+E9vD9YCN64aGN1DT
mg5E0Ix2oqzq+KYFBXp2oXVksagYloUuIxgXZ+AeYXn+jZINaoEm+imvKgypmaLveK
N0NkPQCdTWHZOMWgqVzluX0Ro2X/78XQhQGiEuMA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F3F43858000
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F3F43858000
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707847356; cv=none;
b=I0kMguSyk6ncPv4ZpTQ1lTrlzqAeeVF21HXnf2COAFqXLMaxpuugxYoMClrZ6w3si0/iXkhwd0H0NBliShw2Pvx5cxNCbzHYopf7nV4WKJL1Ia0bha51MUPAq7xr65aPWHxTyTaml8c/DRr/4QUslNtuZ79ROgKq5VQ87ywWc+0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1707847356; c=relaxed/simple;
bh=iWrgbBiFlqPcE+ybW/92UFI6FXgXpyr0iUkO9fconV8=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=RDLcsgaTpha7lv7LSjP9SbNvtBPtv1KBIjCpE+iKP2r8kGchJBeKTunAsalbIUZCDqdxfhKoypEPhUpCu1M/AkIHSkGnmsKUgooCW7XyNXf4EkHzz8qr/km7dNX4rg1my12zE8khizXTAS2uwUGYBT5B4ovvST0IvSse3Kv77Gg=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1707847353; x=1708452153;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=0kvpIIpDZ+yOLKJEksP2NsjQvRGqXszzwn3xp8u9iPY=;
b=c1te0eHOeUUQtu2x+cyrzWJZtsHfRHuuNsENY2NlNkFCLMozQ8yM1FI3XkVhmMYbNw
p/QmzTjShpfDVjp6D5OCeyWfEbAZi++Sh8VjxjX5K8jo4KrdDxzEJC/YCQHg4CcWT6Wd
AlGGPOJ86pTqTNIHrTpMteYyQOvFfIjtUNkTJ+O83M9dvxCBDq1tFoU4DFJtQpzhCM1n
altwTZ8gcBOGSSBuFmswTnNfrfOSABDXklUiasn5QMZlDYPA58H2PLzYHxdofZFiM0m1
Di2aSCeEztA8aUHDtVsi8om/ViQPuapo6YC/ye7Lz5Z1j11AMjpDWKIIUlZCGUfLaiUB
9PQg==
X-Gm-Message-State: AOJu0YywdC96JFDw7Je/U34rrY/zVdDovx8KELnjTMq3UbsYH6X3WkFU
lxm10RGa9gr7VRowfQUx4xfJIXSAeWLFwF+tFN5+e1KvKNKI8fkzT3H3+mpqFA+la/cxNs6yHXg
gNpXCChRsO0XWn6134yf/FYxRBlWquxjz
X-Google-Smtp-Source: AGHT+IGKniIaCG/GRVNoS6qeWwv4G+r+b0K662RiyGt3s7x2J0z3E/iFZE1gfccWGL5AT1ZD2LPUp1rA6nTpS5GT/KE=
X-Received: by 2002:a81:8a45:0:b0:604:bb5:f0ab with SMTP id
a66-20020a818a45000000b006040bb5f0abmr117539ywg.30.1707847348716; Tue, 13 Feb
2024 10:02:28 -0800 (PST)
MIME-Version: 1.0
References: <CAJXgQP0ZpcQXON_oKbgE=S8Y-M=9+b00cZ6s4Het01TCTp3ajA AT mail DOT gmail DOT com>
<Zcs_54Sakt48iAUd AT calimero DOT vinschen DOT de>
<ZcuYBL3D2rSjlhNu AT calimero DOT vinschen DOT de>
In-Reply-To: <ZcuYBL3D2rSjlhNu@calimero.vinschen.de>
Date: Tue, 13 Feb 2024 10:01:52 -0800
Message-ID: <CAJXgQP3YzDiomDUvOG30JfSAbe5d3EgLDRvbsT8yN73aAswPLA@mail.gmail.com>
Subject: Re: Cygwin installer hangs when running post-install scripts
To: cygwin AT cygwin DOT com, Kevin Ushey <kevinushey AT gmail DOT com>
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE 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.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Kevin Ushey via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Kevin Ushey <kevinushey AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 41DI3VYV011078

Hi Corinna,

Thank you for taking a look so quickly -- I can confirm your patch
fixes things for me; the installer now runs to completion and the
Cygwin64 Terminal + other installed tools all function correctly.

Best,
Kevin

On Tue, Feb 13, 2024 at 8:25 AM Corinna Vinschen
<corinna-cygwin AT cygwin DOT com> wrote:
>
> On Feb 13 11:09, Corinna Vinschen via Cygwin wrote:
> > On Feb 12 14:38, Kevin Ushey via Cygwin wrote:
> > > For reference, I first bumped into this when using Git Bash as bundled
> > > with Git for Windows, but it sounds like the underlying issue may be
> > > in Cygwin. See https://github.com/git-for-windows/git/issues/4808 for
> > > more details.
> >
> > There is, however, the stacktrace from your above issue report on
> > github, which makes more sense, and, incidentally, occurs in code
> > following cygwin_split_path in the .text segment:
> >
> > (gdb) bt
> > #0  0x00000002101eeaf3 in memmem () from [...]
> > #1  0x0000000210095d91 in cwdstuff::override_win32_cwd(bool, unsigned int) ()
> >    from [...]
> > #2  0x000000021009642e in cwdstuff::set(path_conv*, char const*) () from [...]
> > #3  0x0000000210047025 in dll_crt0_1(void*) () from [...]
> > #4  [...]
> >
> > This points to something going wrong during startup, while trying
> > to evaluate the global pointer to the hidden ntdll.dll struct we
> > called, for want of an official expression, FAST_CWD structure.
> >
> > If we can rely on frame 1, a call to memmem crashes, that would
> > mean the crash occurs in find_fast_cwd_pointer().
> >
> > > Does any of this sound familiar? Is there anything else I can do to
> > > get more information here; e.g. are there builds of Cygwin with debug
> > > symbols published somewhere, or should I try producing my own debug
> > > build?
> >
> > Well, you could have mentioned that this is on AArch64.  Fortunately
> > you did in the github case, but next time, please tell us here, too.
> >
> > I assume you can't run any Cygwin binary, even from outside the
> > installer?
> >
> > Other than that, the only thing you really could do at this point is to
> > check Cygwin's find_fast_cwd_pointer() function and go through this
> > function step by step, diving into the assembler code this function
> > inspects trying to find out which of the memmem calls fails and how to
> > fix it.  And send a patch eventually.
> >
> > However, there isn't much point there as long as this is an insider
> > build.  In the past, the code often changed and was uncritical in the
> > next official release.
> >
> > One thing we can do is to skip the find_fast_cwd_pointer() code entirely
> > when running on AArch64, but it's a bit annoying, given this wasn't
> > necessary in previous AArch64 builds.
>
> I've just pushed a (temporary?) patch to do just that.  This will be
> in the test build cygwin-3.6.0-0.37.g4e77fa9b8bf4 which will be
> installable via Cygwin's installer in an hour or two.
>
> Please try if this works for you and report back.  You can use this
> DLL as workaround for the time being then.
>
>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019