Project

General

Profile

Actions

Todo #12004

closed

Disable PCRE JIT to work around PHP PCRE crashes on multi-core 32-bit ARM systems

Added by Jim Pingle over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
PHP Interpreter
Target version:
Start date:
06/07/2021
Due date:
% Done:

100%

Estimated time:
Release Notes:
Default

Description

Currently, PHP crashes on multi-core 32-bit ARM systems (SG-3100) with certain PCRE calls, as documented on #11466, #11605, and #11551.

Disabling PCRE JIT works around the crashes, but is not a permanent solution to the problem.

The attached patch disables PCRE JIT and can be applied to affected systems using the System Patches package to work around the problem until a proper long-term fix is identified.

I have already committed a variation of the patch which specifically disables JIT only on multi-core 32-bit ARM systems, this issue is for tracking and so it can be shown in release notes.

When using the System Patches package to apply the fix, use the direct URL to download the patch file: https://redmine.pfsense.org/attachments/download/3715/patch-disable-pcrejit-arm.diff . After fetching and applying the patch, reboot the unit.


Files

patch-disable-pcrejit-arm.diff (493 Bytes) patch-disable-pcrejit-arm.diff Jim Pingle, 06/07/2021 07:59 AM

Related issues

Related to Bug #11466: PHP exits with signal 11 on SG-3100 when calling PCRE functionsClosedJim Pingle02/19/2021

Actions
Actions

Also available in: Atom PDF