From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 2 16:22:54 2007 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A033E16A40E for ; Mon, 2 Apr 2007 16:22:54 +0000 (UTC) (envelope-from s.behrens@kon.de) Received: from mail.kon.de (mail.kon.de [81.88.34.125]) by mx1.freebsd.org (Postfix) with ESMTP id 65E3F13C4BE for ; Mon, 2 Apr 2007 16:22:54 +0000 (UTC) (envelope-from s.behrens@kon.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.kon.de (Postfix) with ESMTP id F2800400F77E1 for ; Mon, 2 Apr 2007 18:22:51 +0200 (CEST) X-Virus-Scanned: spam-virus-check at kon.de Received: from mail.kon.de ([127.0.0.1]) by localhost (mail.kon.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id n1u9dI8vtZ2t; Mon, 2 Apr 2007 18:22:51 +0200 (CEST) Received: from [192.168.0.4] (dslb-084-060-033-091.pools.arcor-ip.net [84.60.33.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kon.de (Postfix) with ESMTP id 366B8400B8890; Mon, 2 Apr 2007 18:22:51 +0200 (CEST) Message-ID: <46112DDF.2050706@kon.de> Date: Mon, 02 Apr 2007 18:22:55 +0200 From: Stan Behrens User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Stan Behrens References: <4610F941.3080009@kon.de> In-Reply-To: <4610F941.3080009@kon.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@freebsd.org Subject: Re: 6.2-STABLE / grep / Segmentation fault X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 16:22:54 -0000 Hi, With some help of a friend, the problem was reduced to: > cat >test.txt a .b a .c > grep -m 1 -A 99 '^a .b$' test.txt a .b Segmentation fault (core dumped) Backtrace is: (gdb) bt #0 0x0804de4d in dfaexec (d=0x8059a40, begin=0x8062005 "a .c\n", size=4160348156, backref=0xbfbfe680) at dfa.c:2854 #1 0x08053a1e in EGexecute (buf=0x8062005 "a .c\n", size=4, match_size=0x1, exact=0) at search.c:430 #2 0x0804f8f0 in prpending (lim=0x806200a "") at grep.c:672 #3 0x08050366 in grepfile (file=0xbfbfea71 "test.txt", stats=0x8059680) at grep.c:887 #4 0x080514d7 in main (argc=7, argv=0xbfbfe944) at grep.c:1850 He also told me that this crash happens on Linux too, so I will open a bugreport at gnu.org Bye.