<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - pulseaudio "killed" my qemu instance (assertion hit)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88452#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - pulseaudio "killed" my qemu instance (assertion hit)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88452">bug 88452</a>
from <span class="vcard"><a class="email" href="mailto:david.henningsson@canonical.com" title="David Henningsson <david.henningsson@canonical.com>"> <span class="fn">David Henningsson</span></a>
</span></b>
<pre>I think the section below /* Frame payload available */ in do_read is broken w
r t what happens if the packet is split up.
Look how this offset parameter does not take re->index into account:
offset = (int64_t) ((((uint64_t)
ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI])) << 32) | (((uint64_t)
ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_LO]))));
Now, that happens to work if and only if
1) the seek mode is PA_SEEK_RELATIVE and
2) the previously packet was successfully pushed into the queue.
If any of these two fails, any memchunk except the first in a split will be
pushed into the wrong place in the queue.
Maybe there is some advantage in getting some of the data as quick as possible,
but I think this split will be too hairy to sort out correctly. My suggestion
is that we do not call receive_memblock_callback until the entire block is
received. Opinions?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>