Date: Mon, 17 Jul 2000 11:34:58 -0700 (PDT) From: pfeifer@dbai.tuwien.ac.at To: freebsd-gnats-submit@FreeBSD.org Subject: bin/19983: sh dumps core reproducibly Message-ID: <20000717183458.9BB2B37BCAF@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000717183458.9BB2B37BCAF>
