misc/114617: /usr/bin/less SEGV

Bernard Steiner zdbs at lif.de
Mon Jul 16 08:00:11 UTC 2007


>Number:         114617
>Category:       misc
>Synopsis:       /usr/bin/less SEGV
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 16 08:00:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Bernard Steiner
>Release:        6.2
>Organization:
Lahmeyer International
>Environment:
FreeBSD machine6 6.2-STABLE FreeBSD 6.2-STABLE #3: Fri Jul 13 12:11:45 CEST 2007     root at machine6:/usr/obj/usr/src/sys/MACHINE6  amd64
>Description:
# (ENTER)less /usr/ports/sysutils/xmbmon/*
[... output of Makefile ...]
/usr/ports/sysutils/xmbmon/Makefile (file 1 of 2) (END) - Next: /usr/ports/sysutils/xmbmon/files
(ENTER):n<CR>
 :Segmentation fault (core dumped)
#

May I add the same thing happens with

FreeBSD grimma 6.2-STABLE FreeBSD 6.2-STABLE #35: Sun Jul 15 18:18:40 CEST 2007     root at grimma:/usr/obj/usr/src/sys/GRIMMA  i386
(and also same configuration with amd64; note all three 6.2-STABLE are SMP machines)

but works OK with

FreeBSD machine5 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Fri Mar 24 19:40:17 CET 2006     root at machine5:/usr/obj/usr/src/sys/GENERIC  i386
(single CPU) and also
FreeBSD machine3 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 13 17:43:08 CEST 2005
     root at machine3:/usr_obj/usr/src/sys/MACHINE3  sparc64
(single CPU)

Same thing happens with a copy of the xmbmon directory if copied to /tmp.
Nothing bad happens with "less /*".
If prepending and appending a number of files and directories to the less that dumps core it works OK.

ktrace indicates the SEGV occurs directly after stat() for the second file
i.e. directory "files", stat returns 0

haven't managed to gdb less yet due to lack of symbols :-(
>How-To-Repeat:
On 6.2-STABLE i386 or amd64 SMP with ports, call less /usr/ports/sysutils/xmbmon/*
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list