Files
poky/meta/recipes-devtools
Richard Purdie 5c928099ed 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: efef732859e265533acf16f2f4da3b29d50e0df4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-07 11:39:42 +01:00
..
2021-06-17 00:07:05 +01:00
2021-05-11 11:54:26 +01:00
2021-07-02 23:14:32 +01:00
2021-06-26 11:27:16 +01:00
2021-01-20 22:46:18 +00:00
2021-05-21 15:18:23 +01:00
2021-06-26 11:27:16 +01:00
2021-06-27 08:38:34 +01:00
2021-06-06 23:16:51 +01:00
2021-06-17 00:07:05 +01:00
2021-04-18 11:37:25 +01:00
2021-05-28 06:41:03 +01:00
2021-06-17 13:42:31 +01:00
2021-06-12 22:54:14 +01:00
2021-06-12 22:54:14 +01:00
2020-07-27 19:58:09 +01:00
2021-06-26 11:27:16 +01:00
2021-06-17 22:20:44 +01:00
2021-04-23 10:12:10 +01:00
2021-06-17 00:07:05 +01:00
2020-03-08 08:21:11 +00:00
2021-06-17 00:07:05 +01:00
2021-05-25 22:36:08 +01:00
2021-06-26 11:27:16 +01:00
2021-01-01 23:15:13 +00:00
2021-05-02 23:20:12 +01:00
2021-06-06 23:16:51 +01:00
2021-05-09 23:30:16 +01:00
2021-05-31 14:31:01 +01:00
2021-06-27 08:38:34 +01:00
2021-04-26 14:14:42 +01:00
2021-04-18 11:37:25 +01:00
2021-05-06 08:41:26 +01:00
2021-05-11 11:54:26 +01:00
2021-05-25 22:36:08 +01:00
2021-06-11 23:50:59 +01:00