Bug 11132 - Toaster fails to complete image build due to buildhistory/toaster_buildhistory_dump failure
Summary: Toaster fails to complete image build due to buildhistory/toaster_buildhistor...
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M4
Assignee: David Reyna
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-06 21:57 UTC by brian avery
Modified: 2017-04-13 21:51 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brian avery 2017-03-06 21:57:06 UTC
Building core-image-minimal qemux86 on an ubuntu 14.04 machine gives the following error:
NOTE: Logging error 2: {'pathname': '/big/src/intel/myBugs/poky/bitbake/lib/bb/event.py', 'level': 2, 'message': "Execution of event handler 'toaster_buildhistory_dump' failed", 'lineno': 112, 'build': <Build: 4 Project object core-image-minimal>}
ERROR: Execution of event handler 'toaster_buildhistory_dump' failed
Traceback (most recent call last):
  File "/big/src/intel/myBugs/poky/meta/classes/toaster.bbclass", line 268, in toaster_buildhistory_dump(e=<bb.event.BuildCompleted object at 0x7f40477fb748>):
                         line = line.rstrip(";")
    >                    psize, px = line.split("\t")
                         punit, pname = px.split(" ")
ValueError: too many values to unpack (expected 2)

---
and toaster stalls out.

---
Comment 1 David Reyna 2017-03-08 15:53:36 UTC
I have replicated the error, and I have the 10849 fix in the tree.
Comment 2 David Reyna 2017-03-08 16:33:42 UTC
The format of this input line has changed from ...
  '3160\tKiB libc6\n'
... to ...
  '3160\tKiB\tlibc6\n'

The fix is:
-   psize, px = line.split("\t")
-   punit, pname = px.split(" ")
+   psize, punit, pname = line.split("\t")
Comment 3 David Reyna 2017-04-13 21:51:59 UTC
Fix by 12cc4f550a001de18d09d9b2da8a9c90e9bb2f24.