<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - webdav: memory not been freed makes qemu crash"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91350">91350</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>webdav: memory not been freed makes qemu crash
</td>
</tr>
<tr>
<th>Product</th>
<td>Spice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>critical
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>server
</td>
</tr>
<tr>
<th>Assignee</th>
<td>spice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>me@victortoso.com
</td>
</tr></table>
<p>
<div>
<pre>spice-server and QEMU from git master.
The memory consumption by qemu process grows by about the size of the file that
is being copied from client to guest with webdav. Copying a 4GB made my system
freeze.
Steps to reproduce!
1-) build spice-gtk with --enable-webdav=yes
2-) enable webdav in your VM by following:
<a href="https://elmarco.fedorapeople.org/manual.html#_folder_sharing">https://elmarco.fedorapeople.org/manual.html#_folder_sharing</a>
3-) using remote-viewer with webdav patches, connects to a fedora guest
4-) Open nautilus, go to 'Browse Network'
5-) On remote-viewer, enable shared folder by File > Preferences > [X] Share
folder
6-) The spice client folder should appear: Double-click to mount it.
7-) Check the memory of your qemu process
8-) Copy a big file (let's say, 300 MB) from the shared folder to local VM
9-) See the memory consumption of qemu grows by a lot;
As far as I could follow in the code, the server does free after
reading/writing. Not sure if it could be a bug in QEMU itself.
* Valgrind did not help as when the machine is shutdown, the memory is released
correctly (apparently)
* Disconnecting the client does not free the memory</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>