qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/3] build-sys: enable sanitizers by default with --enable-debug
Date: Thu, 8 Feb 2018 18:46:56 +0100	[thread overview]
Message-ID: <8be47d97-4a09-eb4f-0ee2-624404b43100@redhat.com> (raw)
In-Reply-To: <20180208162343.30809-3-marcandre.lureau@redhat.com>

On 08/02/2018 17:23, Marc-André Lureau wrote:
> The original commit 247724cb302af5d70c8853154b640dfabf2bbb56 was meant
> to enable sanitizers by default when --enable-debug, but failed
> because of a gcc static linking bug. Try to enable it back now that
> there is a stronger check.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

I'm more afraid that there are quite a few reports from sanitizers.  I
wonder if that makes --enable-debug unusable; as a non-user of
--enable-debug I'm a bit wary of pushing this patch.

I've queued 1 and 2 though.

Paolo

> ---
>  configure | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index beb0de6a77..700ff35383 100755
> --- a/configure
> +++ b/configure
> @@ -355,7 +355,7 @@ rdma=""
>  gprof="no"
>  debug_tcg="no"
>  debug="no"
> -sanitizers="no"
> +sanitizers=""
>  fortify_source=""
>  strip_opt="yes"
>  tcg_interpreter="no"
> @@ -5262,6 +5262,11 @@ have_ubsan=no
>  have_asan_iface_h=no
>  have_asan_iface_fiber=no
>  
> +# enable sanitizers by default if --enable-debug
> +if test "$sanitizers" = "" -a "$debug" = "yes"; then
> +  sanitizers=yes
> +fi
> +
>  if test "$sanitizers" = "yes" ; then
>    if compile_prog "$CPU_CFLAGS -Werror -fsanitize=address" ""; then
>        have_asan=yes
> 

  reply	other threads:[~2018-02-08 17:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08 16:23 [Qemu-devel] [PATCH 1/3] build-sys: remove useless extra*flags variables Marc-André Lureau
2018-02-08 16:23 ` [Qemu-devel] [PATCH 2/3] build-sys: check static linking of UBSAN Marc-André Lureau
2018-02-08 17:48   ` Eric Blake
2018-02-08 16:23 ` [Qemu-devel] [PATCH 3/3] build-sys: enable sanitizers by default with --enable-debug Marc-André Lureau
2018-02-08 17:46   ` Paolo Bonzini [this message]
2018-02-08 19:03     ` Marc-André Lureau
2018-02-09  2:24       ` Fam Zheng

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=8be47d97-4a09-eb4f-0ee2-624404b43100@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=marcandre.lureau@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).