Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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 stackoverflow.com Jan 3 '13 at 13:20

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

add comment

1 Answer 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

share|improve this answer
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
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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