qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <mlureau@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Eric Blake" <eblake@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PULL 00/26] Leak patches
Date: Tue, 6 Sep 2016 11:33:34 -0400 (EDT)	[thread overview]
Message-ID: <644501471.140688.1473176014062.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAFEAcA-=8s+Qr96wra3Uag=R3ddHU-bO_eLmy6+OH3XpH_ZoLg@mail.gmail.com>

Hi

----- Original Message -----
> On 6 September 2016 at 13:26, Marc-André Lureau
> <marcandre.lureau@redhat.com> wrote:
> > The following changes since commit
> > 1fd66154fdf8305e6668a96046a22b863b4d7320:
> >
> >   Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160905' into
> >   staging (2016-09-06 11:43:18 +0100)
> >
> > are available in the git repository at:
> >
> >   git@github.com:elmarco/qemu.git tags/leak-pull-request
> >
> > for you to fetch changes up to 58d104a7f2698ffff3ee5976f96ebcff111be63b:
> >
> >   tests: fix postcopy-test leaks (2016-09-06 16:20:27 +0400)
> >
> > ----------------------------------------------------------------
> 
> I'm afraid this doesn't build with our minimum glib version:
> 
> /Users/pm215/src/qemu-for-merges/tests/libqtest.c:771:42: error: expected ')'
>                       (GTestFixtureFunc) fn, (GTestFixtureFunc)
>                       data_free_func);
>                                          ^
> /Users/pm215/src/qemu-for-merges/tests/libqtest.c:770:22: note: to
> match this '('
>     g_test_add_vtable(path, 0, data, NULL,
>                      ^
> 1 error generated.
> 
> The GTestFixtureFunc typedef was only introduced in glib 2.28, and our
> minimum is 2.22.

Argh,..

> 
> Also, g_test_add_vtable() in glib 2.22 has this prototype:
> 
> void    g_test_add_vtable               (const char     *testpath,
>                                          gsize           data_size,
>                                          gconstpointer   test_data,
>                                          void          (*data_setup)
>                                          (void),
>                                          void          (*data_test)
>                                          (void),
>                                          void          (*data_teardown)
>                                          (void));
> 
> but GTestFixtureFunc is typedefed in newer glib as
> void (*GTestFixtureFunc) (gpointer fixture, gconstpointer user_data);
> 
> so it looks like this function has changed signature somewhere
> between glib versions, which makes me a bit nervous about using it.

Perhaps we should get back to the simpler version, only using g_test_add_data_func_full() with 2.34:
https://patchwork.kernel.org/patch/9251373/

I can update the patch that way with a comment about expected leaks < 2.34.

there is no discussions about bumping the glib requirements btw?

  reply	other threads:[~2016-09-06 15:33 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 12:26 [Qemu-devel] [PULL 00/26] Leak patches Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 01/26] tests: fix test-qga leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 02/26] glib-compat: add g_(s)list_free_full() Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 03/26] qga: free the whole blacklist Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 04/26] qga: free remaining leaking state Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 05/26] tests: fix test-cutils leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 06/26] tests: fix test-vmstate leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 07/26] tests: fix test-iov leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 08/26] tests: fix check-qom-interface leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 09/26] tests: fix check-qom-proplist leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 10/26] tests: fix small leak in test-io-channel-command Marc-André Lureau
2016-09-06 12:46   ` Daniel P. Berrange
2016-09-06 12:53     ` Marc-André Lureau
2016-09-06 13:00       ` Daniel P. Berrange
2016-09-06 13:01       ` Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 11/26] tests: fix leak in test-string-input-visitor Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 12/26] portio: keep references on portio Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 13/26] pc: simplify passing qemu_irq Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 14/26] pc: don't leak a20_line Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 15/26] machine: use class base init generated name Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 16/26] acpi-build: fix array leak Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 17/26] tests: fix qom-test leaks Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 18/26] pc: free i8259 Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 19/26] pc: keep gsi reference Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 20/26] sd: free timer Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 21/26] ipmi: free extern timer Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 22/26] bus: simplify name handling Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 23/26] tests: add qtest_add_data_func_full Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 24/26] tests: pc-cpu-test leaks fixes Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 25/26] tests: fix rsp leak in postcopy-test Marc-André Lureau
2016-09-06 12:26 ` [Qemu-devel] [PULL 26/26] tests: fix postcopy-test leaks Marc-André Lureau
2016-09-06 15:16 ` [Qemu-devel] [PULL 00/26] Leak patches Peter Maydell
2016-09-06 15:33   ` Marc-André Lureau [this message]
2016-09-06 15:36     ` Peter Maydell
2016-09-07 18:57     ` Marc-André Lureau
2016-09-07 19:16       ` Eric Blake

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=644501471.140688.1473176014062.JavaMail.zimbra@redhat.com \
    --to=mlureau@redhat.com \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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).