git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] grep: under --debug, show whether PCRE JIT is enabled

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 27, 2019, 19:43 UTC
Message-ID
<xmqqzhju2y4b.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAPUEspj4BJLjXorUXMiZnFtNcmhym_2QL5GUqeaGaCoxk=zjtw@mail.gmail.com>
Carlo Arenas <carenas@gmail.com> writes:
Show 12 quoted lines
>> > ... but
>> > ab/pcre-jit-fixes and UTF-8 validation are likely to make that more
>> > difficult (even if it is a mostly self inflicted wound AFAIK)
>> ...
>  for example 685668faaa (grep: stop using a custom JIT stack with PCRE
> v1, 2019-07-26) adds 2 regressions as discussed in [1]
>
> * git grep -P will now throw an error if there are non UTF-8 documents
> in the haystack (even if JIT is available)
> * git grep -P '^([/](?!/)|[^/])*~/.*' will now fail with a cryptic
> PCRE error instead of succeeding (but at least will be consistent and
> show the same error with PCRE2)

Thanks. This was exactly the kind of thing I wanted to hear when I asked if ab/pcre-jit-fixes is a good base to further build on.

As far as I am concerned, ab/pcre-jit-fixes and anything pcre that are still in flight are fair game for a reboot during this cycle (I hope I did not merge any of them to 'next' by mistake yet). If there are bad apples queued on 'pu', let's make sure we eject them and rethink the way to address the issue(s) they wanted to address.

Previous: Carlo Arenas
Message 8 of 8 in “grep: under --debug, show whether PCRE JIT is enabled”
  1. grep: under --debug, show whether PCRE JIT is enabledBeat Bolli, Aug 18, 2019
  2. Junio C HamanoAug 19, 2019
  3. Carlo ArenasAug 24, 2019
  4. Johannes SchindelinAug 26, 2019
  5. Carlo ArenasAug 26, 2019
  6. Junio C HamanoAug 26, 2019
  7. Carlo ArenasAug 26, 2019
  8. Junio C HamanoAug 27, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.