Project

General

Profile

Actions

Bug #9840

closed

PHP7: Uninitialised array in upgrade_config.inc

Added by Steve Wheeler over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Upgrade
Target version:
Start date:
10/21/2019
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4-p3
Affected Architecture:
All

Description

Interfaces set to trackv6 against an interface that does not have an IPv6 config trigger this:

Crash report begins.  Anonymous machine information:

amd64
11.2-RELEASE-p10
FreeBSD 11.2-RELEASE-p10 #9 10fea60fdde(factory-RELENG_2_4_4): Thu May 16 06:55:01 EDT 2019     root@buildbot1-nyi.netgate.com:/build/factory-crossbuild-244/obj/amd64/bwlyKhYx/build/factory-crossbuild-244/pfSense/tmp/FreeBSD-src/sys/pfSense

Crash report details:

PHP Errors:
[16-Oct-2019 19:02:34 Etc/UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /etc/inc/upgrade_config.inc:4577
Stack trace:
#0 /etc/inc/config.lib.inc(378): upgrade_144_to_145()
#1 /etc/rc.bootup(125): convert_config()
#2 {main}
  thrown in /etc/inc/upgrade_config.inc on line 4577

It's not normally possible hit this as current versions prevent configuring it. In this case it was a 2.2 config that hit it.

Actions

Also available in: Atom PDF