You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Doug Whitfield <dw...@perforce.com> on 2022/02/14 19:57:04 UTC

PCRE2 compatibility

Hi folks,

Apologies is this is better suited for the user mailing list, but I’m digging into the source do thought this might be best. I have read a number of reports that pcre2 is not compatible with httpd.

However, it looks like pcre2 code went in in 2016: https://github.com/apache/httpd/blob/12cfcf08fffc6e4ec597e0396016d09afdb89fa8/server/util_pcre.c

Is pcre2 incompatible? Is there a specific set of circumstance where individuals are running into this issue?

Best Regards,
--

Doug Whitfield | Enterprise Architect, OpenLogic
Perforce Software




This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


Re: PCRE2 compatibility

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 14/02/2022 à 21:14, Doug Whitfield a écrit :
> Thanks Jeff, this is exactly what I am talking about!
> 
> I see that there are some patches out that purport to fix this. Does 
> anybody know if those work and if they are ever going to get merged 
> since pcre is defunct?
> 
> I saw references to some pcre backports on a httpd mailing list last 
> week (I think dev, but I wouldn’t swear to it). I’m not sure if those 
> were related or not.
> 
> 

Hi,

PCRE2 has been added in trunk some time ago.
It has never reached the 2.4.x branch so far because of a performance 
issue related to memory allocation.

The backport to 2.4.x has re-surfaced a few weeks or months ago and some 
proposals to workaround the performance issue have also been proposed.

A backport for 2.4.x has been voted, but not merged yet.
A set of patches have been merged in trunk for the performance issue. 
AFAIK some testing on Windows would be welcomed.

So, yes, PCRE2 *should* be usable with the next version oh httpd, even 
if some performance tuning are merged later on.

CJ

Re: PCRE2 compatibility

Posted by Doug Whitfield <dw...@perforce.com>.
Thanks Jeff, this is exactly what I am talking about!

I see that there are some patches out that purport to fix this. Does anybody know if those work and if they are ever going to get merged since pcre is defunct?

I saw references to some pcre backports on a httpd mailing list last week (I think dev, but I wouldn’t swear to it). I’m not sure if those were related or not.

Best Regards,
--

Doug Whitfield | Enterprise Architect, OpenLogic



From: Jeff McKenna <jm...@gatewaygeomatics.com>
Date: Monday, February 14, 2022 at 2:11 PM
To: dev@httpd.apache.org <de...@httpd.apache.org>
Subject: Re: PCRE2 compatibility
Hi Doug,

If by "incompatible" you mean to ask if one can point to PCRE2 with
CMake with Apache 2.4.51 & build successfully, I can tell you that yes
it is incompatible, I was not able to build 2.4.51 with PCRE2 through
CMake, with Visual Studio 2019.

(at the time I found many reporting this online, and a long list of
"workarounds", not easy to implement, so for my distribution I chose to
remain at PCRE 8.45, for now, unfortunately)

Thanks,

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgatewaygeo.com%2F&amp;data=04%7C01%7Cdwhitfield%40perforce.com%7C811b1090dc9e4d504a4408d9eff605f4%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C637804662810336546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=oK59ByLjBZ%2BNDQbZgoNQY3d07HgvEtS7CgwPAzkePvQ%3D&amp;reserved=0




On 2022-02-14 3:57 p.m., Doug Whitfield wrote:
> Hi folks,
>
> Apologies is this is better suited for the user mailing list, but I’m
> digging into the source do thought this might be best. I have read a
> number of reports that pcre2 is not compatible with httpd.
>
>
> However, it looks like pcre2 code went in in 2016:
> https://github.com/apache/httpd/blob/12cfcf08fffc6e4ec597e0396016d09afdb89fa8/server/util_pcre.c
>
> Is pcre2 incompatible? Is there a specific set of circumstance where
> individuals are running into this issue?
>
> Best Regards,
>
> --
>
>
>
> *Doug Whitfield | Enterprise Architect, **_OpenLogic_*
>
> _Perforce Software_
>
>
> This e-mail may contain information that is privileged or confidential.
> If you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>



CAUTION: This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


Re: PCRE2 compatibility

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 14/02/2022 à 21:10, Jeff McKenna a écrit :
> Hi Doug,
> 
> If by "incompatible" you mean to ask if one can point to PCRE2 with 
> CMake with Apache 2.4.51 & build successfully, I can tell you that yes 
> it is incompatible, I was not able to build 2.4.51 with PCRE2 through 
> CMake, with Visual Studio 2019.
> 
> (at the time I found many reporting this online, and a long list of 
> "workarounds", not easy to implement, so for my distribution I chose to 
> remain at PCRE 8.45, for now, unfortunately)
> 
> Thanks,
> 
> -jeff
> 

Hi jeff,

if you can build and test on Windows, it would be great if you can try 
to apply patches listed in [1], build and test :).

In this link, you'll see another patch ([2]) to fix the performance issue.

So building and testing with [2] as well would be much appreciated :).


CJ

[1]: 
https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?revision=1897901&view=markup#l147

[2]: https://github.com/apache/httpd/pull/289       or
 
https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?revision=1897901&view=markup#l228


Re: PCRE2 compatibility

Posted by Jeff McKenna <jm...@gatewaygeomatics.com>.
Hi Doug,

If by "incompatible" you mean to ask if one can point to PCRE2 with 
CMake with Apache 2.4.51 & build successfully, I can tell you that yes 
it is incompatible, I was not able to build 2.4.51 with PCRE2 through 
CMake, with Visual Studio 2019.

(at the time I found many reporting this online, and a long list of 
"workarounds", not easy to implement, so for my distribution I chose to 
remain at PCRE 8.45, for now, unfortunately)

Thanks,

-jeff


-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-02-14 3:57 p.m., Doug Whitfield wrote:
> Hi folks,
> 
> Apologies is this is better suited for the user mailing list, but I’m 
> digging into the source do thought this might be best. I have read a 
> number of reports that pcre2 is not compatible with httpd.
> 
> 
> However, it looks like pcre2 code went in in 2016: 
> https://github.com/apache/httpd/blob/12cfcf08fffc6e4ec597e0396016d09afdb89fa8/server/util_pcre.c
> 
> Is pcre2 incompatible? Is there a specific set of circumstance where 
> individuals are running into this issue?
> 
> Best Regards,
> 
> -- 
> 
> 	
> 
> *Doug Whitfield | Enterprise Architect, **_OpenLogic_*
> 
> _Perforce Software_
> 
> 
> This e-mail may contain information that is privileged or confidential. 
> If you are not the intended recipient, please delete the e-mail and any 
> attachments and notify us immediately.
> 
>