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-02-13 17:01:12 +00:00
2021-04-20 13:56:48 +01:00
2021-03-20 18:54:56 +00:00
2021-05-13 11:34:15 +01:00
2021-05-25 10:05:19 +01:00
2021-02-27 22:40:42 +00:00
2021-06-21 11:09:56 +01:00
2021-05-11 11:54:26 +01:00
2021-02-26 15:21:21 +00:00
2020-10-30 13:22:48 +00:00
2021-07-02 23:14:32 +01:00
2021-06-17 22:20:44 +01:00
2021-06-26 11:27:16 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-01-20 22:46:18 +00:00
2021-05-21 15:18:23 +01:00
2021-02-26 15:21:21 +00:00
2021-06-26 11:27:16 +01:00
2019-07-11 09:32:50 +01:00
2021-03-02 20:39:35 +00:00
2021-06-27 08:38:34 +01:00
2021-07-07 11:39:42 +01:00
2021-05-09 23:30:15 +01:00
2021-06-06 23:16:51 +01:00
2021-06-17 00:07:05 +01:00
2019-09-27 13:02:16 +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-22 15:18:11 +01:00
2021-06-17 13:42:31 +01:00
2021-06-12 22:54:14 +01:00
2021-02-26 15:21:21 +00:00
2021-06-26 11:27:16 +01:00
2021-06-12 22:54:14 +01:00
2021-04-18 11:37:25 +01:00
2021-02-26 15:21:21 +00:00
2021-05-28 06:41:02 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-05-11 11:54:26 +01:00
2020-07-27 19:58:09 +01:00
2021-06-17 22:20:44 +01:00
2021-06-26 11:27:16 +01:00
2021-05-28 06:41:03 +01:00
2021-05-31 14:31:01 +01:00
2021-06-17 22:20:44 +01:00
2021-04-18 11:37:26 +01:00
2021-04-23 10:12:10 +01:00
2021-03-02 20:39:35 +00:00
2021-06-17 00:07:05 +01:00
2020-03-08 08:21:11 +00:00
2021-02-26 15:21:21 +00:00
2021-06-17 00:07:05 +01:00
2021-05-25 22:36:08 +01:00
2021-02-26 15:21:21 +00:00
2021-06-26 11:27:16 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-06-11 23:50:58 +01:00
2021-06-11 23:50:58 +01:00
2021-02-26 15:21:21 +00: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-07-05 10:59:40 +01:00
2021-05-09 23:30:16 +01:00
2021-05-31 14:31:01 +01:00
2020-01-19 13:24:38 +00:00
2021-04-18 11:37:23 +01:00
2021-07-05 10:59:40 +01:00
2021-06-26 11:27:17 +01:00
2021-06-27 08:38:34 +01:00
2021-02-16 11:28:17 +00:00
2021-05-20 12:32:28 +01:00
2021-04-26 14:14:42 +01:00
2021-04-18 11:37:25 +01:00
2021-03-23 22:51:25 +00:00
2021-05-27 13:21:38 +01:00
2021-05-06 08:41:26 +01:00
2021-02-26 15:21:21 +00:00
2021-05-11 11:54:26 +01:00
2021-03-01 11:12:16 +00:00
2021-03-01 11:12:16 +00:00
2021-06-12 22:54:14 +01:00
2021-02-26 15:21:21 +00:00
2021-05-25 22:36:08 +01:00
2021-02-26 15:21:21 +00:00
2021-06-11 23:50:59 +01:00
2021-06-17 13:42:31 +01:00
2021-02-26 15:21:21 +00:00