From b5da60c2deca1322ff49e4d874022648af45fbda Mon Sep 17 00:00:00 2001 From: Serhei Makarov Date: Fri, 12 Jan 2024 12:54:54 -0500 Subject: [PATCH] eu-stacktrace WIP fixes: dwfl_report_end There are several things to improve to get parity with eu-stack in terms of CFI handling; this is the first fix. --- src/stacktrace.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/stacktrace.c b/src/stacktrace.c index 1e1b2be27..5cd808915 100644 --- a/src/stacktrace.c +++ b/src/stacktrace.c @@ -861,6 +861,13 @@ sysprof_init_dwfl (struct sysprof_unwind_info *sui, #endif return NULL; } + err = dwfl_report_end (dwfl, NULL, NULL); + if (err != 0) + { + fprintf(stderr, "DEBUG dwfl_report_end pid %lld: %s", + (long long) pid, dwfl_errmsg (-1)); + return NULL; + } /* TODO: Check if elf needs to be freed in sample_detach. */ Elf *elf = NULL; -- 2.47.2