From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: Geoffrey McRae <geoff@hostfission.com>, kraxel@redhat.com
Subject: Re: [PATCH] audio/jack: fix use after free segfault
Date: Wed, 19 Aug 2020 13:30:06 +0200 [thread overview]
Message-ID: <2255329.JDkKyqenvo@silver> (raw)
In-Reply-To: <fdfc3c5e5ef6c19c82bfaf5503011659@hostfission.com>
On Mittwoch, 19. August 2020 00:20:07 CEST Geoffrey McRae wrote:
> > Could you please describe in more detail how you ran into this
> > situation with
> > your 2nd audio device?
>
> Sure. Run a Windows guest with two audio devices, let it boot up, then
> restart
> the jack service to trigger the recovery routine, then attempt to use
> the 2nd
> (non-primary) audio device. Ie, go to windows audio settings to test the
> microphone of the second audio device.
>
> When windows try to use the 2nd audio device it goes through the
> recovery
> routine triggering this fault.
I still don't quite get how this correlates. So you are forcing a restart of
jackd on host side in between, for what purpose? To simulate the Windows
client being kicked by jackd?
What latencies do you achieve BTW with Windows guests?
> I am aware and since these libraries are interchangeable I had assumed
> that
> JACK1 will have the same fault. If not I suppose we need to detect which
> is in
> use and change this code appropriately.
I haven't checked this in the JACK1 code base yet, but I assume JACK1 does not
behave like JACK2 here, because the JACK API is very clear that it is the
client's responsibility to free itself.
So it looks like a JACK2-only-bug to me.
Very weird that there is no jack_client_version() in the shared weak API (i.e.
missing on JACK1 side).
Best regards,
Christian Schoenebeck
next prev parent reply other threads:[~2020-08-19 11:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 12:40 [PATCH] audio/jack: fix use after free segfault Geoffrey McRae
2020-08-18 13:41 ` no-reply
2020-08-18 18:11 ` Christian Schoenebeck
2020-08-18 22:20 ` Geoffrey McRae
2020-08-19 11:30 ` Christian Schoenebeck [this message]
2020-08-19 11:45 ` Geoffrey McRae
2020-08-19 12:41 ` Christian Schoenebeck
2020-08-19 12:51 ` Geoffrey McRae
2020-08-19 15:51 ` Christian Schoenebeck
2020-08-19 15:57 ` Geoffrey McRae
2020-08-20 13:14 ` Christian Schoenebeck
2020-08-19 13:30 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2255329.JDkKyqenvo@silver \
--to=qemu_oss@crudebyte.com \
--cc=geoff@hostfission.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).