qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Darren Kenny <darren.kenny@oracle.com>
To: Alexander Bulekov <alxndr@bu.edu>, qemu-devel@nongnu.org
Cc: Laurent Vivier <lvivier@redhat.com>,
	thuth@redhat.com, f4bug@amsat.org,
	Alexander Bulekov <alxndr@bu.edu>,
	bsd@redhat.com, dstepanov.src@gmail.com, stefanha@redhat.com,
	andrew@coatesdev.com, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH 01/12] fuzz: Change the way we write qtest log to stderr
Date: Thu, 23 Jul 2020 14:15:17 +0100	[thread overview]
Message-ID: <m21rl2tlsq.fsf@oracle.com> (raw)
In-Reply-To: <20200723033933.21883-2-alxndr@bu.edu>

On Wednesday, 2020-07-22 at 23:39:22 -04, Alexander Bulekov wrote:
> Telling QTest to log to /dev/fd/2, essentially results in dup(2). This
> is fine, if other code isn't logging to stderr. Otherwise, the order of
> the logs is mixed due to buffering issues, since two file-descriptors
> are used to write to the same file. We can avoid this, since just
> specifying "-qtest" sets the log fd to stderr. If we want to disable
> qtest logs, we can just add -qtest-log none.
>
> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>

Reviewed-by: Darren Kenny <darren.kenny@oracle.com>

> ---
>  tests/qtest/fuzz/fuzz.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/tests/qtest/fuzz/fuzz.c b/tests/qtest/fuzz/fuzz.c
> index 031594a686..8234b68754 100644
> --- a/tests/qtest/fuzz/fuzz.c
> +++ b/tests/qtest/fuzz/fuzz.c
> @@ -202,9 +202,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv, char ***envp)
>  
>      /* Run QEMU's softmmu main with the fuzz-target dependent arguments */
>      GString *cmd_line = fuzz_target->get_init_cmdline(fuzz_target);
> -    g_string_append_printf(cmd_line,
> -                           " -qtest /dev/null -qtest-log %s",
> -                           getenv("QTEST_LOG") ? "/dev/fd/2" : "/dev/null");
> +    g_string_append_printf(cmd_line, " %s -qtest /dev/null ",
> +                           getenv("QTEST_LOG") ? "" : "-qtest-log none");
>  
>      /* Split the runcmd into an argv and argc */
>      wordexp_t result;
> -- 
> 2.27.0


  reply	other threads:[~2020-07-23 13:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23  3:39 [PATCH 00/12] Add a General Virtual Device Fuzzer Alexander Bulekov
2020-07-23  3:39 ` [PATCH 01/12] fuzz: Change the way we write qtest log to stderr Alexander Bulekov
2020-07-23 13:15   ` Darren Kenny [this message]
2020-07-23  3:39 ` [PATCH 02/12] fuzz: Add general virtual-device fuzzer Alexander Bulekov
2020-07-24  1:35   ` Alexander Bulekov
2020-07-23  3:39 ` [PATCH 03/12] fuzz: Add PCI features to the general fuzzer Alexander Bulekov
2020-07-23  3:39 ` [PATCH 04/12] fuzz: Add DMA support to the generic-fuzzer Alexander Bulekov
2020-07-23  3:39 ` [PATCH 05/12] fuzz: Declare DMA Read callback function Alexander Bulekov
2020-07-23  3:39 ` [PATCH 06/12] fuzz: Add fuzzer callbacks to DMA-read functions Alexander Bulekov
2020-07-23  3:39 ` [PATCH 07/12] scripts/oss-fuzz: Add wrapper program for generic fuzzer Alexander Bulekov
2020-07-23  3:39 ` [PATCH 08/12] scripts/oss-fuzz: Add general-fuzzer build script Alexander Bulekov
2020-07-23  3:39 ` [PATCH 09/12] scripts/oss-fuzz: Add general-fuzzer configs for oss-fuzz Alexander Bulekov
2020-07-23  3:39 ` [PATCH 10/12] scripts/oss-fuzz: build the general-fuzzer configs Alexander Bulekov
2020-07-23  3:39 ` [PATCH 11/12] scripts/oss-fuzz: Add script to reorder a general-fuzzer trace Alexander Bulekov
2020-07-23  3:39 ` [PATCH 12/12] scripts/oss-fuzz: Add crash trace minimization script Alexander Bulekov
2020-08-26 11:10 ` [PATCH 00/12] Add a General Virtual Device Fuzzer Dima Stepanov
2020-09-21  2:35   ` Alexander Bulekov

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=m21rl2tlsq.fsf@oracle.com \
    --to=darren.kenny@oracle.com \
    --cc=alxndr@bu.edu \
    --cc=andrew@coatesdev.com \
    --cc=bsd@redhat.com \
    --cc=dstepanov.src@gmail.com \
    --cc=f4bug@amsat.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=thuth@redhat.com \
    /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).