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

Takashi Yano
Thu Mar 9 17:33:00 GMT 2017

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.

Takashi Yano <>

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list