Bug in less version 406.

Stephen Montgomery-Smith 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)[1] cd /tmp
> g1-18(6.2-S)[2] head /etc/group >group
> g1-18(6.2-S)[3] less -E group fubar
> 
> and didn't see a problem
> 
> Using more(1), I got:
> 
> g1-18(6.2-S)[5] more group fubar
> # $FreeBSD: src/etc/group,v 1.32.2.1 2006/03/06 22:23:10 rwatson Exp $
> #
> wheel:*:0:root,david
> daemon:*:1:
> kmem:*:2:
> sys:*:3:
> tty:*:4:
> operator:*:5:root
> mail:*:6:
> bin:*:7:
> Segmentation fault (core dumped)
> g1-18(6.2-S)[6] 

For me this is one of those intermittent faults.  Sometimes it 
segfaults, and sometimes it doesn't.

Stephen



More information about the freebsd-stable mailing list