delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/01/03:52:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F08053947C00
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=dinwoodie.org; s=google;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=j1m+F/O94B79q0KS7DVqo1ZxqxV8NaZDnNmPBho0zFA=;
b=MlTCOUbkyDOQlPN9RJydx2RmcCXGeEmUZV3mZkJam9J1w2NaiBGRxxjTztfcMMIt8f
eN5M5P+QlcZNZuPmPzFS8l1RsFv2yIebg/0jpPrXx/05TvUx64xN+CfmLcZE3q3AhoIr
xbw5yYfn/rnl5yUi0T+etSCEKne2dGNNpj5OE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=j1m+F/O94B79q0KS7DVqo1ZxqxV8NaZDnNmPBho0zFA=;
b=kCAZocvjXNBWLuyLtU6UNDwUPVQd+rNzUyjztC5tmPXgppqCZgMPs9fJpFUOCObPSl
xr/pMUQe5H3mMBn0OmXMbljuXLvJXlozfQeOVMBye5iy4aonUGOHrquzlZL+x39CDrwH
wasljvFl/W8dk4HR02En/eA5zZUyYbirfUqJrszLY14DEkZ3wB8Heij3lo6FkfHl9tfJ
r+lYM/1vxU1pr0N44w4du3IUajvvPtH48FoFq61emC2H4nTqxsb1U2CpG9wg3O/wyTNf
gCfxh6ZQdTuk1g2U5Ygtw34iGCzx94luV5tgMJIiNAMyANJ10r97zkDtBiKr1mMKksUX
ft2Q==
X-Gm-Message-State: AOAM530rUcNk1UYq3yUwBhlW9o9xNvVhitD+Lu9/EvlWo13rbWHtOyZr
UySGg21wm96eq2kmXd+QsjuK/4KTAW9Iq4d4faskL+dY3xePWA==
X-Google-Smtp-Source: ABdhPJxq/l0o+WX+ShjhPsTAK0UMSghq+nS7o87BtcctDBxYpXFw985cjX85aX6qkEn70ekTs8oPNfLbj/k9a6/MUJk=
X-Received: by 2002:a37:6254:: with SMTP id w81mr26361445qkb.72.1625125797598;
Thu, 01 Jul 2021 00:49:57 -0700 (PDT)
MIME-Version: 1.0
References: <8aadfa42-225f-9d8e-4335-e1e6912202f7 AT gmail DOT com>
In-Reply-To: <8aadfa42-225f-9d8e-4335-e1e6912202f7@gmail.com>
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
Date: Thu, 1 Jul 2021 08:49:20 +0100
Message-ID: <CA+kUOam_EVMjYTMwty7Pk_pO_A=pJNEV+fV6q3OorYkATwMrpQ@mail.gmail.com>
Subject: Re: login shell binary outside of /bin
To: "Cygwin (cygwin AT cygwin DOT com)" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=ham 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
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>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Thu, 1 Jul 2021 at 08:30, Basin Ilya via Cygwin <cygwin AT cygwin DOT com> wrote:
> Hi
> I compiled bash 5.1 and installed it to /usr/local
>
> If I try to use it as a login shell it fails to launch programs while sourcing /etc/profile. If I copy the binary to /bin it works. If after successful login I launch `/usr/local/bin/bash5 -login` again it works. If I copy the official bash4 to /usr/local/bin and try to do the initial login it fails just like bash5.
>
> Bad:
>
>     C:\cygwin\bin>C:\cygwin\usr\local\bin\bash5 -login
>           0 [main] bash5 674 dofork: child -1 - forked process 20540 died unexpectedly, retry 0, exit code 0xC0000135, errno 11
>     bash5: fork: retry: Resource temporarily unavailable
> <snip>

Hello! First of all, have you tried working through the section on
fork problems in the FAQ below? That is normally the way to sort these
issues.

> FAQ:                  https://cygwin.com/faq/

If you've gone through all those steps, it would be useful to know
exactly how you compiled Bash, including where you got the source code
and what commands and tools you used to do the compilation, as well as
the cygcheck output specified in the Problem reports documentation as
below:

> Problem reports:      https://cygwin.com/problems.html

-- 
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