From owner-freebsd-bugs Mon Jul 17 11:40: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6633C37B761 for ; Mon, 17 Jul 2000 11:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA37641; Mon, 17 Jul 2000 11:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 9BB2B37BCAF; Mon, 17 Jul 2000 11:34:58 -0700 (PDT) Message-Id: <20000717183458.9BB2B37BCAF@hub.freebsd.org> Date: Mon, 17 Jul 2000 11:34:58 -0700 (PDT) From: pfeifer@dbai.tuwien.ac.at To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/19983: sh dumps core reproducibly Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19983 >Category: bin >Synopsis: sh dumps core reproducibly >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 17 11:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: 4.0-RELEASE >Organization: >Environment: FreeBSD taygeta.dbai.tuwien.ac.at 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Wed Jul 12 21:20:37 CEST 2000 root@taygeta.dbai.tuwien.ac.at:/usr/src/sys/compile/GERALD_MADE_4.0 i386 >Description: I consistently get the following core dump from /bin/sh for the script listed under "How to repeat": sh in free(): warning: junk pointer, too low to make sense. Segmentation fault I tested this on two 4.0-RELEASE boxes. Another box, running 3.4-RELEASE aborts a bit differently. sh in free(): warning: junk pointer, too low to make sense. Oops, stackp deleted Abort trap >How-To-Repeat: Run the script below in a large directory tree (which is not necessarily a CVS tree) like /usr/share. After about 12 directories the segmentation fault happens. Nearly any modification of this script -- even removing some parameters of the cvs command! -- makes the problem go away! ---- cut ---- #!/bin/sh find `pwd` -type d -exec echo {} \; | while read name; do dir=`dirname $name` if [ -d $dir ]; then echo "Updating $dir" visited="$visited:$dir" cd $dir cvs -q update -PAd -l fi done >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message