From nobody@FreeBSD.org  Thu Aug  2 20:37:25 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5E5C016A417
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Aug 2007 20:37:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5232E13C442
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Aug 2007 20:37:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l72KbPdN005703
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 2 Aug 2007 20:37:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l72KbPLG005702;
	Thu, 2 Aug 2007 20:37:25 GMT
	(envelope-from nobody)
Message-Id: <200708022037.l72KbPLG005702@www.freebsd.org>
Date: Thu, 2 Aug 2007 20:37:25 GMT
From: Ted Hatfield <ted@pat.io.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: less -E causes segmentation fault in certain circumstances.
X-Send-Pr-Version: www-3.0

>Number:         115156
>Category:       bin
>Synopsis:       less(1): less -E causes segmentation fault in certain circumstances.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 02 20:40:01 GMT 2007
>Closed-Date:    Thu Oct 11 18:55:51 UTC 2007
>Last-Modified:  Thu Oct 11 18:55:51 UTC 2007
>Originator:     Ted Hatfield
>Release:        FreeBSD 6.2-Stable
>Organization:
PrismNet Inc.
>Environment:
FreeBSD tempest.prismnet.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jul 22 04:06:03 CDT 2007     root@test.prismnet.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
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

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Fri Aug 3 01:12:29 UTC 2007 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115156 
State-Changed-From-To: open->patched 
State-Changed-By: delphij 
State-Changed-When: Mon Oct 8 16:22:53 UTC 2007 
State-Changed-Why:  
Dear submitter, 

I think this was fixed by a recent less import of v408. 

Would you please help us to confirm? 

Thanks in advance! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115156 
State-Changed-From-To: patched->closed 
State-Changed-By: delphij 
State-Changed-When: Thu Oct 11 18:55:35 UTC 2007 
State-Changed-Why:  
less v408 was MFC'ed to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115156 
>Unformatted:
