Bug 5683

Summary: sstate exception when leaving devshell
Product: [Build System, Metadata & Runtime] BitBake Reporter: Ross Burton <ross.burton>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 1.6   
Target Milestone: ---   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2013-12-20 16:22:12 UTC
After closing the terminal in a devshell session, this happens:

ERROR: Execution of event handler 'sstate_eventhandler' failed
Traceback (most recent call last):
  File "sstate_eventhandler(e)", line 13, in sstate_eventhandler(e=<bb.build.TaskSucceeded object at 0xa8c6d50>)
  File "/home/ross/Yocto/poky/bitbake/lib/bb/siggen.py", line 290, in dump_this_task(outfile='/data/poky-master/sstate/93/sstate-glib-2.0-x86_64-poky-linux-2.38.2-r0-x86_64-3-93bf8c8830aa11636485ae198b86ed0e_devshell.tgz.siginfo', d=<bb.data_smart.DataSmart object at 0xb180f50>):
         task = "do_" + d.getVar("BB_CURRENTTASK", True)
    >    bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile")
     
  File "/home/ross/Yocto/poky/bitbake/lib/bb/siggen.py", line 239, in SignatureGeneratorOEBasicHash.dump_sigtask(fn='/home/ross/Yocto/poky/meta/recipes-core/glib-2.0/glib-2.0_2.38.2.bb', task='do_devshell', stampbase='/data/poky-master/sstate/93/sstate-glib-2.0-x86_64-poky-linux-2.38.2-r0-x86_64-3-93bf8c8830aa11636485ae198b86ed0e_devshell.tgz.siginfo', runtime='customfile'):
                 with os.fdopen(fd, "wb") as stream:
    >                p = pickle.dump(data, stream, -1)
                     stream.flush()
PicklingError: Can't pickle <COWDict Level: 1 Current Keys: 52>: attribute lookup bb.COW.C failed

(with poky bc1e359aaefeeddf8525b46eb80ac14db7f637b3)