dnsmasq: lease-init script returned exit code 139

Bug #1810067 reported by Ebuzer Taha Kanat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

on virtual network creation:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createnet.py", line 746, in _async_net_create
    net.install()
  File "/usr/share/virt-manager/virtinst/network.py", line 261, in install
    net.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2952, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 149: Segmentation fault

dnsmasq: lease-init script returned exit code 139

Error creating virtual network: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/net1.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 149: Segmentation fault

dnsmasq: lease-init script returned exit code 139

also: no virbr0 .

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Ebuzer,
thanks for the report - I'd be interested in that segmentation fault but to work on it I'd need some more data. Any extra info can help to recreate and debug it, but most of all I'd need to know how you configured your guest, guest network or virt-manager (whatever applies).

Also "on virtual network creation" isn't an option in the UI.
Where did you find/click that in virt-manager?
The exact steps and UI input that you used would be nice.

Finally what version of Ubuntu and the related packages are you running on?

Changed in virt-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Ebuzer Taha Kanat (ebuzer) wrote :

it is problematic that traceback created from Virt manager is not enough to debug virt manager.

but here it goes:

No guest, no guest network, i did not said there is a ui option called "on virtual network creation" just go to "virtual networks" on ui and push play button to start network. it throws up the posted Traceback on UI.

Package: virt-manager
Version: 1:1.3.2-3ubuntu1.16.04.4
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian Libvirt Maintainers <email address hidden>

there is no info that i can give you to solve this bug. because problem lies within code that is ugly filled with unreasonable assumptions. They should not code on assumptions they did not checked first.

here is the default one:

Error starting network 'default': internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 149: Segmentation fault

dnsmasq: lease-init script returned exit code 139

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 126, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/network.py", line 81, in start
    self._backend.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2952, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 149: Segmentation fault

dnsmasq: lease-init script returned exit code 139

content of default.conf:

##WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
##OVERWRITTEN AND LOST. Changes to this configuration should be made using:
## virsh net-edit default
## or other application using the libvirt API.
##
## dnsmasq conf file created by libvirt
strict-order
user=libvirt-dnsmasq
pid-file=/var/run/libvirt/network/default.pid
except-interface=lo
bind-dynamic
interface=virbr0
dhcp-range=192.168.122.2,192.168.122.254
dhcp-no-override
dhcp-lease-max=253
dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts

it is a fresh install. i suspect if i run virt-manager with sudo it will go away but i won't.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for virt-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in virt-manager (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Ebuzer Taha Kanat (ebuzer) wrote :

sudo won't help either.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.