delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/09/06/19:33:08

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EE8E3858416
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1694043187;
bh=cP10ZgWotjgBsa0L3LTFKORhb/HgLLTG94iGvItpitE=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=qsCfNUeg57L1reS+5ASB0n98VPmEGQ87eJ77mub20/PKpOVNnsFPAtpMfTSBtFVE8
tgCUUOEdjX7D+tB0Z5T9csQqjrDMbAeq16UNuJCILSHiK6x17P2kgHQ12o5sGowSaa
wX2GkrcKDDBnIC5GMrU5dQBqK7CJf9PnXdvqrejI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BB6A3858C78
Subject: Re: Fork errors
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <PH0PR16MB4782C822B9F50716EE354B1EF5EFA AT PH0PR16MB4782 DOT namprd16 DOT prod DOT outlook DOT com>
Message-ID: <de040460-1359-402f-9b30-b15046f80730@maxrnd.com>
Date: Wed, 6 Sep 2023 16:32:20 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <PH0PR16MB4782C822B9F50716EE354B1EF5EFA@PH0PR16MB4782.namprd16.prod.outlook.com>
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE,
TXREP 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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Dale Lobb via Cygwin wrote:
>    Since upgrading to the latest version of Cygwin a few weeks ago on a server I manage, I've been experiencing an issue with fork errors.  The Cygwin installation had not been updated for almost a year before that.
> 
>    The issue happens every time a script is invoked that purges files from some temporary directories, but never in the same place in the script.  The script uses multiple calls to find -exec to remove files over 10 days old from the directories.  Here is a typical error.  Sometime the issue will assert after just a  few tens of files deleted, sometimes after hundreds or thousands of files have been deleted:
> 
>      removed '/cygdrive/d/.../obfuscated.datedata.txt'
>            1 [main] find 20066 dofork: child -1 - forked process 4068 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
>            find: cannot fork: Resource temporarily unavailable
> 
>    It also happens randomly at other times.  I've seen the bash shell itself fail on the invocation of a mintty.  I've seen it happen on all sorts of interactive commands entered from bash.
> 
>    Today, as a test, I updated all the installed Cygwin components.  One of the post installation scripts failed, so I re-exec'd it:
> 
>      $ ./postinstall/0p_update-info-dir.dash
>      Rebuilding info directory
>          2 [main] dash 2059 dofork: child -1 - forked process 7676 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
>          ./postinstall/0p_update-info-dir.dash: 22: Cannot fork
> 
>    A second re-exec then worked fine.
> 
>    I've tried reinstalling all the components, and I've tried rebaseall.
> 
>    Is there anything else I can try, or troubleshooting steps to take?

Try the FAQ, specifically
https://cygwin.com/faq.html#faq.using.fixing-fork-failures

Pay attention to the subtleties of running rebaseall, e.g. make sure no Cygwin 
processes (background server processes or whatnot) are running.  When the FAQ gets 
to talking about running setup.exe for this situation, it means close any open 
Cygwin shell windows and manually run the Cygwin Setup program, just taking its 
defaults all the way through; you needn't install anything it suggests at this 
time.  The object is to get to Setup's end where it runs a full rebase.

Speculation: The specific exit code 0xC0000142 may or may not have something to do 
with Windows error 142, which is ERROR_BUSY_DRIVE.  I cannot help further on this.

..mark

> ________________________________
> 
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

P.S. You've sent your post to a public mailing list so the above notice does not 
apply.  Obfuscate your system particulars if that's a problem.

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