public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "dodji at seketeli dot org" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/30329] abidiff assertion error in dwarf reader
Date: Tue, 11 Apr 2023 10:44:01 +0000	[thread overview]
Message-ID: <bug-30329-9487-v6e0XVyDLK@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30329-9487@http.sourceware.org/bugzilla/>

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

--- Comment #4 from dodji at seketeli dot org ---
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!

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

  parent reply	other threads:[~2023-04-11 10:44 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
2023-04-11 10:44 ` dodji at seketeli dot org [this message]
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=bug-30329-9487-v6e0XVyDLK@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@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).