Bug 6675 - Race condition removing locks on shutdown
Summary: Race condition removing locks on shutdown
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.7
Hardware: All Multiple
: Low normal
Target Milestone: Future
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-09-03 11:18 UTC by Ross Burton
Modified: 2015-08-01 06:35 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
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 Ross Burton 2014-09-03 11:18:34 UTC
The controller process doesn't appear to wait for all of the children to quit before exiting, which leads to this race happening:

$ bitbake m4 ; bitbake m4
NOTE: Started PRServer with DBfile: /home/ross/Yocto/poky/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44208, PID: 5690
Parsing recipes: 100% |###############################################################################| ETA:  00:00:00
Parsing of 909 .bb files complete (0 cached, 909 parsed). 1303 targets, 16 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.23.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Debian-7.6"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6+snapshot-20140903"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:83ebcb1f0c6ec48c526d14324b3b2037f0f4fe43"
meta-intel
meta-crownbay
meta-romley
meta-nuc          = "master:b7f3ccf08a006835a411b830d78dd4296996a3ca"
meta-minnow       = "master:743fa66aa0cc2265a9c1f293c305828d90b4fbbd"
meta-ross         = "master:d877c57331ee67cae756dc4c7b432e492c20f706"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 411 tasks of which 411 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
ERROR: Only one copy of bitbake should be run against a build directory
Comment 1 Richard Purdie 2015-07-31 15:46:28 UTC
Paul/I have some patches out for review for this.