View Issue Details

IDProjectCategoryView StatusLast Update
0018161administrationoperationspublic2021-04-16 20:14
Reporteralan.kozlay Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSCentOSOS Version8
Summary0018161: libvirtd crashes continuously with "free(): invalid pointer"
Descriptionjournalctl shows that libvirtd is constantly crashing every 2 minutes in the background (after each systemd restart of it).
Steps To Reproduce1) Boot
2) examine with $ journalctl -b
Additional InformationMy CentOS 8 is up-to-date for all packages.
This provides libvirt-daemon 6.0.0-28.1
The libvirt project page said to report to my distro instead of them.

I have a core dump but it's 3.7MB and you have a limit of attached file size of 2MB.
So, the journalctl logs are provided below, instead:

Apr 16 15:39:44 9r0pp73.int.ves.solutions libvirtd[118060]: free(): invalid pointer
Apr 16 15:39:44 9r0pp73.int.ves.solutions systemd[1]: Started Process Core Dump (PID 118379/UID 0).
Apr 16 15:39:44 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Main process exited, code=dumped, status=6/ABRT
Apr 16 15:39:44 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Failed with result 'core-dump'.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd-coredump[118380]: Process 118060 (libvirtd) of user 0 dumped core.

Stack trace of thread 118060:
#0 0x00007f5053ebe7ff raise (libc.so.6)
#1 0x00007f5053ea8c35 abort (libc.so.6)
#2 0x00007f5053f01987 __libc_message (libc.so.6)
#3 0x00007f5053f08d8c malloc_printerr (libc.so.6)
#4 0x00007f5053f0a68c _int_free (libc.so.6)
#5 0x00007f5054d102b2 g_free (libglib-2.0.so.0)
#6 0x00007f5057e3e37f virFree (libvirt.so.0)
#7 0x00007f5057e71f41 virFirmwareFreeList (libvirt.so.0)
#8 0x00007f5001545fb6 virQEMUDriverConfigDispose (libvirt_driver_qemu.so)
#9 0x00007f5057e9eabb virObjectUnref (libvirt.so.0)
#10 0x00007f500158da81 qemuStateCleanup (libvirt_driver_qemu.so)
#11 0x00007f5058058970 virStateCleanup (libvirt.so.0)
#12 0x000055959ab178d1 main (libvirtd)
#13 0x00007f5053eaa7b3 __libc_start_main (libc.so.6)
#14 0x000055959ab183ae _start (libvirtd)

Stack trace of thread 118068:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118069:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118075:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec48d4 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118074:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec48d4 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118066:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118067:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118073:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec48d4 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118070:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118072:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec48d4 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118078:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118077:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118132:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5001ec5fb4 udevEventHandleThread (libvirt_driver_nodedev.so)
#3 0x00007f5057ec3bfa virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118079:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118081:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118071:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec48d4 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)

Stack trace of thread 118080:
#0 0x00007f50542582fc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f5057ec3e4a virCondWait (libvirt.so.0)
#2 0x00007f5057ec4923 virThreadPoolWorker (libvirt.so.0)
#3 0x00007f5057ec3bcc virThreadHelper (libvirt.so.0)
#4 0x00007f505425214a start_thread (libpthread.so.0)
#5 0x00007f5053f83f23 __clone (libc.so.6)
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: systemd-coredump@11-118379-0.service: Succeeded.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Service RestartSec=100ms expired, scheduling restart.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 12.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: Stopped Virtualization daemon.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Found left-over process 114067 (dnsmasq) in control group while starting unit. Ignoring.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: libvirtd.service: Found left-over process 114068 (dnsmasq) in control group while starting unit. Ignoring.
Apr 16 15:39:45 9r0pp73.int.ves.solutions systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Tagslibvirtd invalid pointer free

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-04-16 20:14 alan.kozlay New Issue
2021-04-16 20:14 alan.kozlay Tag Attached: libvirtd invalid pointer free