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!
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!
FS#37556 - grep 2.15-1 dumps core with -P
Attached to Project:
Arch Linux
Opened by Nathan Trapuzzano (nbtrap) - Wednesday, 30 October 2013, 15:27 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 January 2014, 06:40 GMT
Opened by Nathan Trapuzzano (nbtrap) - Wednesday, 30 October 2013, 15:27 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 January 2014, 06:40 GMT
|
DetailsDescription:
Running grep with -P dumps core, usually after printing some matches. Steps to reproduce: grep -P foo -r $HOME |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 02 January 2014, 06:40 GMT
Reason for closing: Fixed
Additional comments about closing: grep-2.16 in [testing]
Thursday, 02 January 2014, 06:40 GMT
Reason for closing: Fixed
Additional comments about closing: grep-2.16 in [testing]
bisecting...
It seems that this commit forces utf-8 validation for all content in the search, so anything non-conforming (which you very likely encounter in a large enough search), aborts grep. trivial patch attached to at least start a conversation.
printf "\370" | grep -P x
Setting LC_ALL=C for grep helps avoid this bug in the mean time.
Upstream bug report: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15758
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=9a9b4c59babc60e15a79cf7db8167d42e68e44b9
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15758#19