Skip to content

Commit 2faf4f2

Browse files
committed
breakpseudo: Add demo of breaking pseudo with symlink creation
We sometimes see https://bugzilla.yoctoproject.org/show_bug.cgi?id=14957 on the autobuilder. This recipe replicates that failure. Usually it occurs in pciutils in creation of libpci.so. The issue is the makefile can result in multiple calls to ln -sf in parallel which race and confuse pseudo. We have two issues: a) it would be nice to fix the picutils makefiles so they don't race and call this multiple times b) pseudo should fail like this I'm sharing this reproducer since it moves the bug from "I can't understand or reproduce this" to a "there is a reproducer". I commonly get complaints that bugs aren't reproducible, this one now is. I'm hoping that means I will get some help on it. To reprocude, run "bitbake breakpseudo" and watch the inoode mismatch errors. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 61833a3 commit 2faf4f2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
D=$1
4+
5+
function run()
6+
{
7+
for run in $(seq 10); do
8+
ln -sf file ${D}/file2
9+
ls -la ${D}/file2
10+
done
11+
}
12+
13+
run &
14+
run &
15+
run &
16+
run &
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
LICENSE = "MIT"
3+
SUMMARY = "test to break psuedo"
4+
DESCRIPTION = "test to break psuedo"
5+
SRC_URI = "file://run.sh"
6+
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
7+
FILES:${PN} = "/file*"
8+
9+
inherit allarch
10+
11+
do_install () {
12+
touch ${D}/file
13+
14+
${UNPACKDIR}/run.sh ${D}
15+
16+
sleep 2
17+
}

0 commit comments

Comments
 (0)