Bug 2182059
| Summary: | eu-addr2line -i option to display inlined functions doesn't work with LTO (-flto) and Dwarf5 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Mark Wielaard <mjw> |
| Component: | elfutils | Assignee: | Mark Wielaard <mjw> |
| elfutils sub component: | system-version | QA Contact: | Martin Cermak <mcermak> |
| Status: | VERIFIED --- | Docs Contact: | Petr Hybl <phybl> |
| Severity: | medium | ||
| Priority: | unspecified | CC: | casantos, mcermak, mjw, phybl, qe-baseos-tools-bugs, vikpatil, wcohen |
| Version: | 9.2 | Keywords: | Triaged |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | elfutils-0.189-1.el9 | Doc Type: | Bug Fix |
| Doc Text: |
This is actually 2 bugs. See also (the end of) the description.
1) -C (--demangle) plus -i (==inline) wouldn't work together
Cause: eu-addr2line -C argument would made any next single character argument "disappear".
Consequence: eu-addr2line -Ci would work differently from eu-addr2line -iC (the first only demangles, but does not show inlined function names)
Fix: -C doesn't treat the next character as argument anymore
Result: eu-addre2line -Ci will now both demangle the result and show inlined functions.
2) The eu-addr2line -i inlines option doesn't work when used on a binary compiled with gcc -flto
Cause: The libdw dwarf_getscopes function would be unable to find an abstract orgin definition of a function that was compiled with gcc -flto.
Consequence: eu-addr2line would be unable to show inlined functions for code compiled with the gcc -flto option.
Fix: The libdw dwarf_getscopes now looks in the correct CU (compile unit) for the inlined scope.
Result: eu-addr2line -i will now show inlined functions even when the binary was compiled with gcc -flto. And the libdw dwarf_getscopes function will include inlined scopes for such compiled code.
|
Story Points: | --- |
| Clone Of: | 2162495 | Environment: | |
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2162495 | ||
| Bug Blocks: | |||
|
Description
Mark Wielaard
2023-03-27 12:38:51 UTC
|