Web lists-archives.com

Re: fork() fails if it is called recursively from a child thread.




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