1

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 replay.py --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
00
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?

1

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

  • I realize I did not post the question clear enough. I am using the bash executable from Git for Windows msysgit.github.com 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
0

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.

-1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.