tech-misc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: core dump in column(1) with 33 columns
"Jeremy C. Reed" writes:
> On Sat, 23 Feb 2008, Greg Oster wrote:
>
> > "Jeremy C. Reed" writes:
> > > tx:work$ jot 33 1 > J33
> > > tx:work$ paste -s J33 | column -t
> > > Memory fault (core dumped)
> > >
> > >
> > > Loaded symbols for /usr/libexec/ld.elf_so
> > > #0 0x0000000000401701 in maketbl () at
> > > /usr/src/usr.bin/column/column.c:242
> > > 242 t->len[coloff] = strlen(cols[coloff]);
> >
> > What arch and OS version is this? I can't replicate this on 4.99.54
> > i386 or amd64, or 4.99.37 i386. (I do see weird behaviour on 3.0
> > i386.. it just prints lots and lots of spaces or something..)
> >
> > Later...
>
> Sorry ...
>
> tx:rc.d$ uname -a
> NetBSD tx.reedmedia.net 4.0_RC4 NetBSD 4.0_RC4 (GENERIC) #0: Thu Nov 8
> 00:11:53 PST 2007
> builds@wb28:/home/builds/ab/netbsd-4-0-RC4/amd64/200711080452Z-obj/home/build
> s/ab/netbsd-4-0-RC4/src/sys/arch/amd64/compile/GENERIC
> amd64
>
> I did update src/usr.bin/column (to HEAD) and built with -g.
>
> Maybe try more columns?
I've just fixed this. You want this:
cvs rdiff -r1.17 -r1.18 src/usr.bin/column/column.c
with that fix, I can do silly things like:
jot 1004 1 > J1004
paste -s J1004 | ./column -t
without incident. Pullup requests for netbsd-3 and netbsd-4 to be
sent in shortly...
Later...
Greg Oster
Home |
Main Index |
Thread Index |
Old Index