Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a bash shell on Windows XP that is shipped with Git for Windows. The command window's title shows MINGW32, and the error message contains Cygwin. This is the command that I run and the resulting error message

$ python --record C/Windows/Temp/archive-2013-01-03.wpr
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x1190000, BaseAddress 0x1350000, RegionSize 0x240000, State 0x20
c:\Python27\python.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6

Memory use is not the issue here, as show in this screenshot

Memory usage is low on Windows XP

Is there any way to tweak cygwin or cmd.exe on Windows XP to solve the problem?

share|improve this question

migrated from Jan 3 '13 at 13:20

This question came from our site for professional and enthusiast programmers.

Two thoughts:

  1. First rule of Cygwin Club: when you get weird errors, rebase before anything else. (I hate black-magic rules like that, but this one works too often to ignore).

  2. If that does nothing (equally likely), and you really believe it is heap-related, you can mess with the heap using the peflags utility

share|improve this answer
I realize I did not post the question clear enough. I am using the bash executable from Git for Windows Suspect sh.exe (bash) is compiled using cygwin since the error message says so, although the command window's title shows MINGW32. Searched the whole hard disk, there is not any cygwin executable. – hanxue Jan 3 '13 at 10:22
Open up Process Explorer, hit Ctrl-F and enter cygwin. Something's linked against it, as you note. – ckhan Jan 3 '13 at 10:30

I had this problem on Windows 7 after installing "Comodo Firewall". I uninstalled the firewall and the problem is gone. Seems like except the firewall functionality the Comodo suite adds some other guarding features that conflict with cygwin.

share|improve this answer

I had this problem with AVG Antivirus Free enabled. I disabled's AVG protection, and now MinGW works fine.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .