Bug ID 1183767
Summary libvirt segfault in qemuDomainDefAddDefaultDevices when invoked via vagrant
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.2
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Virtualization:Other
Assignee virt-bugs@suse.de
Reporter dcermak@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 847447 [details]
libvirt coredump recorded by systemd-coredump

libvirt recently started segfaulting on my Leap 15.2 CI machine in openstack
when a new VM is started via vagrant & vagrant libvirt.

How to reproduce:
- vagrant init opensuse/Tumbleweed.x86_64 # the actual vagrant box does not
appear to matter
- vagrant up --provider libvirt
- check the system journal for a segfault

installed components:
$ rpm -qa|grep libvirt
libvirt-libs-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-network-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-scsi-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-6.0.0-lp152.9.6.2.x86_64
ruby2.5-rubygem-ruby-libvirt-0.7.1-lp152.11.1.x86_64
libvirt-daemon-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-gluster-6.0.0-lp152.9.6.2.x86_64
libvirt-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-interface-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-core-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-disk-6.0.0-lp152.9.6.2.x86_64
ruby2.5-rubygem-fog-libvirt-0.8.0-lp152.9.1.x86_64
libvirt-daemon-driver-nodedev-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-secret-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-logical-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-config-nwfilter-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-qemu-debuginfo-6.0.0-lp152.9.6.2.x86_64
libvirt-libs-debuginfo-6.0.0-lp152.9.6.2.x86_64
libvirt-client-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-libxl-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-debuginfo-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-nwfilter-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-iscsi-6.0.0-lp152.9.6.2.x86_64
vagrant-libvirt-0.2.1-lp152.32.3.x86_64
libvirt-daemon-driver-qemu-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-config-network-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-rbd-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-lxc-6.0.0-lp152.9.6.2.x86_64
libvirt-daemon-driver-storage-mpath-6.0.0-lp152.9.6.2.x86_64


The journal contains the following stack trace(s):

Mar 19 09:16:30 dcermak-vagrant-tester-leap kernel: libvirtd[2331]: segfault at
0 ip 00007fcf90a8be2c sp 00007fcfc67fb810 error 4 in
libvirt_driver_qemu.so[7fcf909f3000+19f000]
Mar 19 09:16:30 dcermak-vagrant-tester-leap kernel: Code: 00 f3 a6 0f 97 c0 1c
00 84 c0 0f 94 45 90 45 31 f6 e9 95 fe ff ff 49 8b b4 24 18 02 00 00 48 8d 3d
0b 6b 0a 00 b9 06 00 00 00 <f3> a6 0f 97 c0 1c 00 84 c0 0f 84 44 ff ff ff 4c 89
e7 e8 2d fc fa
Mar 19 09:16:30 dcermak-vagrant-tester-leap systemd[1]: Started Process Core
Dump (PID 5268/UID 0).
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: libvirtd.service: Main
process exited, code=killed, status=11/SEGV
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: libvirtd.service: Unit
entered failed state.
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: libvirtd.service:
Failed with result 'signal'.
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: libvirtd.service:
Service RestartSec=100ms expired, scheduling restart.
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: Stopped Virtualization
daemon.
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: Starting Virtualization
daemon...
Mar 19 09:16:31 dcermak-vagrant-tester-leap systemd[1]: Started Virtualization
daemon.
Mar 19 09:04:02 dcermak-vagrant-tester-leap systemd-coredump[1912]: Process
1767 (libvirtd) of user 0 dumped core.

                                                                    Stack trace
of thread 1777:
                                                                    #0 
0x00007f10dc546e2c qemuDomainDefAddDefaultDevices (libvirt_driver_qemu.so)
                                                                    #1 
0x00007f111157fc99 virDomainDefPostParse (libvirt.so.0)
                                                                    #2 
0x00007f111159bf08 virDomainDefParseNode (libvirt.so.0)
                                                                    #3 
0x00007f111159c013 virDomainDefParse (libvirt.so.0)
                                                                    #4 
0x00007f10dc5bdfbe qemuDomainDefineXMLFlags (libvirt_driver_qemu.so)
                                                                    #5 
0x00007f11116eabbc virDomainDefineXMLFlags (libvirt.so.0)
                                                                    #6 
0x000055572f7472ea remoteDispatchDomainDefineXMLFlags (libvirtd)
                                                                    #7 
0x00007f111161b9ed virNetServerProgramDispatchCall (libvirt.so.0)
                                                                    #8 
0x00007f1111620a98 virNetServerProcessMsg (libvirt.so.0)
                                                                    #9 
0x00007f111153c751 virThreadPoolWorker (libvirt.so.0)
                                                                    #10
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #11
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #12
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1770:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1786:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1773:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1775:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c798 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1783:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1774:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c798 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)
                                                                    Stack trace
of thread 1785:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1793:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f10deec3894 n/a (libvirt_driver_nodedev.so)
                                                                    #3 
0x00007f111153bb82 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1778:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c798 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1772:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1771:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1769:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1776:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c798 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1767:
                                                                    #0 
0x00007f11105425fb __poll (libc.so.6)
                                                                    #1 
0x00007f11114de24a poll (libvirt.so.0)
                                                                    #2 
0x00007f11114dce01 virEventRunDefaultImpl (libvirt.so.0)
                                                                    #3 
0x00007f11116202cd virNetDaemonRun (libvirt.so.0)
                                                                    #4 
0x000055572f73b862 main (libvirtd)
                                                                    #5 
0x00007f111047534a __libc_start_main (libc.so.6)
                                                                    #6 
0x000055572f73bb3a _start (libvirtd)
                                                                    Stack trace
of thread 1787:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)

                                                                    Stack trace
of thread 1784:
                                                                    #0 
0x00007f111081a87d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                                    #1 
0x00007f111153bd96 virCondWait (libvirt.so.0)
                                                                    #2 
0x00007f111153c863 virThreadPoolWorker (libvirt.so.0)
                                                                    #3 
0x00007f111153bb58 virThreadHelper (libvirt.so.0)
                                                                    #4 
0x00007f11108144f9 start_thread (libpthread.so.0)
                                                                    #5 
0x00007f111054cecf __clone (libc.so.6)


You are receiving this mail because: