diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-15 12:55:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-17 11:57:27 +0100 |
commit | b8be48c718a40bf0abafa9aa15a33dfc6ce9937c (patch) | |
tree | 76ddc12736bce95601947d9d70329fc8146db9b3 /bitbake/bin | |
parent | b635e7980f9222fb27355c411bb49235d447fa16 (diff) | |
download | poky-b8be48c718a40bf0abafa9aa15a33dfc6ce9937c.tar.gz |
bitbake: bitbake-worker: Add debug when unpickle fails
We occasionally see bitbake-worker failing and from the logs, an unpickle error
occurs. Add more debug so we can further debug this next time it fails.
[YOCTO #14595]
(Bitbake rev: fe8105cc06beca8240b76ea366a1eff5aa9c5412)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-worker | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index c8eb65567f..bf96207edc 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -418,7 +418,11 @@ class BitbakeWorker(object): | |||
418 | if self.queue.startswith(b"<" + item + b">"): | 418 | if self.queue.startswith(b"<" + item + b">"): |
419 | index = self.queue.find(b"</" + item + b">") | 419 | index = self.queue.find(b"</" + item + b">") |
420 | while index != -1: | 420 | while index != -1: |
421 | func(self.queue[(len(item) + 2):index]) | 421 | try: |
422 | func(self.queue[(len(item) + 2):index]) | ||
423 | except pickle.UnpicklingError: | ||
424 | workerlog_write("Unable to unpickle data: %s\n" % ":".join("{:02x}".format(c) for c in self.queue)) | ||
425 | raise | ||
422 | self.queue = self.queue[(index + len(item) + 3):] | 426 | self.queue = self.queue[(index + len(item) + 3):] |
423 | index = self.queue.find(b"</" + item + b">") | 427 | index = self.queue.find(b"</" + item + b">") |
424 | 428 | ||