[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory exhausted from diff-2.8.4
From: |
rwhron |
Subject: |
Re: memory exhausted from diff-2.8.4 |
Date: |
Tue, 25 Feb 2003 22:22:37 -0500 |
User-agent: |
Mutt/1.4i |
>> /usr/src/sources/d/diffutils-2.8.4/src/diff: memory exhausted
> I don't get this result (diffutils 2.8.4, Solaris 7 sparc, GCC
> 2.95.3). Instead, I get the expected result with your data, namely
> that all the lines differ.
That's good :)
> How did you build your copy of diff? Does your copy fail on all
> inputs, or just on this one?
It appears to happen for all inputs.
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ touch a b
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ src/diff a b
src/diff: memory exhausted
This was my configure command:
$ ./configure --disable-nls --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
uname -m = i686
uname -r = 2.5.62-mm1
uname -s = Linux
uname -v = #2 Wed Feb 19 22:35:01 EST 2003
gcc version 2.95.3 20010315 (release)
I used these CFLAGS, which normally work fine on this machine:
CFLAGS = -O2 -fomit-frame-pointer -pipe -malign-double
-mpreferred-stack-boundary=2 -march=i686 -s
Hmm.
I recompiled with the usual CFLAGS= -O2 -g and there is no problem.
I recompiled with the original CFLAGS, and now that is working too.
Sorry, I don't know what the problem was, but there is not one now.
You can ignore the rest of this. It's very strange, but it's not
a diff problem. cksum's on the two versions of diff are the same,
but they behave differently. Note the subtle - at the end of the
directory path of the one that has a problem. (that was just where i
backed up the original compile directory - it has nothing to do
with the different behaviour).
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ rm a b
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ cksum src/diff
320616529 60796 src/diff
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ cd ../diff*-
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ cksum src/diff
320616529 60796 src/diff
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ src/diff a b
src/diff: a: No such file or directory
src/diff: b: No such file or directory
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ touch a b
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ src/diff a b
src/diff: memory exhausted
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ cd -
/usr/src/sources/d/diffutils-2.8.4
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ src/diff a b
src/diff: a: No such file or directory
src/diff: b: No such file or directory
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ touch a b
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ src/diff a b
address@hidden:/usr/src/sources/d/diffutils-2.8.4$
You guys rock. Thanks for making me look at it again.
Final Hmm. md5sum is different for the working and non-working
diff commands.
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ md5sum src/diff
06e3a383d232f46419a3bf9897be4301 src/diff
address@hidden:/usr/src/sources/d/diffutils-2.8.4$ cd ../diffu*-
address@hidden:/usr/src/sources/d/diffutils-2.8.4-$ md5sum src/diff
3a9eb464a9fb860e390e054dacd4dee5 src/diff
--
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html