https://sourceware.org/bugzilla/show_bug.cgi?id=33854

            Bug ID: 33854
           Summary: elfutils 0.194 introduced regression in
                    libdwfl_stacktrace dwflst_perf_sample_getframes
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: serhei at serhei dot io
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

In commit 3ce0d5ed, I missed the fact that dwflst_perf_sample_getframes needs
to handle the case of an unattached Dwfl, when dwfl->process->ebl is not yet
available to translate the registers. Thus, it needs to attach the Dwfl with
the same code as in the dwflst_sample_getframes() implementation.

(Incidentally, this means dwflst_perf_sample_getframes is not a straightforward
wrapper of the existing code, so (cf patch review comments at the time) we
can't get rid of it in favour of having the client use dwflst_sample_getframes,
since the client would need to cross encapsulation boundaries to handle an
unattached Dwfl.)

I have a fix for this in my branch (commit 205f8b5f1) which I'll clean up and
submit to the main branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to