Project

General

Profile

Bug #9144

Set interface IP address from console crashes if DHCP is selected

Added by robi robi over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
Console Menu
Target version:
Start date:
11/21/2018
Due date:
% Done:

100%

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

Description

Steps to reproduce:
- Go to VGA console
- Option 2, Set interface IP address
- go through the wizard, when it asks you to enable DHCP say yes
- fill in the DHCP address range
- boom there goes the error, and it jumps back to the main menu
If you don't select enable DHCP, it sets the IP addresses correctly. As a workaround, you can assign a static IP to your PC, enter the web interface at the IP address set in the previous step, and enable DHCP from there - that doesn't crash.

[[Crash report begins. Anonymous machine information:

amd64
11.2-RELEASE-p3
FreeBSD 11.2-RELEASE-p3 #17 e6b497fa0a3(RELENG_2_4_4): Thu Sep 20 09:04:45 EDT 2018 root@buildbot3:/crossbuild/ce-244/obj/amd64/WvDslnYb/crossbuild/ce-244/pfSense/tmp/FreeBSD-src/sys/pfSense

Crash report details:

PHP Errors:
[21-Nov-2018 19:33:23 Etc/UTC] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/rc.initial.setlanip:417
Stack trace:
#0 /etc/rc.initial.setlanip(430): console_configure_dhcpd(4)
#1 {main}
thrown in /etc/rc.initial.setlanip on line 417

No FreeBSD crash data found.]]

Associated revisions

Revision 9607d487 (diff)
Added by Renato Botelho over 2 years ago

Fix #9144: Init array before use

Revision 86fb2194 (diff)
Added by Renato Botelho over 2 years ago

Fix #9144: Init array before use

History

#1 Updated by Renato Botelho over 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Renato Botelho

#2 Updated by Renato Botelho over 2 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

#3 Updated by Denis Karpushin over 2 years ago

Wasnt able to reproduce the bug with MBT 4220 pfsense version 2.4.4

#4 Updated by Jim Pingle over 2 years ago

  • Status changed from Feedback to Resolved

Starting with <dhcpd></dhcpd> in the config I can reproduce the error without the fix and it works with the fix applied. Looks good.

Also available in: Atom PDF