[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] full valrind report
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] full valrind report |
Date: |
Wed, 29 Feb 2012 18:29:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 |
Am 29.02.2012 17:19, schrieb Michael S. Tsirkin:
Here's a full report of possible leaks:
Any idea? I am invedtigating.
Hi Michael,
try valgrind with --track-origins=yes. It costs some memory, but
improves diagnostics not only for memory leaks.
Most important are the leaks marked with "definitely lost".
A lot of them are just missing destructors when QEMU terminates.
Some QEMU classes provide an init function, but no exit function,
for example. If you suspect a leak, you can try to re-run QEMU
and look whether it is possible to increase the leak: repeat an
action in the QEMU monitor several times, connect to the VNC
server more than once, let the emulation run for a long time
and so on. This kind of leaks is dangerous for long running
QEMU instances or allows denial of service attacks.
Good (bug) hunting!
Stefan W.