Bug 1985484

Summary: Regression with pcre2 10.37 in rawhide (missing upstream patch?)
Product: [Fedora] Fedora Reporter: Gary Buhrmaster <gary.buhrmaster>
Component: pcre2Assignee: Lukas Javorsky <ljavorsk>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, ljavorsk, mschorm, sauchter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 11:19:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1970765    

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