bin/180937: fgrep stalls when a file contains null character

YAMAGUCHI Takanori y at maya.st
Tue Jul 30 06:50:00 UTC 2013


>Number:         180937
>Category:       bin
>Synopsis:       fgrep stalls when a file contains null character
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 30 06:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     YAMAGUCHI Takanori
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
>Description:
"fgrep -i numeric_or_symbol" or "grep -F -i numeric_or_symbol" stalls
when a file contains null character.

"fgrep -i alphabet_only" does not stall.
fgrep without -i does not.
grep, egrep and original GNU fgrep (ports/textproc/gnugrep) does not.

>How-To-Repeat:
dd if=/dev/zero bs=1 count=1 | fgrep -i 1

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list