Bug 14379 - possible do_packagedata_setscene race condition
Summary: possible do_packagedata_setscene race condition
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2021-05-06 10:14 UTC by Alexandre Belloni
Modified: 2021-07-02 06:27 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
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 Alexandre Belloni 2021-05-06 10:14:25 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1442/steps/14/logs/stdio

ca-certificates-20210119-r0 do_packagedata_setscene fails with:

Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./* /home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64' returned non-zero exit status 1.
Subprocess output:
cp: cannot create directory '/home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64/shlibs2': File exists
Comment 1 Jon Mason 2021-05-21 14:28:28 UTC
Reoccurrence
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/2109/steps/14/logs/stdio

oe-selftest-fedora
fedora33-ty-1
Comment 2 Richard Purdie 2021-06-28 13:06:07 UTC
Related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=13999
Comment 3 Richard Purdie 2021-06-28 13:21:52 UTC
The copyhardlinktree() code copies directories first, then copies files in the command here that failed so it is as if something deleted the directory in parallel, then there were races over creation of it. That could be from manifest cleaning as per bug 13999.