From: jeffoh AT zadall DOT com (Jeff Oh) Subject: bash: forkee heap_init errors 23 Apr 1997 03:59:35 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <9704221621.aa17482.cygnus.gnu-win32@zadallv.zadall.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Original-To: gnu-win32 AT cygnus DOT com X-Mailer: ELM [version 2.4 PL24 ME8b] Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi folks! I've just started playing with the bash shell, but can't seem to get beyond first base. As I couldn't see a description of this problem in the mailing list archives or faq, I'm stumped. I'm running NT 4.0 service pack 2 and my bash shells are randomly core dumping every 5-100 commands or so. When I try to configure bash so I could run it through the debugger, I get the following output (repeated twice) : ----- c:\cygnus\H-i386-cygwin32\bin\sh.exe 1022) forkee heap_init: unable to allocate heap, win32 error 487 cygwin: terminating fork_helper: child died before initialization with win32 error 1 ----- When I look in my trusty win32 documents, error 487 is returned when an invalid handle is passed to the WNetGetLastError() function! Error 1 is ERROR_INCORRECT_FUNCTION. There *is* plenty of free memory in the system. I've read warnings about malloc() in the faq, but since I can't compile the version of bash that's dying, it can't be my malloc() function that's the problem. Both sh.exe and bash.exe are in my path, and that path has been mounted with mount. Any information that you can provide would be greatly appreciated. I will summarize, if necessary. Thanks, Jeff 8-) -- Jeff Oh, Zadall Systems Group. jeffoh AT zadall DOT com 8-) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".