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
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: 11I 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@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@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
Ted Hatfield wrote:> > 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 >I can reproduce it using "more" but not "less -E". This is on -Current as of a week or so ago. TERM=xterm. Graham
Graham Menhennitt wrote:> Ted Hatfield wrote: >> 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 >> > > I can reproduce it using "more" but not "less -E". This is on -Current > as of a week or so ago. TERM=xterm.I can reliably reproduce this with less -E on both -CURRENT and -STABLE... :S I need to do an operation on my eye this weekend so I have to wait a couple of days until I can recover from this. Cheers,