pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52312: "Checking for fgrep" causes Fork bomb



>Number:         52312
>Category:       pkg
>Synopsis:       "Checking for fgrep" causes Fork bomb
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 15:50:00 +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



Home | Main Index | Thread Index | Old Index