Mail Archives: cygwin/2011/05/27/02:24:43
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-0.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,TW_GJ,TW_YG,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <31714033.post@talk.nabble.com>
|
Date: | Thu, 26 May 2011 23:24:17 -0700 (PDT)
|
From: | Gaurav Chhabra <messagegc AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
Subject: | Error when Perl calling shell scipt using Cygwin >>> c:\cygwin\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487
|
MIME-Version: | 1.0
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
http://old.nabble.com/file/p31714033/cygcheck.out cygcheck.out=20
Hi,
I have a Windows machine and I have Cygwin installed. I have a Perl script
which calls a shell script using Cygwin. I am getting the following message
while running the Perl script:
---------------------------------------------------------------------------=
-----
5 [main] sh 6632 c:\cygwin\bin\sh.exe: *** fatal error - couldn't allocate
heap, Win32 error 487, base 0x8F0000, top 0x940000, reserve_size 323584,
allocsize 327680, page_const 40966=20
[main] sh 6232 fork: child -1 - died waiting for longjmp before
initialization, retry 0, exit code 0x100, errno 11=20=20=20=20=20=20
5 [main] sh 3784 c:\cygwin\bin\sh.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x8F0000, top 0x940000,
reserve_size 323584, allocsize 327680, page_const 40963016351=20
[main] sh 6232 fork: child -1 - died waiting for longjmp before
initialization, retry 0, exit code 0x100, errno 11=20=20=20=20=20=20
5 [main] sh 6156 c:\cygwin\bin\sh.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x8F0000, top 0x940000,
reserve_size 323584, allocsize 327680, page_const 40966916676=20
[main] sh 6232 fork: child -1 - died waiting for longjmp before
initialization, retry 0, exit code 0x100, errno 11=20=20=20=20=20=20
5 [main] sh 7668 c:\cygwin\bin\sh.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x8F0000, top 0x940000,
reserve_size 323584, allocsize 327680, page_const 409612806997=20
[main] sh 6232 fork: child -1 - died waiting for longjmp before
initialization, retry 0, exit code 0x100, errno 11=20=20=20=20=20=20
6 [main] sh 3132 c:\cygwin\bin\sh.exe: *** fatal error -
couldn't allocate heap, Win32 error 487, base 0x8F0000, top 0x940000,
reserve_size 323584, allocsize 327680, page_const 409622683401=20
[main] sh 6232 fork: child -1 - died waiting for longjmp before
initialization, retry 0, exit code 0x100, errno 11
c:\myscript.sh: fork: Resource temporarily unavailable
---------------------------------------------------------------------------=
-----
I searched various links, and tried out different suggestions that worked
for others but to no avail. Few things that I tried was:
--------------------------------------------------
1. Disabled SEP (Symantec Endpoint Protection)
2. Turned off DEP (Data Execution Prevention) for Cygwin=E2=80=99s sh.exe
3. Modified numbers (xxxx,yyyy,zzzz) present in Windows key value at the
following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\SubSystems\
4. Ran rebaseall in ash.exe
--------------------------------------------------
The strange thing is that if I directly call the shell script using Cygwin,
it works fine.
c:\cygwin\bin\sh.exe c:\myscript.sh
cygcheck -V gave the following output:
--------------------------------------------------
$ cygcheck -V
cygcheck version 1.123
System Checker for Cygwin
Copyright (C) 1998 - 2008 Red Hat, Inc.
Compiled on Apr 12 2010
--------------------------------------------------
I think this version of Cygwin is quite old so I am planning to install a
separate instance (latest) but what concerns me is that since the shell
script works fine without using Perl, and fails when using Perl, there seems
to be some issue either with
----------------------------------
1. Perl itself
2. compatibility between Perl & Cygwin versions
----------------------------------
I have also attached the output of =E2=80=98cygcheck -s -v =E2=80=93r=E2=80=
=99. However, I have
modified/removed few sensitive info.
Can anyone provide some help to get this thing working?
Thanks,
Gaurav
--=20
View this message in context: http://old.nabble.com/Error-when-Perl-calling=
-shell-scipt-using-Cygwin-%3E%3E%3E-c%3A%5Ccygwin%5Cbin%5Csh.exe%3A-***-fat=
al-error---couldn%27t-allocate-heap%2C-Win32-error-487-tp31714033p31714033.=
html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -