[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] bug in File::Compare?



At 16:44 -0700 2000.11.10, Daniel Wolstenholme wrote:
>I posted this once but I think the list was down and didn't get it.
>
>I'm attempting to use several scripts I wrote in Unix on a Mac, and
>constantly get "out of memory!" errors.  The scripts work fine on both
>Linux and Win32 boxes.  I've traced the source of the out-of-memory
>error to the File::Compare module which all my scripts use.  Has anyone
>had problems with this module?
>
>The part of the module where it's failing is where the actual comparison
>is done, at the line
>
>unless (defined($tr = read(TO,$tbuf,$fr)) and $tbuf eq $fbuf) { goto
>fail_inner; }
>
>Specifically, this read function causes the crash.  This read is
>immediately after another read (of the FROM file); does MacPerl have a
>problem with read()?

No.  However, if your file is very large, then MacPerl can run out of
memory.  Increase MacPerl's memory allocation.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org