All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Holger Freyther <holger@freyther.de>, poky@yoctoproject.org
Subject: Re: Weird python/OE issue on parsing
Date: Sat, 19 Dec 2015 23:06:06 +0000	[thread overview]
Message-ID: <1450566366.8461.89.camel@linuxfoundation.org> (raw)
In-Reply-To: <1450566176.8461.87.camel@linuxfoundation.org>

On Sat, 2015-12-19 at 23:02 +0000, Richard Purdie wrote:
> On Sat, 2015-12-19 at 13:15 +0100, Holger Freyther wrote:
> > Hi,
> > 
> > my build to track master of Poky has started to fail in a very odd
> > way. I can't reproduce it in a
> > local build but something is severely wrong:
> > 
> > ERROR: Error in compiling python function in
> > /home/oebuilds/jenkins/workspace/Yocto
> > -Master/label/OE/poky/meta/conf/distro/include/tclibc-glibc.inc,
> > line
> > -10000000000005:
> > ..
> > OverflowError: Python int too large to convert to C long
> > 
> > 
> > So somehow IN_PYTHON_EOF starts ending up in linenumber and then a
> > bit is subtracted from
> > it. Any idea how I can run into this?
> 
> It certainly seems related to the line numbering changes maybe
> interacting badly with EOF somehow. Is this on a 32 bit system? 

Putting:

+        if "tclibc-glibc" in realfile:
+            bb.warn(str(lineno))

into better_compile() shows up some nasty looking line numbers. I think
we need to better bounds checks on the line numbers and fix some of the
data that is being passed in for functions at EOF.

Cheers,

Richard


  reply	other threads:[~2015-12-19 23:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-19 12:15 Weird python/OE issue on parsing Holger Freyther
2015-12-19 12:30 ` Holger Freyther
2015-12-19 23:02 ` Richard Purdie
2015-12-19 23:06   ` Richard Purdie [this message]
2015-12-20  7:42   ` Holger Freyther

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=1450566366.8461.89.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=holger@freyther.de \
    --cc=poky@yoctoproject.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.