Bug 255018

Summary: devel/pcre2 apparently incompatible with sysctl kern.elf64.allow_wx=0
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: Kirill Ponomarev <krion>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (krion)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ed Maste freebsd_committer 2021-04-12 20:48:05 UTC
With the kern.elf64.allow_wx sysctl set to 0 (disabling simultaneously W+X memory) pcre2 fails, as observed e.g. via `git log`

$ git log --author=imp
fatal: Couldn't JIT the PCRE2 pattern 'imp', got '-48'

I'm opening this PR to track the issue as we try to figure out how to deploy mitigations like this more widely, but do not yet have a suggestion on a path to addressing this.