From: Joshua Lock <josh@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 2/2] hob: fix segfault on second build
Date: Mon, 05 Sep 2011 09:39:38 -0700 [thread overview]
Message-ID: <1315240780.2198.3.camel@scimitar> (raw)
In-Reply-To: <def7176ad3376131b7ef8404f3f223d9708f5a6d.1315225427.git.paul.eggleton@linux.intel.com>
On Mon, 2011-09-05 at 13:30 +0100, Paul Eggleton wrote:
> Some internal lists were not being cleared, resulting in incorrect
> program flow on the second build, causing a structure to be accessed
> incorrectly which resulted in a segfault.
>
> Fixes [YOCTO #1332]
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Excellent find Paul!
> ---
> bitbake/lib/bb/ui/crumbs/runningbuild.py | 5 +++++
> bitbake/lib/bb/ui/hob.py | 2 +-
> 2 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
> index 97d1ebd..c18bd87 100644
> --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
> +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
> @@ -68,6 +68,11 @@ class RunningBuild (gobject.GObject):
> self.model = RunningBuildModel()
> self.sequential = sequential
>
> + def reset (self):
> + self.pids_to_task.clear()
> + self.tasks_to_iter.clear()
> + self.model.clear()
> +
> def handle_event (self, event, pbar=None):
> # Handle an event from the event queue, this may result in updating
> # the model and thus the UI. Or it may be to tell us that the build
> diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
> index f2a9ee5..76e9237 100644
> --- a/bitbake/lib/bb/ui/hob.py
> +++ b/bitbake/lib/bb/ui/hob.py
> @@ -484,7 +484,7 @@ class MainWindow (gtk.Window):
>
> def toggle_createview(self):
> self.set_menus_sensitive(True)
> - self.build.model.clear()
> + self.build.reset()
> self.nb.set_current_page(0)
>
> def build_complete_cb(self, running_build):
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
next prev parent reply other threads:[~2011-09-05 16:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-05 12:30 [PATCH 0/2] Hob second build fixes Paul Eggleton
2011-09-05 12:30 ` [PATCH 1/2] hob: clear out temporary file list after deleting Paul Eggleton
2011-09-05 16:39 ` Joshua Lock
2011-09-05 12:30 ` [PATCH 2/2] hob: fix segfault on second build Paul Eggleton
2011-09-05 16:39 ` Joshua Lock [this message]
2011-09-05 19:13 ` [PATCH 0/2] Hob second build fixes Richard Purdie
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=1315240780.2198.3.camel@scimitar \
--to=josh@linux.intel.com \
--cc=bitbake-devel@lists.openembedded.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.