delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/01/12:19:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <2FC2818A89E01D408136CACA2EF121713F579F@mailserv.notts.climax.co.uk>
From: Jon Jansen <JonJ AT climax DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Unable to allocate heap
Date: Mon, 1 Sep 2003 17:17:01 +0100
MIME-Version: 1.0
Note-from-DJ: This may be spam

------_=_NextPart_000_01C370A4.79B8FDA0
Content-Type: text/plain;
	charset="iso-8859-1"

I get the following error running CygWin find and xargs from within a TCL
script:

    Error executing 'C:/cygwin/bin/find TempDir/QACData -name *.lock -type f
-print0 | xargs -0r rm -r'...
    c:\cygwin\bin\xargs.exe: *** unable to allocate heap, heap_chunk_size
384, Win32 error 0

The error is intermittent and I haven't been able to reproduce it outside
the TCL script (whether from bash, cmd, tclsh, whatever).

There's similar prior art in the archives, but this one has the crucial
difference that the reported heap_chunk_size is small but non-zero.

I've had a look through the relevant source (shared.cc, heap.cc), and my
initial thought was that shared_info::heap_chunk_size() was returning a
rogue size for some reason. It seems that the memory-zeroing behaviour of
Win32 CreateFileMapping() is used to initialise shared_info::heap_chunk to
zero. Is CreateFileMapping() completely trustworthy in this respect?


------_=_NextPart_000_01C370A4.79B8FDA0
Content-Type: application/octet-stream;
	name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygcheck.out"


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Sep 01 16:55:03 2003

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\bin
	C:\cygwin\bin
	c:\Program Files\GNU\WinCvs 1.3
	c:\RUN\WHORun\Exes
	c:\RUN\WHORun\DLLs
	c:\PROGRA~1\Tcl\bin

C:\cygwin\bin\id.exe output (nontsec)
UID: 11008(mhumphries)  GID: 10513(mkgroup_l_d)
544(Administrators)     545(Users)
10513(mkgroup_l_d)

C:\cygwin\bin\id.exe output (ntsec)
UID: 11008(mhumphries)  GID: 10513(mkgroup_l_d)
544(Administrators)     545(Users)
10513(mkgroup_l_d)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN =3D `binmode'
HOME =3D `c:\Documents and Settings\mhumphries'
MAKE_MODE =3D `unix'
PWD =3D `/cygdrive/c/Documents and Settings/mhumphries'
USER =3D `mhumphries'

ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users'
APPDATA =3D `C:\Documents and Settings\mhumphries\Application Data'
CLIENTNAME =3D `CONTENTSERV'
COMMONPROGRAMFILES =3D `C:\Program Files\Common Files'
COMPUTERNAME =3D `DESIGNSERV'
COMSPEC =3D `C:\WINNT\system32\cmd.exe'
CVS_RSH =3D `/bin/ssh'
CYGWINBIN =3D `C:/cygwin/bin/'
HOMEDRIVE =3D `C:'
HOMEPATH =3D `\Documents and Settings\mhumphries'
HOSTNAME =3D `designserv'
LOGONSERVER =3D `\\DM'
NUMBER_OF_PROCESSORS =3D `4'
OLDPWD =3D `/usr/bin'
OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'
OS =3D `Windows_NT'
PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE =3D `x86'
PROCESSOR_IDENTIFIER =3D `x86 Family 15 Model 2 Stepping 7, =
GenuineIntel'
PROCESSOR_LEVEL =3D `15'
PROCESSOR_REVISION =3D `0207'
PROGRAMFILES =3D `C:\Program Files'
PROMPT =3D `$P$G'
PS1 =3D `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
RUNWHO =3D `C:\RUN\'
SESSIONNAME =3D `RDP-Tcp#2'
SHLVL =3D `1'
SYSTEMDRIVE =3D `C:'
SYSTEMROOT =3D `C:\WINNT'
TEMP =3D `c:\DOCUME~1\MHUMPH~1\LOCALS~1\Temp\1'
TERM =3D `cygwin'
TMP =3D `c:\DOCUME~1\MHUMPH~1\LOCALS~1\Temp\1'
USERDOMAIN =3D `NOTTS'
USERNAME =3D `mhumphries'
USERPROFILE =3D `C:\Documents and Settings\mhumphries'
WINDIR =3D `C:\WINNT'
_ =3D `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) =3D `/cygdrive'
  cygdrive flags =3D 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) =3D `C:\cygwin'
  flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) =3D `C:\cygwin/bin'
  flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) =3D `C:\cygwin/lib'
  flags =3D 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                   =20
c:  hd  NTFS   69923Mb  28% CP CS UN PA FC    =20
d:  cd           N/A    N/A                   =20

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygbz2-1.dll" v0.0 ts=3D2002/5/7 7:33
  380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygdb-3.1.dll" v0.0 ts=3D2002/7/24 17:24
  326k 2002/06/26 C:\cygwin\bin\cygdb2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygdb2.dll" v0.0 ts=3D2002/6/26 18:48
  487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygdb_cxx-3.1.dll" v0.0 ts=3D2002/7/24 17:25
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform5.dll" v0.0 ts=3D2001/4/25 6:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform6.dll" v0.0 ts=3D2002/1/9 6:03
   76k 2003/03/09 C:\cygwin\bin\cygform7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform7.dll" v0.0 ts=3D2003/3/9 20:51
   28k 2003/03/22 C:\cygwin\bin\cyggdbm-3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyggdbm-3.dll" v0.0 ts=3D2003/3/22 22:19
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyggdbm.dll" v0.0 ts=3D2002/2/20 3:05
   15k 2003/03/22 C:\cygwin\bin\cyggdbm_compat-3.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=3D2003/3/22 22:22
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory4.dll" v0.0 ts=3D2001/1/7 4:34
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory5.dll" v0.0 ts=3D2002/10/10 18:28
  945k 2003/06/18 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygiconv-2.dll" v0.0 ts=3D2003/6/18 4:08
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl-1.dll" v0.0 ts=3D2001/12/13 9:28
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl-2.dll" v0.0 ts=3D2002/9/20 4:13
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu5.dll" v0.0 ts=3D2001/4/25 6:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu6.dll" v0.0 ts=3D2002/1/9 6:03
   48k 2003/03/09 C:\cygwin\bin\cygmenu7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu7.dll" v0.0 ts=3D2003/3/9 20:51
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses++5.dll" v0.0 ts=3D2001/4/25 6:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses++6.dll" v0.0 ts=3D2002/1/9 6:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses5.dll" v0.0 ts=3D2001/4/25 6:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses6.dll" v0.0 ts=3D2002/1/9 6:03
  284k 2003/03/09 C:\cygwin\bin\cygncurses7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses7.dll" v0.0 ts=3D2003/3/9 20:50
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel5.dll" v0.0 ts=3D2001/4/25 6:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel6.dll" v0.0 ts=3D2002/1/9 6:03
   31k 2003/03/09 C:\cygwin\bin\cygpanel7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel7.dll" v0.0 ts=3D2003/3/9 20:50
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpcre.dll" v0.0 ts=3D2003/4/11 9:31
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpcreposix.dll" v0.0 ts=3D2003/4/11 9:31
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline4.dll" v0.0 ts=3D2001/1/7 4:34
  127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline5.dll" v0.0 ts=3D2002/10/10 18:28
   50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygz.dll" v0.0 ts=3D2002/3/12 4:38
  948k 2003/03/18 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2003/3/18 14:20
    Cygwin DLL version info:
        DLL version: 1.3.22
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 78
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:=20
        Build date: Tue Mar 18 09:20:11 EST 2003
        CVS tag: dontuse-21
        Shared id: cygwin1S3

  631k 2003/06/22 c:\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2001/4/25 1:01
    Cygwin DLL version info:
        DLL version: 1.3.1
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 38
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:=20
        Build date: Tue Apr 24 20:01:02 EDT 2001
        Shared id: cygwin1S3

  631k 2003/06/22 \bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2001/4/25 1:01
    Cygwin DLL version info:
        DLL version: 1.3.1
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 38
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:=20
        Build date: Tue Apr 24 20:01:02 EDT 2001
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\latest
Last downloaded files from: C:\latest

Package              Version
_update-info-dir     00170-1
ash                  20020731-1
base-files           1.3-1
base-passwd          1.1-1
bash                 2.05b-9
bzip2                1.0.2-2
cygwin               1.3.22-1
db2                  2.7.7-4
db3.1                3.1.17-2
diffutils            2.8.1-1
fileutils            4.1-1
findutils            4.1.7-4
gawk                 3.1.2-3
gdbm                 1.8.3-1
grep                 2.5-1
gzip                 1.3.3-4
libbz2_1             1.0.2-2
libdb2               2.7.7-4
libdb2-devel         2.7.7-4
libdb3.1             3.1.17-2
libdb3.1-devel       3.1.17-2
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-1
libgdbm3             1.8.3-1
libiconv2            1.8-3
libintl1             0.10.40-1
libintl2             0.11.5-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-1
libpcre              4.1-1
libreadline4         4.1-2
libreadline5         4.3-2
login                1.9-5
ncurses              5.3-1
postgresql           7.3.3-1
readline             4.3-2
sed                  4.0.7-1
sh-utils             2.0.15-3
tar                  1.13.25-1
termcap              20020930-1
terminfo             5.3-2
texinfo              4.2-4
textutils            2.0.21-1
which                1.5-1
zlib                 1.1.4-1

Use -h to see help about each section


------_=_NextPart_000_01C370A4.79B8FDA0
Content-Type: text/plain; charset=us-ascii

--
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/
------_=_NextPart_000_01C370A4.79B8FDA0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019