[bitbake-devel] [PATCH 1/4] runqueue: Fix corruption issue

Richard Purdie richard.purdie at linuxfoundation.org
Mon Aug 12 15:14:15 UTC 2019


We need to copy this set, not modify the original else all kinds
of weird and bad things break, mostly from circular references.
We'll not go into how much sleep I lost tracking down the fallout
from this.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index bb61087359..2bf19b9778 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2124,7 +2124,7 @@ class RunQueueExecute:
     # as most code can't handle them
     def build_taskdepdata(self, task):
         taskdepdata = {}
-        next = self.rqdata.runtaskentries[task].depends
+        next = self.rqdata.runtaskentries[task].depends.copy()
         next.add(task)
         next = self.filtermcdeps(task, next)
         while next:
-- 
2.20.1



More information about the bitbake-devel mailing list