[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
msys2: Resource temporarily unavailable
From: |
thutt |
Subject: |
msys2: Resource temporarily unavailable |
Date: |
Sat, 30 Apr 2016 07:36:00 -0700 |
address@hidden writes:
>
> Hello everyone,
>
> We are using Gnu Make 4.1 from a somewhat recent installation of
> msys2 as part of a very large build system.
>
> We are periodically seeing:
>
> make: fork: Resource temporarily unavailable
>
> We don't know the specific conditions to reproduce the mesasge,
> yet.
>
> This message appears to be produced by the msys2 runtime library.
> It corresponds to EAGAIN.
>
> Because I haven't figured out how to get the sources for Make into
> my local msys2 installation, I've been looking at the Make 4.1
> sources on Linux. I can't find a reference to fork, and the code is
> so heavily conditionalize it's really hard to read and figure out
> what is supposed to happen if 'fork' failed.
>
> So, I came here to ask:
>
> On cygwin/msys, if this message is seen on the console, what
> should I expect to happen?
>
>
> Does make try again?
> Does make immediately exit with a return code of 2?
> Something else?
As I said previously, the basic asnwers to how make behaves were
determined with some LD_PRELOAD work. This information allowed
further progress.
The root cause of the problem is msys2.
There are a couple memory overrun / corruption issues that occur when
it translates Windows-style pathnames to POSIX-style. The
translation occurs on command line arguments and environment
variables. We have a patch that addresses the issue; working to get
permission to upstream it.
It can manifest itself as 'Bad address' when launching Make (most
frequent), or as 'Resource temporarily unavailable' if Make was
launched. It's fairly rare (1-3 occurrences in 1000-4000 daily build
process runs).
--
The sixth Sheik's sixth sick sheep died of hoof and mouth disease.
- Re: msys2: Resource temporarily unavailable, (continued)
- Re: msys2: Resource temporarily unavailable, Brian Vandenberg, 2016/04/27
- Re: msys2: Resource temporarily unavailable, Bob Proulx, 2016/04/27
- Re: msys2: Resource temporarily unavailable, David Boyce, 2016/04/28
- Re: msys2: Resource temporarily unavailable, Paul Smith, 2016/04/28
- Re: msys2: Resource temporarily unavailable, thutt, 2016/04/28
- Re: msys2: Resource temporarily unavailable, Bob Proulx, 2016/04/28
- Re: msys2: Resource temporarily unavailable, Eli Zaretskii, 2016/04/29
- Re: msys2: Resource temporarily unavailable, Bob Proulx, 2016/04/29
- Re: msys2: Resource temporarily unavailable, Eli Zaretskii, 2016/04/29
- Re: msys2: Resource temporarily unavailable, Bob Proulx, 2016/04/29
msys2: Resource temporarily unavailable,
thutt <=