Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2007 07:50:37 GMT
From:      Bernard Steiner <zdbs@lif.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/114617: /usr/bin/less SEGV
Message-ID:  <200707160750.l6G7obbk038536@www.freebsd.org>
Resent-Message-ID: <200707160800.l6G80Ac5089030@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707160750.l6G7obbk038536>