From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 20 22:30:03 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65A9816A4CE for ; Sun, 20 Mar 2005 22:30:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1804C43D1D for ; Sun, 20 Mar 2005 22:30:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2KMU297067212 for ; Sun, 20 Mar 2005 22:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2KMU2rS067211; Sun, 20 Mar 2005 22:30:02 GMT (envelope-from gnats) Resent-Date: Sun, 20 Mar 2005 22:30:02 GMT Resent-Message-Id: <200503202230.j2KMU2rS067211@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, martinko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FAB616A4CE for ; Sun, 20 Mar 2005 22:21:25 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CB3F43D39 for ; Sun, 20 Mar 2005 22:21:25 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2KMLOHa088108 for ; Sun, 20 Mar 2005 22:21:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j2KMLOqM088090; Sun, 20 Mar 2005 22:21:24 GMT (envelope-from nobody) Message-Id: <200503202221.j2KMLOqM088090@www.freebsd.org> Date: Sun, 20 Mar 2005 22:21:24 GMT From: martinko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/79063: grep(1) - strange behaviour (most likely a bug) -- `grep -i --colour ""` X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 22:30:03 -0000 >Number: 79063 >Category: bin >Synopsis: grep(1) - strange behaviour (most likely a bug) -- `grep -i --colour ""` >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: Sun Mar 20 22:30:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: martinko >Release: 5.3R-p5 >Organization: >Environment: FreeBSD mb-aw1n-bsd 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #5: Mon Feb 14 19:45:04 CET 2005 root@mb-aw1n-bsd:/usr/obj/usr/src/sys/MB-AW1N i386 >Description: `grep -i --colour ""` runs mad and seems to generate ansi escape codes in a (infinite?) loop. it happens only when using empty ("") search string and both parameters (-i and --colour) are used. pls find my orginal description below as posted to freebsd-questions mailing list. i also produced a typescript with script(1) which you may find under the 2nd link/post. http://lists.freebsd.org/pipermail/freebsd-questions/2005-March/081083.html http://lists.freebsd.org/pipermail/freebsd-questions/2005-March/081202.html >How-To-Repeat: just run the following: grep -i --colour "" as soon as you type the first letter it gets mad and soon you'll have a huge typescript file as you can see in the link above. codes/chars generated (as output on screen) seem to be random but i'm not sure about it. >Fix: sorry, i've no idea. but if you need my assistence just let me know pls. >Release-Note: >Audit-Trail: >Unformatted: