All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sander Eikelenboom <linux@eikelenboom.it>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org,
	Daniel De Graaf <dgdegra@tycho.nsa.gov>,
	stefano.stabellini@eu.citrix.com
Subject: Re: xen-unstable stubdom build-failure when debug=n
Date: Tue, 22 Jul 2014 09:11:06 +0200	[thread overview]
Message-ID: <70705199.20140722091106@eikelenboom.it> (raw)
In-Reply-To: <1405959873.13494.8.camel@kazak.uk.xensource.com>


Monday, July 21, 2014, 6:24:33 PM, you wrote:

> On Mon, 2014-07-21 at 17:13 +0100, Ian Campbell wrote:

>> My guest is that turning off debug increases the optimisation level
>> which somehow makes gcc decide this code is now wrong.

> Well, I was right, but not how I thought...

> Turns out there are two tpm_tis.c's in our source base and I was looking
> at the wrong one ;-)

> The code in extras/mini-os/tpm_tis.c rather than
> stubdom/ioemu/hw/tpm_tis.c does look more like it might plausibly
> generate the error I'm seeing this is:

> tpm_tis.c:618:71: error: array subscript is below array bounds [-Werror=array-bounds]

> Line 618 does appear to include the use of a signed variable as an array
> offset, but I'm not sure how or why gcc is proving that it is negative.

> The code in question appears to be identical in 4.4.0 . I'm not sure
> what has changed.

> Perhaps Daniel (CCd) has some idea what is going on here.

> There's still the question of the error Sander is seeing which is
> stubdom/lwip-x86_64/src/core/dhcp.c:1359:71: error: array subscript is above array bounds [-Werror=array-bounds]

> Sander, did this used to work? If so can you identify when the
> regression occurred?

Hmm it's a pretty large window .. (essentially 4.4.0-release till now),
it was only due to Konrad's reporting of the apparent major performance regression that
ended up being a difference between debug=y and debug=n build, that made me wondering if
i would notice that effect .. so i tried a debug=n build.

If the build-test-system still has some slack, perhaps add a (weekly or only on a push) test that does a debug=n build ?
(instead of waiting for the end of the release cycle and somewhere in the RC's to fixup the things that
happen to turn up with debug=n (if my memory doesn't fail me too much, this has happened before)

(BTW i also use Debian Wheezy)
--
Sander

> Ian.

  parent reply	other threads:[~2014-07-22  7:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17  8:27 xen-unstable stubdom build-failure when debug=n Sander Eikelenboom
2014-07-17 14:13 ` Ian Campbell
2014-07-17 14:25   ` Sander Eikelenboom
2014-07-21 16:13     ` Ian Campbell
2014-07-21 16:21       ` Olaf Hering
2014-07-21 16:27         ` Ian Campbell
2014-07-22  7:09           ` Olaf Hering
2014-07-21 16:31         ` Olaf Hering
2014-07-21 16:43           ` Olaf Hering
2014-07-21 16:48             ` Ian Campbell
2014-07-21 16:51               ` Olaf Hering
2014-07-21 16:24       ` Ian Campbell
2014-07-21 17:43         ` Olaf Hering
2014-07-21 18:13           ` Daniel De Graaf
2014-07-22  6:13             ` Olaf Hering
2014-07-22  7:11         ` Sander Eikelenboom [this message]
2014-07-26 15:14           ` Sander Eikelenboom
2014-07-28  9:09             ` Ian Campbell
2014-07-28  9:47               ` Sander Eikelenboom
2014-07-28  9:51                 ` Ian Campbell
2014-07-28  9:55                 ` Olaf Hering
2014-07-28  9:22           ` Ian Campbell

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=70705199.20140722091106@eikelenboom.it \
    --to=linux@eikelenboom.it \
    --cc=Ian.Campbell@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.