Files
mesa/src/util
Matt Turner 05dc4eb536 util: Force emission of stack frame in stack unit test
The `capture_not_overwritten` unit test captures and compares two
backtraces -- one from inside a call to `func_c` and one outside -- and
confirms that they are not identical. That is, that `func_c` is in the
backtrace.

On 32-bit x86, without `-fno-omit-frame-pointer`, the function will not
emit a stack frame. As a result, the unit test fails.

The fix is to compile `func_c` with the flag `-fno-omit-frame-pointer`
to prevent the compiler from optimizing out the stack frame which is
otherwise unneeded.

Bug: https://bugs.gentoo.org/823774
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4091
Fixes: d0d14f3f64 ("util: Add unit test for stack backtrace caputure")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30622>
2024-08-13 20:35:23 +00:00
..
2023-11-02 21:03:46 +00:00
2023-12-06 07:22:02 +00:00
2024-04-22 01:42:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2023-10-09 23:37:52 +00:00
2024-01-16 02:15:22 +00:00
2024-08-13 20:35:23 +00:00
2023-10-25 17:27:47 +00:00
2024-02-26 15:37:58 +00:00
2024-02-26 15:37:58 +00:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2023-10-30 12:35:07 +00:00
2024-06-07 18:29:20 +00:00
2023-05-19 16:30:44 +00:00
2024-07-15 19:28:59 +00:00
2022-11-24 04:33:07 +00:00
2024-06-07 18:29:20 +00:00