diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-09-05 13:30:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:25:43 +0100 |
commit | a9325ecad889556b0043244509ed767eea363e1e (patch) | |
tree | 852153559091a4307b5827e96d98161e07dbe7e1 /bitbake/lib/bb/ui/crumbs/runningbuild.py | |
parent | 88852a522d032b56f528b1f041ceb2ccb8b27694 (diff) | |
download | poky-a9325ecad889556b0043244509ed767eea363e1e.tar.gz |
hob: fix segfault on second build
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]
(Bitbake rev: 71ac7fda51ed80e9ef6d1a3bca653683893e4770)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 247ed5d5af..e429715e08 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): | |||
68 | self.model = RunningBuildModel() | 68 | self.model = RunningBuildModel() |
69 | self.sequential = sequential | 69 | self.sequential = sequential |
70 | 70 | ||
71 | def reset (self): | ||
72 | self.pids_to_task.clear() | ||
73 | self.tasks_to_iter.clear() | ||
74 | self.model.clear() | ||
75 | |||
71 | def handle_event (self, event, pbar=None): | 76 | def handle_event (self, event, pbar=None): |
72 | # Handle an event from the event queue, this may result in updating | 77 | # Handle an event from the event queue, this may result in updating |
73 | # the model and thus the UI. Or it may be to tell us that the build | 78 | # the model and thus the UI. Or it may be to tell us that the build |