Files
poky/meta/recipes-devtools
Richard Purdie 4c9118c95c 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: 52382a03c10a6985ecb6ada24523cb9daf9c6201)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit efef732859e265533acf16f2f4da3b29d50e0df4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-20 19:05:45 +01:00
..
2021-07-20 19:05:45 +01:00
2021-02-17 11:01:17 +00:00
2021-02-19 11:17:10 +00:00
2021-05-15 17:18:21 +01:00
2021-01-20 22:46:18 +00:00
2021-03-10 10:30:39 +00:00
2021-03-20 18:54:56 +00:00
2021-06-03 16:31:02 +01:00
2021-03-31 00:06:23 +01:00
2021-07-20 19:05:45 +01:00
2020-07-27 19:58:09 +01:00
2021-03-10 10:30:39 +00:00
2021-03-01 11:12:16 +00:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2019-02-15 16:05:37 +00:00
2020-12-31 11:53:26 +00:00
2021-01-01 23:15:13 +00:00
2021-05-11 12:02:29 +01:00
2021-07-20 19:05:45 +01:00
2020-06-09 13:13:59 +01:00
2021-06-03 16:31:02 +01:00
2021-06-20 09:43:39 +01:00
2021-04-30 14:37:26 +01:00
2021-05-04 22:57:51 +01:00
2021-05-15 17:18:21 +01:00
2021-03-20 18:54:56 +00:00
2021-03-01 11:12:16 +00:00
2021-03-06 22:39:04 +00:00