From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id F08053947C00 for ; Thu, 1 Jul 2021 07:49:58 +0000 (GMT) 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 Received: by mail-qk1-x729.google.com with SMTP id 19so5140903qky.13 for ; Thu, 01 Jul 2021 00:49:58 -0700 (PDT) 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@gmail.com> In-Reply-To: <8aadfa42-225f-9d8e-4335-e1e6912202f7@gmail.com> From: Adam Dinwoodie Date: Thu, 1 Jul 2021 08:49:20 +0100 Message-ID: Subject: Re: login shell binary outside of /bin To: "Cygwin (cygwin@cygwin.com)" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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@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: Thu, 01 Jul 2021 07:50:01 -0000 On Thu, 1 Jul 2021 at 08:30, Basin Ilya via Cygwin wrot= e: > 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 sou= rcing /etc/profile. If I copy the binary to /bin it works. If after success= ful 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 fai= ls 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 > 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