This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C:\cygwin\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487


I recently got a new laptop (Thinkpad T60p Centrino Duo), and of course
I installed the current cygwin.  But I frequently get this error:

   2405 [main] ? (66944) C:\cygwin\bin\sh.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x5D0000, top 0x5E0000,
reserve_size 61440, allocsize 65536, page_const 4096
    119 [main] sh 5420 child_copy: stack write copy failed,
0x22E980..0x230000, done 0, windows pid 2287796, Win32 error 5

And by frequently, I mean continuously:  every second command or so, and
frequently in the middle of scripts.  For example, let's try a few
attempts at a find command with -exec...:

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
     60 [main] ? (62464) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 68200 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
      7 [main] find 65840 fhandler_dev_zero::fixup_mmap_after_fork:
requested 0x480000 != 0x0 mem alloc base 0x480000, state 0x2000, size
1040384, Win32 error 487
    379 [main] find 65840 C:\cygwin\bin\find.exe: *** fatal error -
recreate_mmaps_after_fork_failed
      7 [main] find 3560 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
      7 [main] ? (68484) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 464 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
      6 [main] find 67392 fhandler_dev_zero::fixup_mmap_after_fork:
requested 0x18480000 != 0x0 mem alloc base 0x18480000, state 0x2000,
size 1040384, Win32 error 487
    366 [main] find 67392 C:\cygwin\bin\find.exe: *** fatal error -
recreate_mmaps_after_fork_failed
     10 [main] find 67760 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
      7 [main] find 66464 fhandler_dev_zero::fixup_mmap_after_fork:
requested 0x480000 != 0x0 mem alloc base 0x480000, state 0x2000, size
1040384, Win32 error 487
    391 [main] find 66464 C:\cygwin\bin\find.exe: *** fatal error -
recreate_mmaps_after_fork_failed
     11 [main] find 66740 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
    185 [main] ? (66832) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 68896 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
     40 [main] ? (66200) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 65668 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
     73 [main] ? (69476) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 68128 child_copy: stack write copy failed,
0x22E7B0..0x230000, done 0, windows pid 2287332, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
      8 [main] ? (66232) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     10 [main] find 67400 child_copy: stack write copy failed,
0x22E600..0x230000, done 0, windows pid 2286900, Win32 error 5
find: cannot fork

mbartel@mbartel-t60p
/cygdrive/c/dev/halifax/sandbox/users/mbartel/gateway
$ find * -type f -exec grep foo {} /dev/null \;
    105 [main] ? (68772) C:\cygwin\bin\find.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x480000, top 0x490000,
reserve_size 61440, allocsize 65536, page_const 4096
     11 [main] find 66784 child_copy: stack write copy failed,
0x22E600..0x230000, done 0, windows pid 2286900, Win32 error 5
find: cannot fork

Tried it 10 times, no attempt was successful.  Hmm, interesting, there
are two types of the same failure here.

Now, I've searched the mailing lists and this seems to have come up
several times, but I haven't heard anything about a fix.  Help!

-Mark

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]