Bug in less version 406.

David Wolfskill david at catwhisker.org
Thu Aug 2 10:51:31 PDT 2007


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] 

This is with:

g1-18(6.2-S)[6] uname -a
FreeBSD g1-18.catwhisker.org. 6.2-STABLE FreeBSD 6.2-STABLE #464: Thu Aug  2 06:16:43 PDT 2007     root at g1-18.catwhisker.org.:/common/S1/obj/usr/src/sys/CANARY  i386
g1-18(6.2-S)[7] less -V
less 406
Copyright (C) 1984-2005 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
g1-18(6.2-S)[8] 

>...

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Anything and everything is a (potential) cat toy.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070802/3561d528/attachment.pgp


More information about the freebsd-stable mailing list