🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #905

diff2.0 bug

#905
From: Michael D Brennan
Date: Tue, 13 Oct 1992 15:41
49 lines
1801 bytes
The following setup with diff2.0 core dumps:

GNU diff version 2.0
compiled gcc2.2.2 -O2 -g  (does not happen -g only)

sun sparc station ipc, os4.1.1


gdb output follows.  The two input files to diff are 42K so I'll
only send them if you want them.

--
Mike Brennan
brennan@boeing.com



(gdb) run mawk/man/mawk.doc mawk112/man/mawk.doc
Starting program: /usr/brennan/diff-2.0/diff mawk/man/mawk.doc mawk112/man/mawk.doc

Program received signal 11, Segmentation fault
0x3e6c in diag (xoff=0, xlim=1167, yoff=0, ylim=1108, cost=0xf7ffebe4)
    at analyze.c:93
93	  bd[bmid] = xlim;
(gdb) where
#0  0x3e6c in diag (xoff=0, xlim=1167, yoff=0, ylim=1108, cost=0xf7ffebe4)
    at analyze.c:93
#1  0x4554 in compareseq (xoff=0, xlim=1167, yoff=0, ylim=1108)
    at analyze.c:266
#2  0x5178 in diff_2_files (filevec=0xf7ffecf8, depth=0) at analyze.c:818
#3  0x3cec in compare_files (dir0=0x0, name0=0xf7fff067 "mawk/man/mawk.doc", 
    dir1=0x0, name1=0xf7fff079 "mawk112/man/mawk.doc", depth=0) at diff.c:802
#4  0x3000 in main (argc=3, argv=0xf7ffef24) at diff.c:524
(gdb) info locals
fd = (int *) 0x35a18
bd = (int *) 0x37df8
xv = (int *) 0x2fd18
yv = (int *) 0x323e0
dmin = -1108
dmax = 1167
fmid = 0
bmid = 59
fmin = 0
fmax = 0
bmin = -143015844
bmax = -143015844
c = 1
odd = 0
(gdb) quit
Technical Details
Message-ID: <9210131537.AA01579@baker.ds.boeing.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!baker.ds.boeing.COM!brennan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!baker.ds.boeing.COM!brennan
From: brennan@baker.ds.boeing.COM (Michael D Brennan)
Subject: diff2.0 bug
Message-ID: <9210131537.AA01579@baker.ds.boeing.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 13 Oct 1992 15:41:30 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 50