Subject: pkg/11448: make run-depends-list in pkgsrc/mail/mutt creates infinite loop
To: None <gnats-bugs@gnats.netbsd.org>
From: Per Amund Amundsen <pa@bsd-amundsen.ux.his.no>
List: netbsd-bugs
Date: 11/08/2000 10:23:10
>Number: 11448
>Category: pkg
>Synopsis: make run-depends-list in pkgsrc/mail/mutt creates infinite loop
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 08 09:23:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Per Amund Amundsen
>Release: pkgsrc/mail/mutt: Makefile,v 1.58 2000/11/02 06:57:32 itojun Exp $
>Organization:
Per Amund Amundsen per-am@ux.his.no
School of Science and Technology per.a.amundsen@tn.his.no
Stavanger University College Tlf: (+47) 51 83 18 77
PO Box 2557 Ullandhaug, N-4091 Stavanger Fax: (+47) 51 83 17 50
>Environment:
System: NetBSD bsd-amundsen.ux.his.no 1.4.2 NetBSD 1.4.2 (BSDA2) #7: Tue May 30 18:34:12 MEST 2000 pa@bsd-amundsen.ux.his.no:/usr/src/sys/arch/i386/compile/BSDA2 i386
>Description:
Performing a "make run-depends-list" loops indefinitely,
spawning pairs of new make processes and shells until the
process table is full.
>How-To-Repeat:
make run-depends-list
Watch some ten thousands of lines of the form
ncurses>=5.0
ncurses>=5.0
...
on the display until the process table is filled.
While this is going on, "ps -wwax" produces a corresponding
number of pair of lines of the form (split for 'readability'):
2714 p3 S+ 0:00.07 make OPSYS OS_VERSION LOWER_OPSYS
PKGTOOLS_VERSION run-depends-list PACKAGE_NAME_TYPE
2715 p3 S+ 0:00.03 /bin/sh -ec pkg="ncurses>=5.0";\t\t\t\t\t\t
dir="../../devel/ncurses";\t\t\t\t\t
cd /usr/pkgsrc/devel/ncurses;\t\t\t\t\t\t\t if true;
then\t\t\t echo "$pkg";\t\t\t\t\t
else\t\t\t\t\t\t\t\t if cd $dir 2>/dev/null;
then\t\t\t\t make OPSYS=NetBSD OS_VERSION=1.4.2 LOWER_OPSYS=netbsd
PKGTOOLS_VERSION="20000724" package-name PACKAGE_NAME_TYPE=name;
else \t\t\t\t\t\t\t echo "Warning: \\"$dir\\" non-existent -- @pkgdep
registration incomplete" >&2;
fi;\t\t\t\t\t\t\t fi;\t\t\t\t\t\t\t\t
if false ;
then \t\t\t PKG_DBDIR=/var/db/pkg /usr/sbin/pkg_info -qf "$pkg" |
/usr/bin/awk '/^@pkgdep/ {print $2}';
else \t\t\t\t\t\t\t if cd $dir 2>/dev/null;
then\t\t\t\t make OPSYS=NetBSD OS_VERSION=1.4.2
LOWER_OPSYS=netbsd PKGTOOLS_VERSION="20000724" run-depends-list
PACKAGE_NAME_TYPE=name; else \t\t\t\t\t\t\t echo "Warning: \\"$dir\\"
non-existent -- @pkgdep registration incomplete" >&2;
fi;\t\t\t\t\t\t\t fi
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: