Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78055 - [grep] v3.10 PCRE regression

Attached to Project: Arch Linux
Opened by binhex (binhex) - Thursday, 30 March 2023, 16:32 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 15 May 2023, 20:42 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
grep v3.10 is broken when attempting to match non digit characters in a string

Additional info:
* package version(s) 3.10
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

# The below should result in a match of 'dev tun', instead for grep v3.10 this results in no match,
# if you downgrade grep to 3.9 or 3.8 (other older versions may also work - untested) then grep
# matches and the output 'dev tun' is shown as expected.
echo 'dev tun123' | grep -P -o -m 1 '[^\d]+'
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Monday, 15 May 2023, 20:42 GMT
Reason for closing:  Upstream
Additional comments about closing:  fixed 3.11
Comment by Yuri Cherio (cherio) - Friday, 31 March 2023, 02:15 GMT
Because this is such a ubiquitous utility, the severity of this bug must be "High" at minimum
Comment by Toolybird (Toolybird) - Friday, 31 March 2023, 02:36 GMT
This needs to be reported upstream...which it looks like it has already [1]

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62552
Comment by binhex (binhex) - Friday, 31 March 2023, 07:53 GMT
Hi Toolybird, thanks for the reply, yes I did raise the bug upstream as well as on here as I wasn't too sure if you would raise the bug upstream on my behalf or not.
Comment by Khang Phan (khangp0000) - Sunday, 02 April 2023, 17:33 GMT
New to issue. I also notice a bigger issue is that any square bracket containing `\d` will break. for example:
```
echo "abcd" | grep -P "^[a-z\\d]*$"
```

I can see this break multiple bash script silently so may need a higher priority. One think I know broken is PiHole add custom dns function.
Comment by Toolybird (Toolybird) - Sunday, 02 April 2023, 22:54 GMT
Upstream are well and truly aware of the problem [1]

[1] https://lists.gnu.org/r/bug-grep/2023-04/msg00001.html
Comment by loqs (loqs) - Wednesday, 10 May 2023, 17:26 GMT

Loading...