public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@seketeli.org>
To: ben at demerara dot io via Libabigail <libabigail@sourceware.org>
Cc: ben at demerara dot io <sourceware-bugzilla@sourceware.org>
Subject: Re: [Bug default/30329] abidiff assertion error in dwarf reader
Date: Tue, 11 Apr 2023 12:43:54 +0200	[thread overview]
Message-ID: <87pm8ak8b9.fsf@seketeli.org> (raw)
In-Reply-To: <bug-30329-9487-muGrBCYsAr@http.sourceware.org/bugzilla/> (ben at demerara dot io via Libabigail's message of "Tue, 11 Apr 2023 09:33:13 +0000")

ben at demerara dot io via Libabigail <libabigail@sourceware.org> a
écrit:

> Frustratingly I've nuked my local build environment for this, but I should be
> able to kick off another build this evening. It should also be reasonably
> straightforward to extent the CI to include this additional debuginfo within
> the tarball.

No problem, thank you for following up.

> Is there an easy way to programmatically extract the path to the alternate
> debuginfo file? I've tested with `objdump -Wk <binary.debug>` which gets me
> something I can run a regex match against, but I'm wondering if there's
> something more direct.

So, here is maybe a starting point.

the ".gnu_debugaltlink" section of the main debuginfo file contains the
path to the alternate debuginfo file.

Let's examine the section headers of the of the main debuginfo file and
see if the .gnu_debugaltlink section is in there:

    $ readelf -S libsqlite3.so.0.8.6.debug | grep .gnu_debugaltlink
      [35] .gnu_debugaltlink PROGBITS         0000000000000000  00201f1c

Right it's in there.

Now, let's read its content, as a string:

    $ readelf --string-dump=.gnu_debugaltlink  libsqlite3.so.0.8.6.debug 

    String dump of section '.gnu_debugaltlink':
      [     0]  /usr/lib/debug/dwz/components/sqlite.bst/x86_64-unknown-linux-gnu
      [    42]  ;?^UW+%^[w^\E^AC^K^:
    $ 

I hope the above is useful.

Thanks again!

-- 
		Dodji

  reply	other threads:[~2023-04-11 10:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 14:10 [Bug default/30329] New: " ben at demerara dot io
2023-04-11  7:41 ` [Bug default/30329] " ben at demerara dot io
2023-04-11  9:04 ` dodji at redhat dot com
2023-04-11  9:33 ` ben at demerara dot io
2023-04-11 10:43   ` Dodji Seketeli [this message]
2023-04-11 10:44 ` dodji at seketeli dot org
2023-04-12  8:53 ` ben at demerara dot io
2023-04-12  8:55 ` ben at demerara dot io
2023-04-25 10:17 ` dodji at redhat dot com
2023-04-25 14:00 ` dodji at redhat dot com
2023-04-25 14:03 ` ben at demerara dot io

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=87pm8ak8b9.fsf@seketeli.org \
    --to=dodji@seketeli.org \
    --cc=libabigail@sourceware.org \
    --cc=sourceware-bugzilla@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).