delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/30/08:03:02

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=nNQBV7ZzEueGEcxz4A929WScXHhT/fzNbi3qMcWARAt1YBCgXWuKQ
y0mXOK/3JcPc3Tjljz/5PPf5/Rv8IVrA5XEiCKzcQ/V1OBHdWOi3YbRtufm9Cuni
BxaDEKEncBO4rTwqGI0dYLblPNv5BSix9GOZu69i9iN0CbVqa/TCkg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=gJHd2+LfvZ13EPurVNi+/NwjcKo=; b=m7f1EeO7CA5K84a0SA6wKq/a4jVn
7xvvof3RaKRQq1+6zB7Vv3qZJFepOgpNfxz5DYLBVBzjhr0a1LBdUavqC+stexYB
v+SSugz6zS0iEp6qtfk1dGbgam3EQqXvVzi14Wq2PPLoBB8Uv8mYMfu3prQzCUJC
4iEcf9oNtpeR3Ww=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_50,KHOP_PGP_SIGNED,NO_RELAYS autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Fri, 30 Aug 2013 14:02:44 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: xz -9 : Cannot allocate memory
Message-ID: <20130830120244.GV21571@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50A41697 DOT 3080406 AT tiscali DOT co DOT uk> <loom DOT 20130829T155739-66 AT post DOT gmane DOT org> <loom DOT 20130829T162752-851 AT post DOT gmane DOT org> <20130829151121 DOT GR21571 AT calimero DOT vinschen DOT de> <87ioyowbq9 DOT fsf AT Rainer DOT invalid> <loom DOT 20130830T111847-683 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20130830T111847-683@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

--MT9SxUWSsctiw0kG
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 30 09:26, Achim Gratz wrote:
> Achim Gratz <Stromeko <at> nexgo.de> writes:
> > > Load xz under GDB, break
> > > on "cygwin_exit", run it, and when it hits the breakpoint, observer t=
he
> > > memory layout, either in GDB, or by cat'ing /proc/=E2=89=A4xz's pid>/=
maps.
> >=20
> > OK, if it is still reproducible tomorrow I'll have a look.
>=20
> I'm not sure I'm looking at the right place, but these seem to be the
> relevant differences between the non-working and the working version
> (initial heap set to 1MiB) memory maps (I've cut the lines with different
> thread ID etc.).
>=20
> --- map_0x0.txt 2013-08-30 11:14:33.717797000 +0200
> +++ map_0x1.txt 2013-08-30 11:12:29.171669000 +0200
> @@ -1,40 +1,41 @@
> [...]
> -002F0000-00314000 rw-p 00000000 0000:0000 0                   [win heap 0
> default grow]
> -00314000-003F0000 =3D=3D=3Dp 00024000 0000:0000 0                   [win=
 heap 0
> default grow]
> +00300000-00324000 rw-p 00000000 0000:0000 0                   [win heap 0
> default grow]
> +00324000-00400000 =3D=3D=3Dp 00024000 0000:0000 0                   [win=
 heap 0
> default grow]
> [...]
>  20000000-20090000 rw-p 00000000 0000:0000 0                   [heap]
> -20090000-38000000 =3D=3D=3Dp 00090000 0000:0000 0                   [hea=
p]
> +20090000-20400000 =3D=3D=3Dp 00090000 0000:0000 0                   [hea=
p]
> +34C80000-58CD0000 rw-p 00000000 0000:0000 0
>  58CD0000-58CD1000 r--p 00000000 76D4:F5BA 2533274790634491=20=20=20
> /usr/bin/cyglzma-5.dll
>  58CD1000-58CE8000 r-xp 00001000 76D4:F5BA 2533274790634491=20=20=20
> /usr/bin/cyglzma-5.dll

Yes, looks normal and expected from what you observed.  mmap commits
memory top-down and that was apparently the first free slot big enough
to fullfil the request.  The default heap size is 384 Megs and then
there's apparently not enough space anywhere.  Keep in mind that a
request of 674Mib is a third of the available VM on 32 bit machines.
So, drop the heapsize and go with it, or use the -M option.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--MT9SxUWSsctiw0kG
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBAgAGBQJSIInjAAoJEPU2Bp2uRE+gZuYP/30i0Ajy37gn0GbivJXIMYs9
nTRKhJJn4zZGvsLMZ5UJ7G2M6tlx7btiZCPmR2wEmaOwa+WEdRgrIoUyM63BOU6h
GnQLLeKhokgDZZQciuQhSnfEZ7HjtnkVtd10FKhYW6CLFqFgDtG5E2eiEciZPUeQ
Ffwdz+IRzEVSjgxFriMt2THf++yWEwNyZt5PVLF8lTjbCn+VTol5mlw9SID9FFBe
nn0VJYCGR7IEjUblYUftSZoui2/g3jpA5+LSloxLR9DQqRIlawG54Wj09ogyOYsJ
/fFUDuRlZ0HEhc5/RbHnMDA9sHr/Sq9/ZzKJwXs/qhYiZeaQkffx0KvuWxf1ypp+
9VYCSewt+HdvtJ1+GeR+eABWIJVThih5zliOAwejggO3WCeq5I4MUTe9y25sDLen
D+DGl+pV4rPEw87bFNjfa+Kh0xxtoUHFe5T/ERFJhJN/NCvmM0Dqi0mdwZoVLqVF
xXyk1uvbUrUfgrPT1dzN4eANg8z49hkpJTvTHEnAcxzgIvMAnK6eZW4/HjVtWxpe
v12UiVfxH1f3YpN/HYZ60SI0n7p9JiSVHNf53l354GEBz4tkj23Q58nmiLh6GgVv
/G5HSCgMKXrj6ZWB2/1IItG9TJCaIjpaP67bghon273p+OQUVuWWfbPt858Mshmp
6hh9jcoOoxoxQdDitbeF
=wF/W
-----END PGP SIGNATURE-----

--MT9SxUWSsctiw0kG--

- Raw text -


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