Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport -> release/3.6.x] hotfix(deps): enable JIT support for pcre2 #12688

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

team-gateway-bot
Copy link
Collaborator

Automated backport to release/3.6.x, triggered by a label in #12464.

Original description

PCRE2 requires JIT support to be explicitly enabled during build. From https://pcre.org/current/doc/html/pcre2jit.html:

"JIT support is an optional feature of PCRE2. The "configure" option --enable-jit (or equivalent CMake option) must be set when PCRE2 is built if you want to use JIT."

Without the flag in this commit, Kong logs display several entries containing failures in pcre2_jit_compile, such as

2024/01/30 16:25:20 [info] 747309#0: pcre2_jit_compile() failed: -45 in "^\s*HTTP/1\.1\s+", ignored

PCRE2 requires JIT support to be explicitly enabled during build.
From https://pcre.org/current/doc/html/pcre2jit.html:

"JIT support is an optional feature of PCRE2. The "configure"
option --enable-jit (or equivalent CMake option) must be set when
PCRE2 is built if you want to use JIT."

Without the flag in this commit, Kong logs display several
entries containing failures in `pcre2_jit_compile`, such as

```
2024/01/30 16:25:20 [info] 747309#0: pcre2_jit_compile() failed: -45 in "^\s*HTTP/1\.1\s+", ignored
```

(cherry picked from commit cc25516)
@bungle bungle merged commit a4503a3 into release/3.6.x Mar 5, 2024
32 checks passed
@bungle bungle deleted the backport-12464-to-release/3.6.x branch March 5, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants