Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2007 12:14:37 -0500 (CDT)
From:      Ted Hatfield <ted@pat.io.com>
To:        freebsd-stable@freebsd.org
Subject:   Bug in less version 406.
Message-ID:  <20070802114827.U26646@pat.io.com>

next in thread | raw e-mail | index | archive | help

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.

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



If you choose a file that is longer than 1 page the process works as 
expected.

For example

less -E /etc/hosts.allow bogusfile

works as expected.


I have confirmed this behaviour on 3 different machines all built within a 
week of each other.

The newest machine was built on

FreeBSD 6.2-STABLE (GENERIC) #0: Thu Jul 26 02:20:28 CDT 2007

Thanks,

Ted Hatfield




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070802114827.U26646>