| Summary: | pseudo crashing on aarch64/ubuntu 20.04 with coreutils-native | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Pseudo | Reporter: | Ross Burton <ross.burton> |
| Component: | pseudo | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | naveen.kumar.saini, richard.purdie, yp.pseudo.watcher, yp.watcher |
| Version: | unspecified | ||
| Target Milestone: | 3.3 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
I can reproduce on two aarch64 boxes running Ubuntu 20.04. RP can not reproduce on an x86-64 running 20.04. Will continue trying to isolate the issue. Reproduces on the aarch64 ubuntu 20.04 and 18.04 autobuilder workers. Does not reproduce on the ubuntu 20.04 x86-64 worker. Looking very much like its aarch64-specific. pseudo run_tests.sh fails on my aarch64 builder, but passes on my x86 machine. $ ./run_tests.sh setfacl: testdir/f1: Operation not supported 92: Fail, unable to call setfacl test-acl: Failed. getfattr: f1: Operation not supported setfattr: f1: Operation not supported test-xattr: Failed. Ignore comment #4, that's what happens when you don't have libattr/libacl headers. So I can reliably make cp segfault inside pseudo doing xattr operations inside bitbake. I cannot reliably make the same happen outside. I have a test case, running in the same file system (tmpfs), doing the same cp call with the same cp binary, and it works fine. *** Bug 14173 has been marked as a duplicate of this bug. *** So RP's hint when I first saw this was 100% correct, I don't know why my testing failed when I tried his solution. The problem is that cp links to libattr which ships its own llistxattr() functions which simply call the libc functions. pseudo works around that by using versioned lookup, but glibc on arm has the symbols in a different version. Patches for pseudo are on the list. Fixed on the oe-core branch and upgraded in oe-core 11a3a9203ad595e7fa92acf442a7f3216d6e3830. |
If the host is ubuntu 20.04 (possibly more) and a recipe DEPENDS=coreutils-native, then during do_package_write_rpm and friends `cp` (from coreutils-native) segfaults. Attaching a gdb shows the crash is happening inside pseudo: #0 0x0000fffff7f95780 in ?? () from target:libpseudo.so #1 0x0000fffff7f95dc0 in pseudo_fix_path () from target:libpseudo.so #2 0x0000fffff7f6a6a0 in pseudo_root_path () from target:libpseudo.so #3 0x0000fffff7f85ab0 in llistxattr () The current reproducer is ubuntu 20.04 on aarch64. Can't make it happen on ubuntu 18.04 on x86-64, I'm guessing this is a glibc version thing.