delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/09/14:49:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Bdj2gE3MIKpCAXBV
nCRpzw0AE1QIF4X2qNb0Tzv1D+CzsFEfBDZl9zKViWEsF9Qr0tgH1I565vn6BVCN
AYvnbcSOVlwFWMnWFR1UwYt2ErFFcy4hSFOjnR4i3MpY+7ULWGmW9VG8zDFabqGP
zdOvmpf+dOw577NyqjvWX0EGAxE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=SeImE/aJiq6pybTX5ACAMJ
3fUPk=; b=T6RkI2lr77fmLJmDZYgOcL9iN4SFHgt01mBeg7taI4UU+3OWr9Eb7Z
bMhHQ1YKA7qSpdaIhHA5DukQEejph/MyqyANOLLXbEug0HBhIx8Sh3+ORH7PMLhA
k1f0cmz2M1BPXxzdEWa+OYVDHdZSc0w3SQh8iMJERl2AzYmolkexg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:ip*192.168.0.6, H*MI:sk:2017031, H*i:sk:2017031, H*f:sk:2017031
X-HELO: mail-it0-f45.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ktWo1ff2sHwHKyuBlFbFXiSZWfkAizNg2bwtPRH9BDg=; b=I8saMIt/ChIhVh//cjvXTyyaVwmrVD1OnxLU8HAM+sMLYwYayzMoM3WkmpSCkUATIt IBatq1omkjtvKvVfM7H+ggUQNxw8i5PmZGa5XqsC9uhlAhAvYLUt2vVw1LzjKOhfNmbm bqp5KT9Aw8wPMLIP+mx8TOFALpLXh0R0b7JDR/QW7NrpZx798DYk4ZwrEDWiq4RkgKeE fkPlzdu9nKLCRKNlLvtiqov8xst93/KR6Wmf3wNXKrj8NzuAojrXOApSuLPNxkZhBy7T qRi/36D7MOefuFPWaRwhLzFpDW/E/pA8voEYd2I5rOPXUJYXxcR5/OiW+FqmhtyqJD2M 2E/Q==
X-Gm-Message-State: AMke39lsXVePRWt49M79r+2fy68qkfr5ftz/ETegam0jO7kr0hIFSnApNOWtqDcinFERZA==
X-Received: by 10.36.87.19 with SMTP id u19mr30945100ita.13.1489088913798; Thu, 09 Mar 2017 11:48:33 -0800 (PST)
Subject: Re: fork() fails if it is called recursively from a child thread.
To: cygwin AT cygwin DOT com
References: <20170309203959 DOT 1e7e32d20bf7ec06c705d3ba AT nifty DOT ne DOT jp> <87lgseidln DOT fsf AT Rainer DOT invalid> <20170310023328 DOT 23a53e24c4a4e03a21ca902f AT nifty DOT ne DOT jp>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <a64047ab-dbc2-3bc1-9c0d-78233a9706d7@gmail.com>
Date: Thu, 9 Mar 2017 14:48:55 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <20170310023328.23a53e24c4a4e03a21ca902f@nifty.ne.jp>
X-IsSubscribed: yes

On 3/9/2017 12:33 PM, Takashi Yano wrote:
> Thanks for your reply.
> 
> On Thu, 09 Mar 2017 18:06:44 +0100 Achim Gratz wrote:
> 
>> Takashi Yano writes:
>>>       0 [main] a 4668 fork: child -1 - forked process 8456 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
>>
>> Not sure if that helps, but that error says that some DLL could not be
>> initialized.
> 
> Error code: 0xC0000142 means as you mentioned.
> 
> Error code is 0xC0000142 under windows 10, while it is 0xC0000005
> under windows 7.
> 
> 0xC0000005 means access violation.
> 
> I'm not sure why the error code is different depend on OS version.
> 


Fails for me too.  The "Error code" is actually 11 or 0xB

ERROR_BAD_FORMAT
11 (0xB)
An attempt was made to load a program with an incorrect format.

The 0xC0000142 is an exit code.  Here is a developer blog on this exit code.

https://blogs.msdn.microsoft.com/winsdk/2015/06/03/what-is-up-with-the-application-failed-to-initialize-properly-0xc0000142-error/

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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