Opened 6 hours ago
Last modified 6 hours ago
#484 new defect
Apache crashes when using MapCache regex dimensions (PCRE2 access violation)
| Reported by: | dpelissiry | Owned by: | Jeff McKenna |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | MS4W - MapCache | Version: | 5.0.0 |
| Keywords: | Cc: | TC Haddad | |
| Blocked By: | Blocking: |
Description
When using MapCache regex dimensions on MS4W, both Apache (httpd.exe) and mapcache_seed consistently crash with an access violation in pcre2-8.dll. This reproduces on both a fresh MS4W install and an existing setup, and only occurs when regex dimensions are used. After digging into the MapCache source, it appears the PCRE2 code path for regex dimensions may be using uninitialized values when calling pcre2_compile and pcre2_match, which could explain the crashes. I was also wondering if there is an MS4W build available that uses the legacy PCRE instead of PCRE2, as a possible workaround.
Note:
See TracTickets
for help on using tickets.

thanks for the report @dpelissiry Also please be sure to test with MS4W 5.2.0-rc1 ( https://ms4w.com/release/experimental/ms4w_5.2.0_rc1.zip ) and update this ticket with those results (in other words, be sure to state here what MS4W version you are testing against).
Regarding using PCRE vs PCRE2, this issue may require a fix in the MapCache source and then I can issue an updated MS4W 5.2.0-rc2 release.
Will examine more post-New-Years "celebrations".
PS. if you are able, you can submit your MapCache pull request at https://github.com/MapServer/mapcache
thanks again.