Subject: Re: PR: bin/12138 [Was: sort crashes]
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Mark White <mark.white@st-edmund-hall.oxford.ac.uk>
List: current-users
Date: 02/16/2001 15:59:01
Jun-ichiro itojun Hagino writes:
> 
> >[I was running 1.12] ... ah, I see.  This error now only
> >occurs for filter mode
> >  touch /tmp/emptyfile
> >  cat emptyfile | sort -f
> >Stace trace follows.

Just had another sort crash, apparently unrelated -- this
time while trying to build pkgsrc/textproc/ispell with make
british.

The build failed on command:

sort -u -t/ +0f -1 +0 -T /m/1f/pkgsrc/textproc/ispell/work \
  -o english.xlg english.0 english.1 english.2 english.3 \
  british.0 british.1 british.2

Stack backtrace is below.  I've just realised PR/12138 is
closed; shall I kick off a new one?

Mark <><

-- snip --

[BSDln:p6]+usr.bin/sort% gdb obj/sort sort.core                           [1548]
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...
Core was generated by `sort'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Reading symbols from /usr/lib/libc.so.12...done.
#0  0x804ade2 in onepass (a=0x8064000, depth=8, n=1733, sizes=0xbfbfc7b0, 
    tr=0x8051e80 "\001\002\003\004\005\006\a\b\t\n", fp=0x80fbcbc)
    at /usr/src/usr.bin/sort/fsort.c:307
307                     histo[c = tr[**ak]]++;
(gdb) where
#0  0x804ade2 in onepass (a=0x8064000, depth=8, n=1733, sizes=0xbfbfc7b0, 
    tr=0x8051e80 "\001\002\003\004\005\006\a\b\t\n", fp=0x80fbcbc)
    at /usr/src/usr.bin/sort/fsort.c:307
#1  0x804a914 in fsort (binno=-1, depth=0, top=0, filelist=0xbfbfcc0c, 
    nfiles=7, outfp=0x480fd300, ftbl=0xbfbfcc10)
    at /usr/src/usr.bin/sort/fsort.c:199
#2  0x804ca4c in main (argc=16, argv=0xbfbfce08)
    at /usr/src/usr.bin/sort/sort.c:268
#3  0x8048d49 in ___start ()
(gdb)