Files
poky/meta/recipes-devtools
Richard Purdie 9a4acc8ff3 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>
2021-07-15 15:27:49 +01:00
..
2020-09-17 12:51:24 +01:00
2021-05-13 22:10:06 +01:00
2020-02-03 13:03:31 +00:00
2020-09-17 12:51:24 +01:00
2021-05-20 12:36:42 +01:00
2021-02-05 23:37:03 +00:00
2021-04-06 22:45:36 +01:00
2020-09-10 19:07:40 +01:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2020-05-22 16:23:23 +01:00
2019-02-15 16:05:37 +00:00
2021-01-09 09:17:17 +00:00
2021-06-03 16:30:56 +01:00
2021-07-15 15:27:49 +01:00
2021-07-10 22:46:19 +01:00
2021-06-19 16:59:29 +01:00
2021-05-20 12:36:41 +01:00
2021-03-18 21:20:24 +00:00
2021-06-03 16:30:56 +01:00
2021-06-19 16:59:29 +01:00