Bug in less version 406.
stephen at math.missouri.edu
Thu Aug 2 11:38:39 PDT 2007
David Wolfskill wrote:
> On Thu, Aug 02, 2007 at 12:14:37PM -0500, Ted Hatfield wrote:
>> Can someone verify this bug for me please and suggest a fix.
>> Error description:
>> Using less -E or more to display a file that is less than a full page,
>> while then displaying a nonexistent file causes a segmentation fault.
> I was able to recrerate the symptoms using more, but not "less -E".
>> For example on a newly built system you can
>> less -E /etc/group bogusfile
>> This will display the file ending with
>> /etc/group (file 1 of 2) (END) - Next: bogusfile
>> when you press space or return it gives
>> Segmentation fault: 11
> I did:
> g1-18(6.2-S) cd /tmp
> g1-18(6.2-S) head /etc/group >group
> g1-18(6.2-S) less -E group fubar
> and didn't see a problem
> Using more(1), I got:
> g1-18(6.2-S) more group fubar
> # $FreeBSD: src/etc/group,v 126.96.36.199 2006/03/06 22:23:10 rwatson Exp $
> Segmentation fault (core dumped)
For me this is one of those intermittent faults. Sometimes it
segfaults, and sometimes it doesn't.
More information about the freebsd-stable