From owner-freebsd-current@FreeBSD.ORG Tue Aug 19 18:23:22 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997FE106567B for ; Tue, 19 Aug 2008 18:23:22 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id 271C28FC0A for ; Tue, 19 Aug 2008 18:23:21 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so53103nfh.33 for ; Tue, 19 Aug 2008 11:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=XXQjqa78l7eaAlvpoH4NS+dmZ+AFAV+EP7LtN/4t7jg=; b=qkeFDA9kOAU7/K/TR7aD/Q7B8E8HfuzurXCpXDtBOzf599pReNysgjmNi8ZJhWPPSG 1DGgaLqq9PlZWhTgt3xFzM1AncOnuAJW7DzIllYFOShy5q0KqaBVFNu4VJf8E0gm+TEo zUH+1N7aYf6OFPbBnSrEmTQFiCjNCy7FM5DI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=kuPvCi72mGPg3CFCciwsigfLxVA8cKIBKyljMlBjE+qd/754Jw87EfPapLupmW1xgk zJa4CcIntptWAgxaGbIJ38n1rahXt36v+U75fs5YK9etFDro85ThhiyoTchJdT3JUmYO 5EZrfF7wjUOV+gpJz8NBfzxdWy1BlvUG0R8qQ= Received: by 10.210.58.17 with SMTP id g17mr10208149eba.108.1219170200531; Tue, 19 Aug 2008 11:23:20 -0700 (PDT) Received: from darklight.homeunix.org ( [194.186.18.13]) by mx.google.com with ESMTPS id u14sm2029054gvf.6.2008.08.19.11.23.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Aug 2008 11:23:19 -0700 (PDT) Received: from darklight.homeunix.org (darklight.homeunix.org [127.0.0.1]) by darklight.homeunix.org (8.14.2/8.14.2) with ESMTP id m7JIN2ji010837; Tue, 19 Aug 2008 22:23:03 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.homeunix.org (8.14.2/8.14.2/Submit) id m7JIN1eh010836; Tue, 19 Aug 2008 22:23:01 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.homeunix.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Tue, 19 Aug 2008 22:23:01 +0400 From: Yuri Pankov To: Stanislav Sedov Message-ID: <20080819182301.GA6483@darklight.homeunix.org> References: <20080819055055.GC1758@darklight.homeunix.org> <20080819104923.b2274b5e.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080819104923.b2274b5e.stas@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@freebsd.org Subject: Re: regex regression? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 18:23:22 -0000 On Tue, Aug 19, 2008 at 10:49:23AM +0400, Stanislav Sedov wrote: > On Tue, 19 Aug 2008 09:50:55 +0400 > Yuri Pankov mentioned: > > > Hi, > > > > Looks like regcomp() doesn't detect invalid backreferences on > > -CURRENT, though it works normally on 6.3-RELEASE. > > > > simple testcase: > > > > 6.3-RELEASE: > > $ echo test | sed 's/test/\1/' > > sed: 1: "s/test/\1/": \1 not defined in the RE > > > > -CURRENT: > > $ echo test | sed 's/test/\1/' > > Segmentation fault (core dumped) > > > > 7-STABLE is also affected. Seems that regression was in r171284. > > -- > Stanislav Sedov > ST4096-RIPE Heh, I'm making wrong assumptions again. Sorry. Yuri