Thread View: gnu.utils.bug
2 messages
2 total messages
Started by Michael D Brennan
Tue, 13 Oct 1992 15:41
diff2.0 bug
Author: Michael D Brennan
Date: Tue, 13 Oct 1992 15:41
Date: Tue, 13 Oct 1992 15:41
49 lines
1801 bytes
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
Re: diff2.0 bug
Author: Paul Eggert
Date: Wed, 14 Oct 1992 03:31
Date: Wed, 14 Oct 1992 03:31
14 lines
973 bytes
973 bytes
brennan@baker.ds.boeing.COM (Michael D Brennan) writes: 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 A bug causes GCC 2.2.2 (sparc, with the -O2 option) to generate incorrect code for the diag routine of GNU diff. To work around the problem, compile diff with plain -O instead. This bug was reported to bug-gcc in late July, and I think it will be fixed when GCC 2.3 comes out.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads