Subject: pkg/23526: pkg_info croaks with a "cannot fork process for tar"
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <roskens@elfin.net>
List: netbsd-bugs
Date: 11/21/2003 18:34:30
>Number: 23526
>Category: pkg
>Synopsis: pkg_info croaks with a "cannot fork process for tar"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 21 18:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Ron Roskens
>Release: -current
>Organization:
>Environment:
NetBSD screamer.tx.elfin.net 1.6ZF NetBSD 1.6ZF (ASUS) #0: Fri Nov 21 00:30:13 UTC 2003 root@screamer.tx.elfin.net:/d/d01/obj/src/sys/arch/amd64/compile/ASUS amd64
>Description:
There is a bug in pkg_install/lib/file.c where it does not reap the decompress_cmd child when unpacking a package file.
# ident /usr/sbin/pkg_info
/usr/sbin/pkg_info:
$NetBSD: crt0.c,v 1.2 2003/07/26 19:24:31 salo Exp $
$NetBSD: main.c,v 1.37 2003/09/02 07:34:57 jlam Exp $
$NetBSD: perform.c,v 1.50 2003/09/23 09:36:06 wiz Exp $
$NetBSD: show.c,v 1.27 2003/09/02 07:34:59 jlam Exp $
$NetBSD: version.c,v 1.1 2001/03/05 16:53:14 wiz Exp $
$NetBSD: plist.c,v 1.41 2003/09/23 09:36:07 wiz Exp $
$NetBSD: global.c,v 1.6 1999/08/24 00:48:39 hubertf Exp $
$NetBSD: path.c,v 1.6 2003/09/02 07:35:03 jlam Exp $
$NetBSD: str.c,v 1.46 2003/10/04 00:50:34 wiz Exp $
$NetBSD: pkgdb.c,v 1.18 2003/09/08 22:19:25 jlam Exp $
$NetBSD: ftpio.c,v 1.60 2003/10/06 00:44:15 grant Exp $
$NetBSD: file.c,v 1.68 2003/10/04 00:50:34 wiz Exp $
$NetBSD: pen.c,v 1.31 2003/09/03 12:44:01 jlam Exp $
$NetBSD: fexec.c,v 1.7 2003/09/23 15:07:43 christos Exp $
>How-To-Repeat:
Run a "pkg_info *tgz" command inside a packages directory with more than "ulimit -p" files.
# PKG_TMPDIR=/tmp pkg_info [f-z]*tgz > pkg_info.out
pkg_info: cannot fork process for tar -- tar extract of /usr/pkgsrc/packages/1.6ZF/x86_64/All/loudmouth-0.14nb1.tgz failed!
pkg_info: error during unpacking, no info for 'loudmouth-0.14nb1.tgz' available
pkg_info: couldn't remove temporary dir '/tmp/instmp.24552l'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: