[gnu.utils.bug] gnu diff 1.12

jay@PRINCETON.EDU (03/01/90)

I'm having problems with "diff -r" dumping core on Suns.
It happens most often on Sun4 (4/280 and SS1), but I've
also seen it happen on Sun3s.  All are running SunOS 4.0.3.
The same pair of subtrees which cause a coredump on a
SPARC won't necessarily cause a core dump on a Sun3; I
haven't tested the reverse.  diff was compiled with Sun's cc.

Sorry, I haven't had time to track down the reason.
If I compile with -g, the problem goes away.  adb refuses
to give me a stack trace on the core file.  I just tried
compiling without -O; on one example directory where diff
compiled -O dumps core, it succeeds with the unoptimized
version, but it prints a large string of nulls as the difference
between a file which is empty in one directory and contains
4096 nulls in the other.  The last output from the -O
version is the diffs from the file encountered just before
this file.  I *think* I've seen coredumps on pairs of
directories which don't contain such a pair of files.

Has anybody else reported this?

	Jay Plett
	jay@princeton.edu