Bug 12158

Summary: ResourceWarning (sometimes)
Product: [Build System, Metadata & Runtime] BitBake Reporter: Robert Berger <pokylinux>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher
Version: 2.4   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Robert Berger 2017-10-03 08:25:20 UTC
e.g.:

WARNING: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-rocko-multi-v7-core-image-minimal/build/meta-mainline/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom_4.9.44.bb: /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-rocko-multi-v7-core-image-minimal/build/bitbake/lib/bb/codeparser.py:411: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 39688)>
  "pipeline": lambda x: (x.commands, None),

corresponding recipe:

https://github.com/RobertBerger/meta-mainline/blob/rocko-training-v4.9.x/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom_4.9.44.bb
Comment 1 Robert Berger 2017-10-03 08:48:18 UTC
more warnings:

https://pastebin.com/cwbHZypr
Comment 2 Richard Purdie 2018-11-13 17:42:37 UTC
Hi Robert,

Are you still seeing these? 

I tried this recipe and couldn't reproduce the error against master. We do sometimes see them in oe-selftest but they seem to be very rare now and that has a separate bug open for it 12780.

We did fix a number of these issues and may of them were resolved but there seems to be at least one "leak" left which I've been unable to narrow down.

I'd love someone to have a specific reproducer for it!

I'm going to close this as working and leave 12780 open as we do see that one occasionally on the autobuilder. If you can reproduce this still on master, please do let use know though!

Cheers,

Richard
Comment 3 Robert Berger 2018-11-13 18:57:56 UTC
Hi Richard,

I see them on Sumo (in my docker container). 
Currently on the road again preaching the OE/YP;)

As soon as I'll find some time I'll try with something more recent and see if they appear again.

Regards,

Robert