public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "robert at ocallahan dot org" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/28000] New: Fedora glibc debuginfo .dwz contains a partial unit with needed debuginfo but which is not imported
Date: Mon, 21 Jun 2021 03:33:49 +0000	[thread overview]
Message-ID: <bug-28000-11298@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 28000
           Summary: Fedora glibc debuginfo .dwz contains a partial unit
                    with needed debuginfo but which is not imported
           Product: dwz
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: robert at ocallahan dot org
                CC: dwz at sourceware dot org
  Target Milestone: ---

The Fedora 34 package glibc-debuginfo-2.33-16.fc34.x86_64 package has glibc
symbols in
/usr/lib/debug/.build-id/08/1490fc18239fa63189a53e526a68ee5d19c571.debug whose
.gnu_debugaltlink is /usr/lib/debug/usr/.dwz/glibc-2.33-16.fc34.x86_64.

/usr/lib/debug/.build-id/08/1490fc18239fa63189a53e526a68ee5d19c571.debug has a
compilation unit at 0x795fa that imports the partial unit at 0x1f63c from the
.dwz file. That partial unit contains a variable declaration whose
DW_AT_specification (0x1f0d2) lives in another partial compilation unit
0x1f0cd. However, that partial unit is not imported anywhere in
/usr/lib/debug/.build-id/08/1490fc18239fa63189a53e526a68ee5d19c571.debug as far
as I can tell. I think the compilation unit at global-locale.c, at least,
should be importing it.

Relevant debuginfo dumps:

UNIT<header overall offset = 0x000795ee>:
< 0><0x0000000c GOFF=0x000795fa>  DW_TAG_compile_unit
                                    DW_AT_producer             
<.debug_str(sup)+0x0001200e>
                                    DW_AT_language              DW_LANG_C11
                                    DW_AT_name                  global-locale.c
                                    DW_AT_comp_dir             
/usr/src/debug/glibc-2.33-16.fc34.x86_64/locale
                                    DW_AT_stmt_list            
<.debug_line+0x0000ce8a>
< 1><0x0000001e GOFF=0x0007960c>    DW_TAG_imported_unit
                                      DW_AT_import               
<.debug_info(sup)+0x0001f63c>

UNIT<header overall offset = 0x0001f630>:
< 0><0x0000000c GOFF=0x0001f63c>  DW_TAG_partial_unit
                                    DW_AT_stmt_list            
<.debug_line+0x00000000>
...
< 1><0x00000038 GOFF=0x0001f668>    DW_TAG_variable
                                      DW_AT_specification        
<.debug_info+0x0001f0d2>
                                      DW_AT_decl_file             0x0000013b
/usr/src/debug/glibc-2.33-16.fc34.x86_64/locale/global-locale.c
                                      DW_AT_decl_line             0x00000040
                                      DW_AT_decl_column           0x00000013
                                      DW_AT_location              len 0x000a:
0e00000000000000009b: DW_OP_const8u 0 DW_OP_form_tls_address

UNIT<header overall offset = 0x0001f0c1>:
< 0><0x0000000c GOFF=0x0001f0cd>  DW_TAG_partial_unit
                                    DW_AT_stmt_list            
<.debug_line+0x00000000>
< 1><0x00000011 GOFF=0x0001f0d2>    DW_TAG_variable
                                      DW_AT_name                 
__libc_tsd_LOCALE
                                      DW_AT_decl_file             0x00000089
/usr/src/debug/glibc-2.33-16.fc34.x86_64/locale/localeinfo.h
                                      DW_AT_decl_line             0x000000e1
                                      DW_AT_decl_column           0x00000001
                                      DW_AT_type                 
<.debug_info+0x00035fb3>
                                      DW_AT_external              yes
                                      DW_AT_declaration           yes

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

             reply	other threads:[~2021-06-21  3:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21  3:33 robert at ocallahan dot org [this message]
2021-06-21  3:44 ` [Bug default/28000] " robert at ocallahan dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28000-11298@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=dwz@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).