From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 22 14:35:47 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E204D29 for ; Mon, 22 Sep 2014 14:35:47 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B9D5FCC for ; Mon, 22 Sep 2014 14:35:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8MEZlSE046308 for ; Mon, 22 Sep 2014 14:35:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193835] bug in grep with -m and -A Date: Mon, 22 Sep 2014 14:35:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: gnu X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vg@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 14:35:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193835 Veniamin Gvozdikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vg@FreeBSD.org --- Comment #2 from Veniamin Gvozdikov --- Copied gdb output from link, because it will expired through 1 day. main:[~] %> gdb grep GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) r -m 1 -A 2 -e '^$' text.test Starting program: /usr/bin/grep -m 1 -A 2 -e '^$' text.test (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x0000000800fb1a60 in memchr () from /lib/libc.so.7 (gdb) thread apply all bt (gdb) bt #0 0x0000000800fb1a60 in memchr () from /lib/libc.so.7 #1 0x000000000040ff92 in ?? () #2 0x000000000040d090 in ?? () #3 0x000000000040c5c9 in ?? () #4 0x000000000040bd52 in ?? () #5 0x000000000040260f in ?? () #6 0x0000000800633000 in ?? () #7 0x0000000000000000 in ?? () (gdb) f 0 #0 0x0000000800fb1a60 in memchr () from /lib/libc.so.7 (gdb) -- You are receiving this mail because: You are the assignee for the bug.