Bug 12158 - ResourceWarning (sometimes)
Summary: ResourceWarning (sometimes)
Status: RESOLVED WORKSFORME
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.99
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-10-03 08:25 UTC by Robert Berger
Modified: 2018-11-13 18:57 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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