Bug 1985484 - Regression with pcre2 10.37 in rawhide (missing upstream patch?)
Summary: Regression with pcre2 10.37 in rawhide (missing upstream patch?)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcre2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Javorsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1970765
TreeView+ depends on / blocked
 
Reported: 2021-07-23 16:53 UTC by Gary Buhrmaster
Modified: 2021-07-27 11:19 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-27 11:19:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gary Buhrmaster 2021-07-23 16:53:52 UTC
Description of problem:

pcre2 10.37 in rawhide has a regression with its (jit) matching results.


Version-Release number of selected component (if applicable): 10.37


How reproducible: 100%


Steps to Reproduce:
1. Install pcre2-tools
2. Run `pcre2test -jit`
3. At re> prompt, enter (with the quotes):
   "#(A+)#\d+"
4. At the data> prompt, enter:
   #A#A#0

Actual results:

"No Match" in rawhide (pcre2 10.37)


Expected results:

"#A#0" / "A" in Fedora34 (pcre2 10.36)


Additional info:

This appears to be related to upstream bug <https://bugs.exim.org/show_bug.cgi?id=2764> and other associated jit bugs referenced there, and should be fixed with pcre2 svn patch r1315

It should be noted that in https://bugzilla.redhat.com/show_bug.cgi?id=1965025#c1 mentioned the need to apply the upstream patches to 10.37 to avoid regressions (there was discussions about releasing a 10.38 by the pcre2 team to fix the regression, but as of now, it appears one will need to cherry pick any upstream patches).

Comment 1 Lukas Javorsky 2021-07-26 10:59:52 UTC
Yes, I will take a look into this one, before the update in Centos-9.

Thank you for reporting this issue.

Comment 2 Lukas Javorsky 2021-07-27 10:45:33 UTC
I've copied the upstream's patch r1315 and applied it in this PR:
https://src.fedoraproject.org/rpms/pcre2/pull-request/5

I've used the reproducer from the bug (which is working with the new patch):
printf '%s\n%s\n' '/(?P<prefix>:\/\/|^)(?P<user>[^:\/\s@]+):(?P<password>[^@\s\/]+)@/i' 'http://10a8f08e8d7b7b9:foo@example.org' | pcre2test -jit

Comment 3 Lukas Javorsky 2021-07-27 10:47:15 UTC
Scratch build (successful): https://koji.fedoraproject.org/koji/taskinfo?taskID=72735454

Comment 4 Lukas Javorsky 2021-07-27 11:19:25 UTC
The build is in Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=72739492

Closing this BZ


Note You need to log in before you can comment on or make changes to this bug.