NetBSD Problem Report #52312
From www@NetBSD.org Sun Jun 18 15:46:00 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 820087A28A
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Jun 2017 15:46:00 +0000 (UTC)
Message-Id: <20170618154559.75D7A7A2A5@mollari.NetBSD.org>
Date: Sun, 18 Jun 2017 15:45:59 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: "Checking for fgrep" causes Fork bomb
X-Send-Pr-Version: www-1.0
>Number: 52312
>Category: pkg
>Synopsis: "Checking for fgrep" causes Fork bomb
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 18 15:50:00 +0000 2017
>Closed-Date: Mon Jun 19 06:35:07 +0000 2017
>Last-Modified: Mon Jun 19 06:35:07 +0000 2017
>Originator: Naruaki Etomi
>Release: current pkgsrc
>Organization:
Japan
>Environment:
OSF1 ds15 V5.1 2650 alpha
>Description:
1. Please apply this patch! ( or Please fix this problem!)
http://gnats.netbsd.org/52001
2. Please apply this patch! ( or Please fix this problem!)
https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=52311
3.Please see below
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... print -r
checking for a sed that does not truncate output... /root/pkgsrc/bootstrap/work/bin/sed
checking for fgrep... swap space below 10 percent free
Unable to obtain requested swap space
Unable to obtain requested swap space
Unable to obtain requested swap space
Unable to obtain requested swap space
Unable to obtain requested swap space
swap space below 10 percent free
Unable to obtain requested swap space
Unable to obtain requested swap space
swap space below 10 percent free
Unable to obtain requested swap space
4.Please see below
https://twitter.com/nullnilaki/status/875831666173816832
5.Please see below
https://twitter.com/nullnilaki/status/875855056112832513
>How-To-Repeat:
pkgsrc bootstrap
>Fix:
--- mk.orig/tools/tools.OSF1.mk 2017-06-18 22:30:07.000000000 +0000
+++ mk/tools/tools.OSF1.mk 2017-06-18 22:32:03.000000000 +0000
@@ -24,7 +24,7 @@
TOOLS_PLATFORM.expr?= /bin/expr
TOOLS_PLATFORM.false?= false # shell builtin
TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.fgrep?= /usr/bin/grep -F
+TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.grep?= /usr/bin/grep
TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
>Release-Note:
>Audit-Trail:
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52312 CVS commit: pkgsrc/mk/tools
Date: Mon, 19 Jun 2017 06:25:45 +0000
Module Name: pkgsrc
Committed By: maya
Date: Mon Jun 19 06:25:45 UTC 2017
Modified Files:
pkgsrc/mk/tools: tools.OSF1.mk
Log Message:
Use the fgrep binary explicitly on OSF1
Fixes PR pkg/52312: "Checking for fgrep" causes Fork bomb
From Naruaki Etomi
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/mk/tools/tools.OSF1.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 19 Jun 2017 06:35:07 +0000
State-Changed-Why:
Applied, thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.