-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-9.5
-
libvirt-10.4.0-1.el9
-
None
-
None
-
sst_virtualization
-
ssg_virtualization
-
20
-
2
-
Dev ack
-
False
-
-
None
-
None
-
Pass
-
RegressionOnly
-
-
All
-
10.4.0
-
None
What were you trying to do that didn't work?
Get memory leak when Revert to an external snapshot
Please provide the package NVR for which bug is seen:
libvirt v10.2.0-96-gded74b3369
qemu-8.2.2-2.fc41.x86_64
How reproducible:
100%
Steps to reproduce
Although my test is based on Fedora rawhide, but the backtrace shows the leak is from virDomainRevertToSnapshot. So I believe it could affect RHEL9.5.
- Start a domain
- Create a full external snapshot:
virsh snapshot-create-as rhel s1 --memspec /tmp/rhel.sav Domain snapshot s1 created
- Revert to the snapshot:
virsh snapshot-revert rhel s1 Domain snapshot s1 reverted
The backtrace from the leak sanitizer:
Direct leak of 144 byte(s) in 6 object(s) allocated from:
#0 0x7ffff78f6160 in calloc (/lib64/libasan.so.8+0xf6160) (BuildId: 7022e2c258d72a038cc2b24c29899fd84453f59d)
#1 0x7ffff7716f71 in g_malloc0 (/lib64/libglib-2.0.so.0+0x63f71) (BuildId: b6a4c4bb7c521262811d68802b206966f9dd85d9)
#2 0x7ffff62a437f in virStorageSourceInitAs (/lib64/libvirt.so.0+0x8a437f) (BuildId: c0edbc9b07391f354bf6377b2dcd9040756017c5)
#3 0x7fffe1ed24df in qemuSnapshotRevertExternalFinish ../src/qemu/qemu_snapshot.c:2275
#4 0x7fffe1eebae1 in qemuSnapshotRevertActive ../src/qemu/qemu_snapshot.c:2380
#5 0x7fffe1eebae1 in qemuSnapshotRevert ../src/qemu/qemu_snapshot.c:2600
#6 0x7fffe1cdb985 in qemuDomainRevertToSnapshot ../src/qemu/qemu_driver.c:13099
#7 0x7ffff652752e in virDomainRevertToSnapshot (/lib64/libvirt.so.0+0xb2752e) (BuildId: c0edbc9b07391f354bf6377b2dcd9040756017c5)
#8 0x555555616e3c in remoteDispatchDomainRevertToSnapshotHelper.lto_priv.0 (/usr/sbin/virtqemud+0xc2e3c) (BuildId: def28b90f6aa58093363c416eaae1554965b0657)
#9 0x7ffff607e6fc in virNetServerProgramDispatchCall ../src/rpc/virnetserverprogram.c:423
#10 0x7ffff607e6fc in virNetServerProgramDispatch ../src/rpc/virnetserverprogram.c:299
#11 0x7ffff608fe06 in virNetServerProcessMsg ../src/rpc/virnetserver.c:135
#12 0x7ffff6090237 in virNetServerHandleJob ../src/rpc/virnetserver.c:155
#13 0x7ffff5cf36a6 in virThreadPoolWorker ../src/util/virthreadpool.c:164
#14 0x7ffff5cf23fd in virThreadHelper ../src/util/virthread.c:256
#15 0x7ffff785d9b5 in asan_thread_start(void*) (/lib64/libasan.so.8+0x5d9b5) (BuildId: 7022e2c258d72a038cc2b24c29899fd84453f59d)
Expected results
No memory leak
Actual results
As above
The domain XML: rhel.xml
- is blocked by
-
RHEL-29642 Rebase libvirt in RHEL-9.5.0
- Release Pending
- links to
-
RHSA-2024:130953 libvirt bug fix and enhancement update