[MinGW-Notify] [mingw] #38356: MSYS make fails to compile project(couldn't commit memory for cygwin heap)

Back to archive index
MinGW Notification List mingw****@lists*****
Tue Dec 24 03:13:37 JST 2019

#38356: MSYS make fails to compile project(couldn't commit memory for cygwin heap)

  Open Date: 2018-06-26 05:13
Last Update: 2019-12-23 15:13

URL for this Ticket:
RSS feed for this Ticket:


Last Changes/Comment on this Ticket:
2019-12-23 15:13 Updated by: cstrauss


Thank you for your feedback.

This error "couldn't commit memory for cygwin heap" usually happens when the
emulated "fork" system call can't recreate the exact memory layout for a child

Besides rebasing the msys-1.0.dll and running rebaseall, I can only suggest
removing any anti-virus software, since they are known to inject code into
running DLLs, causing interference with the MSYS fork mechanism.

The original implementation of "fork" in MSYS comes from the Cygwin project.
Meanwhile, Cygwin has evolved and is likely to have fewer problems regarding
this error. I would be interested to know if MSYS2 (msys2.org), which closely
tracks modern Cygwin, solves your issues. Note that MSYS2, like Cygwin, doesn't
run in Windows 95 and XP.



Ticket Status:

      Reporter: kmilev
         Owner: cstrauss
          Type: Issues
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: (None)
     Component: MSYS
      Severity: 5 - Medium
    Resolution: None

Ticket details:

Hello, When i try to compile a project(big one) make always fails at some point
with the following error:

C:\MinGW\msys\1.0\bin\make.exe: *** couldn't commit memory for cygwin heap,
Win32 error 0

after starting a build again it continues and finishes the build. However in
some situations i can not "work around" this.

This is the version of MSYS: C:\windows\system32>uname -a MINGW32_NT-6.1
BGHCZC5281GJ4 1.0.19(0.48/3/2) 2016-07-13 17:45 i686 Msys

Version of MINGW: MINGW32_VERSION 5000002L

I have tried several suggestions to correct the issue: 1.tried rebasing the
msys-1.0.dll 2.tried rebaseall from rebase package 3.tried reinstalling mingw
4.tried setting max heap(peflags --cygwin-heap=2048 make.exe) from rebase
package. 5.increased the vritual paging file to 20gb. 6.checked in PATH
variable that only one MINGW path is listed. 7.upgraded mingw to latest

None of these made any difference.

Please help.

Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
RSS feed for this Ticket:

More information about the MinGW-Notify mailing list
Back to archive index