Bug 1890107 - Cant see code attached in dwarf info for function present in code
Summary: Cant see code attached in dwarf info for function present in code
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1894004
TreeView+ depends on / blocked
 
Reported: 2020-10-21 12:10 UTC by Jiri Olsa
Modified: 2021-05-25 16:55 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1894004 (view as bug list)
Environment:
Last Closed: 2021-05-25 16:55:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
preprocessed evrgnini object that contains acpi_ev_default_region_setup (1.13 MB, text/plain)
2020-10-22 12:53 UTC, Jiri Olsa
no flags Details

Description Jiri Olsa 2020-10-21 12:10:47 UTC
In recent kernel build we can see several dwarf info records
not connected to actual code address.

Like for acpi_ev_default_region_setup function:

 <1><52a3388>: Abbrev Number: 40 (DW_TAG_subprogram)
    <52a3389>   DW_AT_external    : 1
    <52a3389>   DW_AT_name        : (indirect string, offset: 0x221ddf): acpi_ev_default_region_setup
    <52a338d>   DW_AT_decl_file   : 23
    <52a338e>   DW_AT_decl_line   : 227
    <52a338f>   DW_AT_decl_column : 1
    <52a3390>   DW_AT_prototyped  : 1
    <52a3390>   DW_AT_type        : <0x52a0e47>
    <52a3394>   DW_AT_sibling     : <0x52a33c9>

 <1><52b6a4d>: Abbrev Number: 37 (DW_TAG_subprogram)
    <52b6a4e>   DW_AT_external    : 1
    <52b6a4e>   DW_AT_name        : (indirect string, offset: 0x221ddf): acpi_ev_default_region_setup
    <52b6a52>   DW_AT_decl_file   : 1
    <52b6a53>   DW_AT_decl_line   : 425
    <52b6a55>   DW_AT_decl_column : 1
    <52b6a56>   DW_AT_prototyped  : 1
    <52b6a56>   DW_AT_type        : <0x52b4191>
    <52b6a5a>   DW_AT_sibling     : <0x52b6a93>

it's missing low_pc/high_pc/range attribute that would connect it to the code,
while the code is actualy there:

ffffffff815fdea5 <acpi_ev_default_region_setup>:
ffffffff815fdea5:       e8 46 49 a6 ff          callq  ffffffff810627f0 <__fentry__>
ffffffff815fdeaa:       ff ce                   dec    %esi
ffffffff815fdeac:       b8 00 00 00 00          mov    $0x0,%eax
ffffffff815fdeb1:       48 0f 44 d0             cmove  %rax,%rdx
ffffffff815fdeb5:       48 89 11                mov    %rdx,(%rcx)
ffffffff815fdeb8:       c3                      retq

$ gcc --version
gcc (GCC) 10.2.1 20201005 (Red Hat 10.2.1-5)

This might be connected to BZ1889516, at least it started to show in the same time.

This bug and BZ1889516 is really crucial for BPF to have correct BTF data generation.

Comment 1 Mark Wielaard 2020-10-21 12:50:03 UTC
Also note that the whole acpi_ev_default_region_setup code range seems to have disappeared from the .debug_line table.

Comment 2 Jiri Olsa 2020-10-22 12:53:18 UTC
Created attachment 1723511 [details]
preprocessed evrgnini object that contains acpi_ev_default_region_setup

Comment 4 Fedora Program Management 2021-04-29 16:41:53 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2021-05-25 16:55:05 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.