From: Serhei Makarov Date: Fri, 12 Jan 2024 17:54:54 +0000 (-0500) Subject: eu-stacktrace WIP fixes: dwfl_report_end X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5da60c2deca1322ff49e4d874022648af45fbda;p=thirdparty%2Felfutils.git 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. --- 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;