Bug 11132

Summary: Toaster fails to complete image build due to buildhistory/toaster_buildhistory_dump failure
Product: [Build System, Metadata & Runtime] Toaster Reporter: brian avery <brian.avery>
Component: toasterAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium CC: jessica.zhang, stanciux.mihail
Version: 2.3   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.