From owner-freebsd-stable@FreeBSD.ORG Thu Aug 2 17:51:31 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5338D16A41F for ; Thu, 2 Aug 2007 17:51:31 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 1107813C48E for ; Thu, 2 Aug 2007 17:51:31 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id l72HpUn5094273; Thu, 2 Aug 2007 10:51:30 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id l72HpU0U094272; Thu, 2 Aug 2007 10:51:30 -0700 (PDT) (envelope-from david) Date: Thu, 2 Aug 2007 10:51:30 -0700 From: David Wolfskill To: Ted Hatfield Message-ID: <20070802175130.GJ77008@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Ted Hatfield , freebsd-stable@freebsd.org References: <20070802114827.U26646@pat.io.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tctmm6wHVGT/P6vA" Content-Disposition: inline In-Reply-To: <20070802114827.U26646@pat.io.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: Bug in less version 406. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 17:51:31 -0000 --tctmm6wHVGT/P6vA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 02, 2007 at 12:14:37PM -0500, Ted Hatfield wrote: >=20 > Can someone verify this bug for me please and suggest a fix. >=20 > Error description: >=20 > Using less -E or more to display a file that is less than a full page,=20 > 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 >=20 > less -E /etc/group bogusfile >=20 >=20 > This will display the file ending with >=20 > /etc/group (file 1 of 2) (END) - Next: bogusfile >=20 > when you press space or return it gives >=20 > 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]=20 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@g1-18.catwhisker.org.:/common/S1/obj/usr/src/s= ys/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]=20 >... Peace, david --=20 David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --tctmm6wHVGT/P6vA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkayGaEACgkQmprOCmdXAD2YCgCdF7ScChzvZHLEVy/k3qRyPnzN c9YAn2kNpLZKL+MaJSd+zjxRDchOuCFm =vpqP -----END PGP SIGNATURE----- --tctmm6wHVGT/P6vA--