Page MenuHomePhabricator

Disable PHP config option "pcre.jit" to work around PCRE segfault after "fork()"
ClosedPublic

Authored by epriestley on May 23 2019, 11:36 PM.
Tags
None
Referenced Files
F18744999: D20554.id49031.diff
Fri, Oct 3, 4:54 AM
F18740397: D20554.diff
Thu, Oct 2, 2:28 AM
F18738297: D20554.id.diff
Wed, Oct 1, 3:01 PM
F18733972: D20554.id.diff
Tue, Sep 30, 10:45 PM
F18673757: D20554.diff
Thu, Sep 25, 11:54 AM
F18580708: D20554.diff
Thu, Sep 11, 4:22 AM
F18580683: D20554.diff
Thu, Sep 11, 4:18 AM
F18580658: D20554.diff
Thu, Sep 11, 4:13 AM
Subscribers
None

Details

Summary

Ref T13296. On macOS with PHP 7.3.x, PCRE can segfault during calls to "preg_match()" or during process shutdown.

Disabling "pcre.jit" appears to work around this issue. Some casual Googling suggests that the JIT does not dramatically improve performance (~10%?) and we aren't PCRE-bound anyway, so prefer "not crashing" over "questionable performance improvements" on all systems for now.

Test Plan
  • See T13296 for details.
  • Ran bin/phd start on macOS with PHP 7.3.1.
  • Before patch: daemons don't actually start.
  • After patch: daemons start.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable