public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/29553] New: libabigail potentially misses some function declarations
@ 2022-09-06 16:26 dodji at redhat dot com
  0 siblings, 0 replies; only message in thread
From: dodji at redhat dot com @ 2022-09-06 16:26 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 29553
           Summary: libabigail potentially misses some function
                    declarations
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: dodji at redhat dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

The problem can be reproduced from a tarball accessible from
https://usercontent.irccloud-cdn.com/file/XEp8xIow/test_c.tar.gz.

Here is the bug report I got from our IRC channel:

<vvvvvv> Hi, Dodji! I stumbled upon a bug in libabigail, relative to
`build_function_decl` in abg-dwarf-reader.cc. Looks like it skips all
references from function declaration, if it was previously seen in other CU,
which may lead to missing declaration for some classes. I've made an example
with two CU and Makefile, you could build it using regular `make` and run
something like `abidw --type-id-style hash --no-comp-dir-path                  
                                                                    [18:03]

<vvvvvv> --no-show-locs --no-linux-kernel-mode test.so`. And in output you
could see missing declaration for `struct Common`, but it exists in DWARF,
which could be seen by running `llvm-dwarfdump test.so`. Moreover, if you swap
`user.o` and `test.o` in `Makefile`

<vvvvvv> https://usercontent.irccloud-cdn.com/file/XEp8xIow/test_c.tar.gz

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-06 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 16:26 [Bug default/29553] New: libabigail potentially misses some function declarations dodji at redhat dot com

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).