Ticket #20128 (closed defect: fixed)

Opened 21 months ago

Last modified 17 months ago

VBoxNetDHCP crashes with fixed address config => Fixed in SVN

Reported by: Remy Owned by:
Component: network Version: VirtualBox 6.1.16
Keywords: Cc:
Guest type: other Host type: all


VBoxNetDHCP crashes with an segmentation fault 11 when a MAC address is assigned an fixed IP address. I observed the crash on both macOS 10.15.7 and Debian 10 running VirtualBox 6.1.16.

I created a NAT network like this:

$ VBoxManage natnetwork add   --netname SciStor --network --enable --dhcp on
$ VBoxManage natnetwork start --netname SciStor
$ VBoxManage dhcpserver modify  --network SciStor --lower-ip
$ VBoxManage dhcpserver restart --network SciStor

This works as expected, the first vm which is started gets the .100 IP address. But, I want the vm to get a static IP address and therefore I did:

$ VBoxManage dhcpserver modify  --network SciStor --mac-address="56424F580101" --fixed-address=""
$ VBoxManage dhcpserver restart --network SciStor

After starting the vm, I noticed that the vm did not get an DHCP offer. Note: I am not sure if the fixed address should be within or without the DHCP address range, but I tried both and the result is the same: VBoxNetDHCP crashes.

The DHCP config file looks like:

<?xml version="1.0"?>
<DHCPServer networkName="SciStor" trunkType="whatever" IPAddress="" lowerIP="" upperIP="" leasesFilename="/Users/remy/Library/VirtualBox/SciStor-Dhcpd.leases" networkMask="">
    <Option name="1" encoding="0" value=""/>
    <Option name="3" encoding="0" value=""/>
    <Option name="6" encoding="0" value=""/>
    <Option name="15" encoding="0" value=""/>
  <Config MACAddress="56:42:4f:58:01:01" fixedAddress=""/>

If VBoxNetDHCP is started by hand, while using this config, it crashes on both macOS and Debian:

$ /Applications/ --comment SciStor --config /Users/remy/Library/VirtualBox/SciStor-Dhcpd.config --log /Users/remy/Library/VirtualBox/SciStor-Dhcpd.log
VBoxNetDHCP: info: reading config from '/Users/remy/Library/VirtualBox/SciStor-Dhcpd.config'...
Segmentation fault: 11

If I leave the <Config MACAddress .... line out, VBoxNetDHCP runs just fine.

Change History

comment:1 Changed 21 months ago by Remy

The problem exists in VirtualBox 6.1.18 on macOS Big Sur too.

comment:2 Changed 20 months ago by vushakov

  • Host type changed from Mac OS X to all
  • Summary changed from VBoxNetDHCP crashes with fixed address config to VBoxNetDHCP crashes with fixed address config => Fixed in SVN

Thanks for the report. This will be fixed in the next dot-dot release.

comment:3 Changed 17 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use