summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-06 11:36:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-15 15:27:49 +0100
commit9a4acc8ff3e59fa9ad74af04eae9462099b3111d (patch)
tree1217e86882d16da0316adb9f561e04ab51ccd057 /meta/lib/oeqa/selftest/cases
parente643a5b966756f383e71c138944e4e1c65c8cd46 (diff)
downloadpoky-9a4acc8ff3e59fa9ad74af04eae9462099b3111d.tar.gz
dwarfsrcfiles: Avoid races over debug-link files
We use dwarfsrcfiles in package.bbclass to list the source files used by a binary. This is done before they're stripped and linked to debug symbols in separate files. It is possible a binary may already have a link to separate debug symbols, e.g. some of the test binaries in lttng-tools ptest. In those cases, the linked binary may be changed by package.bbclass code whilst dwarfsrcfiles is reading it. That would result in a rare SIGBUS race causing the binary to fail. To avoid this, break the debug file search path so no other binaries are found. Also fix a segfault if no binary is specified while here. [YOCTO #14400] (From OE-Core rev: 317e334518c6394ecba4a3fdd4ba18b185822d22) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit efef732859e265533acf16f2f4da3b29d50e0df4) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
0 files changed, 0 insertions, 0 deletions