Project

General

Profile

Actions

Bug #11466

closed

PHP exits with signal 11 on SG-3100 when calling PCRE functions

Added by Marcos M almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PHP Interpreter
Target version:
Start date:
02/19/2021
Due date:
% Done:

0%

Estimated time:
Release Notes:
Default
Affected Plus Version:
21.02
Affected Architecture:
SG-3100

Description

After installing Snort and starting the service on an interface, fails to start and the following is reported on the system logs:

Feb 18 19:21:06 hostname snort[5625]: Commencing packet processing (pid=5625)
Feb 18 19:21:13 hostname kernel: pid 5625 (snort), jid 0, uid 0: exited on signal 10

on another SG3100 when trying to replicate the issue, it shows:

Feb 20 00:30:30     php     64883     [Snort] Updating rules configuration for: WAN ...
Feb 20 00:30:30     php     64883     [Snort] Enabling any flowbit-required rules for: WAN...
Feb 20 00:30:30     php     64883     [Snort] WARNING: Flowbit resolution not done - no rules in /usr/local/etc/snort/rules/ ...
Feb 20 00:30:30     php     64883     [Snort] Building new sid-msg.map file for WAN...
Feb 20 00:30:32     kernel         pid 64883 (php), jid 0, uid 0: exited on signal 11 (core dumped)

Further discussion here:
https://forum.netgate.com/topic/161050/snort-won-t-start-after-upgrade-to-21-02-on-sg-3100/5

This is possibly related to #11444
https://redmine.pfsense.org/issues/11444


Files

pfsense_bug_example.xml (27.3 KB) pfsense_bug_example.xml Arthur Wiebe, 05/19/2021 02:58 PM
patch-dynamic-pcre-recursion-limit.diff (932 Bytes) patch-dynamic-pcre-recursion-limit.diff Lower PCRE recursion limit based on stack size (doesn't prevent the crash -- but may aid in debugging) Jim Pingle, 06/03/2021 09:15 AM
patch-disable-pcrejit-arm.diff (493 Bytes) patch-disable-pcrejit-arm.diff Disable PCRE JIT compiler on 32-bit ARM platforms (works around the PHP crash) Jim Pingle, 06/03/2021 09:34 AM

Related issues

Related to Todo #12004: Disable PCRE JIT to work around PHP PCRE crashes on multi-core 32-bit ARM systemsResolvedJim Pingle06/07/2021

Actions
Actions

Also available in: Atom PDF