On Tue, Aug 22, 2023 at 10:40 AM Frode Nordahl <[email protected]>
wrote:
> Some systems may provide backtrace() in libc but for some reason
> not provide any frames when attempting to use it.
>
> On those systems the fatal_signal_init() function currently logs
> this debug message: "Capturing of dummy backtrace has failed."
>
> A consequence of this logging may be false negative test results.
>
> Logging the fact that backtrace() does not work has limited value
> on a production system and I propose we drop it.
>
> Fixes: 759a29dc2d97 ("backtrace: Extend the backtrace functionality.")
> Reported-at: https://launchpad.net/bugs/2032623
> Signed-off-by: Frode Nordahl <[email protected]>
> ---
> lib/fatal-signal.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c
> index 77f0c87dd..953150074 100644
> --- a/lib/fatal-signal.c
> +++ b/lib/fatal-signal.c
> @@ -138,10 +138,6 @@ fatal_signal_init(void)
>
> backtrace_capture(&dummy_bt);
>
> - if (!dummy_bt.n_frames) {
> - VLOG_DBG("Capturing of dummy backtrace has failed.");
> - }
> -
> fatal_signal_create_wakeup_events();
>
> #ifdef _WIN32
> --
> 2.40.1
>
>
Hi Frode,
I wonder why the test fails on the debug message? Nevertheless I don't mind
dropping it whatsoever.
Acked-by: Ales Musil <[email protected]>
Thanks,
Ales
--
Ales Musil
Senior Software Engineer - OVN Core
Red Hat EMEA <https://www.redhat.com>
[email protected]
<https://red.ht/sig>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev