diff options
author | Serhei Makarov <serhei@serhei.io> | 2024-01-12 12:54:54 -0500 |
---|---|---|
committer | Serhei Makarov <serhei@serhei.io> | 2024-01-12 12:54:57 -0500 |
commit | b5da60c2deca1322ff49e4d874022648af45fbda (patch) | |
tree | b16cd90e1a4349944256b0fbe75f359671b6f9c4 | |
parent | d2c7fea807a4fe9ff9c59bf4b0b63bbc2341dee3 (diff) |
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.
-rw-r--r-- | src/stacktrace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stacktrace.c b/src/stacktrace.c index 1e1b2be2..5cd80891 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; |