GNU bug report logs - #62552
Bug found in latest stable release v3.10 of grep

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Reported by: mega lith01 <megalith01@HIDDEN>; Keywords: patch; merged with #60690, #62605; dated Thu, 30 Mar 2023 20:01:02 UTC; Maintainer for grep is bug-grep@HIDDEN.
Merged 60690 62552 62605. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 62552 62605. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 62552 <at> debbugs.gnu.org:


Received: (at 62552) by debbugs.gnu.org; 31 Mar 2023 14:17:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 31 10:17:04 2023
Received: from localhost ([127.0.0.1]:34124 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1piFYu-0005KT-GN
	for submit <at> debbugs.gnu.org; Fri, 31 Mar 2023 10:17:04 -0400
Received: from mail-ot1-f54.google.com ([209.85.210.54]:43982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <noloader@HIDDEN>) id 1piFYr-0005Jo-Fr
 for 62552 <at> debbugs.gnu.org; Fri, 31 Mar 2023 10:17:03 -0400
Received: by mail-ot1-f54.google.com with SMTP id
 k14-20020a9d700e000000b0069faa923e7eso11874084otj.10
 for <62552 <at> debbugs.gnu.org>; Fri, 31 Mar 2023 07:17:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1680272216;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :reply-to:in-reply-to:references:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=ddGcy0Cu6HV+vvQqrknZzHgAzaTJ6oUN/jpg/NxCvXo=;
 b=LfgnJuv+qIQWfgUedwP7W2Hw+8U8sg7Cf4Xms3Rmq7jqYZf6DtnxT7AHzbzGUBvujV
 oFn1UPDbz0zIZP2ZK6G9Jn/WNtE6mG42O2T5iQsmeR7YmW4F9LdkSeZuXUp1+EjUKcVm
 05LlC0SIMUbzFRJf9k+RP1mkt26A5hxWXp8IpwzbyqJgEUMrcTPuPysu0lG0q2IJ3PF4
 sAEUdWOMfqxxaCys8HDJGNapfyQtuI3o+/+jEPMDl651bqYhtSgHtDpNXy5y/AE+uHnx
 xzC8Q+FXMA7OyAkrHRbD3Z2iQC3+F1oYlfSthVkyosSYPj2XZFmRNTe127HpxRAZPMHw
 EYaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1680272216;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :reply-to:in-reply-to:references:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=ddGcy0Cu6HV+vvQqrknZzHgAzaTJ6oUN/jpg/NxCvXo=;
 b=ie5voil1dQC/tWcTkB+75u0BGSoIc9dnLCdtoE9ngnT3bsxsHtSmhrU2+pupXTQOU+
 yJZ7B/IxxOs6rV1vwA7CZKVGGEZ4lze+79U3/gniC8q1NlPMiit1+TxzvmF9SbYpIQhG
 7abPaWiI2oXxNSjjVp5w9afUlkX+98l+gVH0yH3EABt6PJOfS0wgPSOpgi1p4x6T852I
 +cL+K+HFkHCzyLz/kxkmBEOFW3ZjnoRboB9zeX08aD+s9WUCod09ZoJf0JcHz9a/n4NI
 c4earvQPWUvtSokNh0En0xwk3vwiLsaGrOlWwJiNhcNasWDNvHOBoUkMP5HaIKZWUy+G
 mjHA==
X-Gm-Message-State: AO0yUKX+pMfHyL2amAlb3AZKHmBNGuo76CCnLY63UycXQpYK03nCDWAl
 q8FFHwf6IgXfM0VFNqdbvY8OelcE6gK5O6+M8uk=
X-Google-Smtp-Source: AK7set8uWfuGwplOr0NL32AGNh1fLjaunOHHjgKcworNwNRmxHF7RTrURxINtMtgVtZS45LUiA/ka5Ogs8sfOSyqn08=
X-Received: by 2002:a9d:6a5a:0:b0:69f:8fa8:1a4f with SMTP id
 h26-20020a9d6a5a000000b0069f8fa81a4fmr8881966otn.2.1680272215734; Fri, 31 Mar
 2023 07:16:55 -0700 (PDT)
MIME-Version: 1.0
References: <CAAHJQVKZXyL8y4Y85uQO2gB209Gk_u6LsuUCL3+EVfpovy=i8w@HIDDEN>
In-Reply-To: <CAAHJQVKZXyL8y4Y85uQO2gB209Gk_u6LsuUCL3+EVfpovy=i8w@HIDDEN>
From: Jeffrey Walton <noloader@HIDDEN>
Date: Fri, 31 Mar 2023 10:16:44 -0400
Message-ID: <CAH8yC8m5GCFuLrwhQY=s56H72H1vj9hcpZyXHGfG2=OSo6BrVA@HIDDEN>
Subject: Re: bug#62552: Bug found in latest stable release v3.10 of grep
To: mega lith01 <megalith01@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 62552
Cc: 62552 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: noloader@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, Mar 30, 2023 at 4:01=E2=80=AFPM mega lith01 <megalith01@HIDDEN> =
wrote:
>
> Hi, i have identified what looks to be a bug in grep v3.10, the bug is no=
t
> present in v3.8 or v3.9, to reproduce the bug please see the attached bas=
h
> script.
>
> The bug looks related to the use of the regex [^\d]+ which then ends up
> resulting in no match.
>
> If you need any more details then please let me know, I am very keen to g=
et
> this bug squashed as I make heavy use of grep in my scripts.

This appears to be an issue caused by PCRE2. The GNU Grep folks have
been discussing it on their mailing list. See "Possible regression in
grep 3.10", https://lists.gnu.org/archive/html/grep-devel/2023-03/msg00017.=
html.

Jeff




Information forwarded to bug-grep@HIDDEN:
bug#62552; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 20:00:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 30 16:00:12 2023
Received: from localhost ([127.0.0.1]:59481 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1phyRQ-0003fH-3z
	for submit <at> debbugs.gnu.org; Thu, 30 Mar 2023 16:00:12 -0400
Received: from lists.gnu.org ([209.51.188.17]:33632)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <megalith01@HIDDEN>) id 1phuim-0003ZB-3J
 for submit <at> debbugs.gnu.org; Thu, 30 Mar 2023 12:01:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <megalith01@HIDDEN>)
 id 1phuii-00057D-0o
 for bug-grep@HIDDEN; Thu, 30 Mar 2023 12:01:49 -0400
Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <megalith01@HIDDEN>)
 id 1phuid-0004fc-QJ
 for bug-grep@HIDDEN; Thu, 30 Mar 2023 12:01:46 -0400
Received: by mail-lj1-x235.google.com with SMTP id 20so20160838lju.0
 for <bug-grep@HIDDEN>; Thu, 30 Mar 2023 09:01:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1680192099;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=HryUo9VYli7UCLtdv7izga1i06IZuu2H9e5f9xuuyWE=;
 b=SJnGaHyWVWOk5x70m9tEyQaoK6vfXG+br8zJedNOyXZgmP9SNVzxvjevaslfoRT2DG
 hFNetrqBne+WtXOs0IRIsvnlZQ0FmSlV5tv3OoooTTZfs5rdBNwlQn7TUTLcQL5hfU7E
 5GbSKngHQ3lzRN4GcMFClvKsKHpFwJyJI5M2Ng+erbrZ2OFV1uuO19JvCovjqUpn1swB
 XOwcQcvfsdHquArO7DX2fVkVHvA7BTu3bvHZFoL3p9QOlTDB6l12UEnXaTphrL3BEOmj
 jbwUmNqGNP6mmhY77SMyw30Jc6Um7CgMEmQeUNGeGvVg1H5RHJfL79l3cN2OmElBk5hQ
 R5Iw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1680192099;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=HryUo9VYli7UCLtdv7izga1i06IZuu2H9e5f9xuuyWE=;
 b=B2zpDRwsp5WUEBPFTMSM1sqKIzpk1X0nAYSdPuIxsQel0grDI10zuwvcuYH5V+jHSs
 NdHhV7SlExosI4nHXVxKIroITCcfzjBFaQDoa3Gx/WKJ6fEj1tHO8mAORxcXri+clXbA
 AUDwUC/vkK8bb0HZ2M6/n+VJuACsoqCK3dP7E67Z0ZW/YmAgnk5k1gYtepjtRldyBIHa
 NFh2rwbF1rm+cvu2mWt74tvpfQdTRD3WfU/Qh4Y1+8ZaVyVhTXQKn4a9i9M1sF0WQLBj
 gAk3w22ybb6gp+M/iEPcmcLZTFjaWUNr9CdFIAzuBdcqVkwTS8h6I6gcolMp3DJSyquK
 jjkw==
X-Gm-Message-State: AAQBX9fNyPfEVktAObq52dGCPttgh5ShoTuzokNiyqmngsBqFJty68fM
 784fIbi4BSL1Iv/xayoukAO6R+1TnEDjSm9hipBahbL4
X-Google-Smtp-Source: AKy350aFX83EA9AXQnROccoeTtZKiypjP0msCiJ0gjPLKiMAMJuR/pIueEKZlvqZLUsW2ALFSsiGeEzwUAe80LSVvK8=
X-Received: by 2002:a2e:a0c7:0:b0:29a:4cf:4bec with SMTP id
 f7-20020a2ea0c7000000b0029a04cf4becmr7357199ljm.7.1680192099478; Thu, 30 Mar
 2023 09:01:39 -0700 (PDT)
MIME-Version: 1.0
From: mega lith01 <megalith01@HIDDEN>
Date: Thu, 30 Mar 2023 17:01:27 +0100
Message-ID: <CAAHJQVKZXyL8y4Y85uQO2gB209Gk_u6LsuUCL3+EVfpovy=i8w@HIDDEN>
Subject: Bug found in latest stable release v3.10 of grep
To: bug-grep@HIDDEN
Content-Type: multipart/mixed; boundary="0000000000003e805f05f82035f2"
Received-SPF: pass client-ip=2a00:1450:4864:20::235;
 envelope-from=megalith01@HIDDEN; helo=mail-lj1-x235.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 30 Mar 2023 16:00:11 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--0000000000003e805f05f82035f2
Content-Type: multipart/alternative; boundary="0000000000003e805e05f82035f0"

--0000000000003e805e05f82035f0
Content-Type: text/plain; charset="UTF-8"

Hi, i have identified what looks to be a bug in grep v3.10, the bug is not
present in v3.8 or v3.9, to reproduce the bug please see the attached bash
script.

The bug looks related to the use of the regex [^\d]+ which then ends up
resulting in no match.

If you need any more details then please let me know, I am very keen to get
this bug squashed as I make heavy use of grep in my scripts.

Many Thanks!.

--0000000000003e805e05f82035f0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi, i have identified what looks to be a bug in grep v3.10=
, the bug is not present in v3.8 or v3.9, to reproduce the bug please see t=
he attached bash script.<div><br></div><div>The bug looks related to the us=
e of the regex [^\d]+ which=C2=A0then ends up resulting in no match.</div><=
div><br></div><div>If you=C2=A0need any more details then please=C2=A0let m=
e know, I am very keen to get this bug squashed as I make heavy use of grep=
 in my scripts.</div><div><br></div><div>Many Thanks!.</div></div>

--0000000000003e805e05f82035f0--

--0000000000003e805f05f82035f2
Content-Type: text/x-sh; charset="US-ASCII"; name="grep-310-bug.sh"
Content-Disposition: attachment; filename="grep-310-bug.sh"
Content-Transfer-Encoding: base64
Content-ID: <f_lfvaz0h60>
X-Attachment-Id: f_lfvaz0h60

IyEvYmluL2Jhc2gKCiMgc2NyaXB0IHRvIGRlbW9uc3RyYXRlIGJ1ZyB3aXRoIGdyZXAgdjMuMTAs
IHYzLjkgYW5kIHYzLjggY29ycmVjdGx5IG1hdGNoIHRoZSBleHBlY3RlZCBzdHJpbmcKCmdyZXBf
c3RyaW5nPSQoZWNobyAnZGV2IHR1bjEyMycgfCBncmVwIC1QIC1vIC1tIDEgJ1teXGRdKycpCmVj
aG8gImV4cGVjdGVkIHN0cmluZyBtYXRjaGVkIGlzICdkZXYgdHVuJyBhY3R1YWwgc3RyaW5nIG1h
dGNoZWQgaXMgJyR7Z3JlcF9zdHJpbmd9JyIK
--0000000000003e805f05f82035f2--




Acknowledgement sent to mega lith01 <megalith01@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#62552; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 3 Apr 2023 21:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.