public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Fork errors
@ 2023-09-06 18:51 Dale Lobb
  2023-09-06 21:00 ` Jose Isaias Cabrera
  2023-09-06 23:32 ` Mark Geisert
  0 siblings, 2 replies; 10+ messages in thread
From: Dale Lobb @ 2023-09-06 18:51 UTC (permalink / raw)
  To: tryandbuy via Cygwin

  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?

Best Regards,

Dale



________________________________

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-09  7:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06 18:51 Fork errors Dale Lobb
2023-09-06 21:00 ` Jose Isaias Cabrera
2023-09-06 21:03   ` Jose Isaias Cabrera
2023-09-08 21:35     ` EXTERNAL SENDER: " Dale Lobb
2023-09-08 21:30   ` Dale Lobb
2023-09-06 23:32 ` Mark Geisert
2023-09-07 15:20   ` Bill Stewart
2023-09-08  5:02     ` Mark Geisert
2023-09-08 22:02   ` EXTERNAL SENDER: " Dale Lobb
2023-09-09  7:26     ` Mark Geisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).