delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/14/23:40:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SARE_SUB_OBFU_Z,TW_BL,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <50A47226.2080506@gmail.com>
Date: Thu, 15 Nov 2012 05:40:06 +0100
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: xz -9 : Cannot allocate memory
References: <50A41697 DOT 3080406 AT tiscali DOT co DOT uk>
In-Reply-To: <50A41697.3080406@tiscali.co.uk>
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

On 11/14/2012 11:09 PM, David Stacey wrote:
> I am trying to use 'xz -9' to compress a file, but the programme exits
> with the error message 'Cannot allocate memory'. Here's what I tried:
>
>
> $ echo Hello World > compress_me.txt
>
> $ xz -9 compress_me.txt
> xz: compress_me.txt: Cannot allocate memory
>
> $ xz --version
> xz (XZ Utils) 5.0.2
> liblzma 5.0.2
>
>
> Having read http://cygwin.com/cygwin-ug-net/setup-maxmem.html I tried
> the following:
>
>
> $ peflags --cygwin-heap /usr/bin/xz.exe
> /usr/bin/xz.exe: initial Cygwin heap size: 0 (0x0) MB
>
> $ peflags --cygwin-heap=1024 /usr/bin/xz.exe
> /usr/bin/xz.exe: initial Cygwin heap size: 1024 (0x400) MB
>
> $ xz -9 compress_me.txt
>
>
> And this worked. Is this the correct way to fix the problem? If so,
> please could we increment the heap size for xz in a post install script?

a lot of programs have "Cygwin heap size: 0 (0x0) MB"
but they work anyway

so the root cause is somewhere else.

> Dave.

please look at
> Problem reports:       http://cygwin.com/problems.html

specially the
"Run cygcheck -s -v -r > cygcheck.out and include that file as an 
attachment in your report"

Marco


--
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 -


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