delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/15/13:02:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD,SARE_SUB_OBFU_Z,SPF_HELO_PASS,TW_BL
X-Spam-Check-By: sourceware.org
X-Trace: 817029146/mk-filter-3.mail.uk.tiscali.com/B2C/$THROTTLED_DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.68.99.69/None/drstacey AT tiscali DOT co DOT uk
X-SBRS: None
X-RemoteIP: 79.68.99.69
X-IP-MAIL-FROM: drstacey AT tiscali DOT co DOT uk
X-SMTP-AUTH:
X-Originating-Country: GB/UNITED KINGDOM
X-MUA: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121029 Thunderbird/16.0.2
X-IP-BHB: Once
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApMBAKMspVBPRGNF/2dsb2JhbAANN8ViAQEBBDhAEQsYCRYPCQMCAQIBNwENEwgBAYgUqSqTUYwxgwWDJwOXGIQ8jVo
Message-ID: <50A52E26.7070007@tiscali.co.uk>
Date: Thu, 15 Nov 2012 18:02:14 +0000
From: David Stacey <drstacey AT tiscali DOT co DOT uk>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121029 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> <50A47226 DOT 2080506 AT gmail DOT com> <50A47F84 DOT 8050400 AT lysator DOT liu DOT se> <50A48C01 DOT 4000901 AT users DOT sourceforge DOT net>
In-Reply-To: <50A48C01.4000901@users.sourceforge.net>
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 15/11/12 06:30, JonY wrote:
> On 11/15/2012 13:37, Peter Rosin wrote:
>> On 2012-11-15 05:40, marco atzeri wrote:
>>> 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.
>> xz is notorious for its big up-front allocations, at least with some of
>> the more aggressive options in effect.
>>
> The -9 option works for me without modifying Cygwin heap.
>

Thank you all for your help. I have repeated the above test using 
/usr/i686-pc-mingw32/sys-root/mingw/bin/xz -9 and this worked OK. This 
is the same version of xz (5.0.2), but compiled up using mingw (and 
therefore presumably not using cygwin1.dll).

If it helps in reproducing this problem, I am /still/ using Windows XP 
Pro SP3.

Many thanks,

Dave.



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