Bug #10249
closedSyntax error in filter.inc with 2.4.5.r.20200210.1126 introduced in revision a3ab75ba7d9632eba2dee0d2a1d986949d207ce4
0%
Description
Here is the crash report:
Crash report begins. Anonymous machine information:
amd64
11.3-STABLE
FreeBSD 11.3-STABLE #93 54b0ad59490(RELENG_2_4_5): Mon Feb 10 11:27:17 EST 2020 root@buildbot2-nyi.netgate.com:/build/ce-crossbuild-245/obj/amd64/IuZS8Bew/build/ce-crossbuild-245/sources/FreeBSD-src/sys/pfSenseCrash report details:
PHP Errors:
[10-Feb-2020 18:40:32 Europe/Berlin] PHP Parse error: syntax error, unexpected ']' in /etc/inc/filter.inc on line 2390
[10-Feb-2020 18:42:05 Europe/Berlin] PHP Parse error: syntax error, unexpected ']' in /etc/inc/filter.inc on line 2391
This prevents a normal boot and requires shell access to fix.
Updated by Jim Pingle almost 5 years ago
- Status changed from New to Duplicate
- Assignee set to Jim Pingle
Fixed on #10246
Updated by Grimson Gretzleburg almost 5 years ago
Jim Pingle wrote:
Fixed on #10246
Nope you introduced a new syntax error that prevents filter.inc from working and pfSense from fully starting up. See lines 2390 and 2391:
if ($dstaddr_port[count($dstaddr_port)-1]]) {
$dstaddr_reflect .= " port " . $dstaddr_port[count($dstaddr_port)-1]];
it should be:
if ($dstaddr_port[count($dstaddr_port)-1]) {
$dstaddr_reflect .= " port " . $dstaddr_port[count($dstaddr_port)-1];
Edit ok now #10246 shows newer commits fixing the issue. You might want to remove the above 2.4.5.r.20200210.1126 snapshot or put up a warning on the forums/reddit.
Updated by Jim Pingle almost 5 years ago
Check the issue again. There is a later commit which corrects the error.