public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "woodard at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/26780] New: abidiff crashes when comparing a library to itself
Date: Fri, 23 Oct 2020 22:30:39 +0000	[thread overview]
Message-ID: <bug-26780-9487@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 26780
           Summary: abidiff crashes when comparing a library to itself
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: woodard at redhat dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

This is with the current trunk version of libabigail
$ rpm -qf $lib
hdf5-1.10.6-2.fc33.x86_64
$ lib=/lib64/libhdf5hl_fortran.so.100.0.5
$ /home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidw $lib > foo;
/home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidiff $lib foo 
Functions changes summary: 0 Removed, 23 Changed (14 filtered out), 0 Added
functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

23 functions with some indirect sub-type change:

  [C] 'function void
h5lt::h5ltmake_dataset_double_kind_16_rank_0(integer(kind=8), integer(kind=4),
integer(kind=8)[], real(kind=16), integer(kind=4), const integer(kind=8))' at
H5LTff_gen.F90:2990:1 has some indirect sub-type changes:
abidiff: ../../../libabigail/src/abg-default-reporter.cc:535: virtual void
abigail::comparison::default_reporter::report(const
abigail::comparison::fn_parm_diff&, std::ostream&, const string&) const:
Assertion `__abg_cond__' failed.
Aborted (core dumped)


$ gdb --silent --args /home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidiff
$lib foo 
Reading symbols from
/home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidiff...
(gdb) r
Starting program: /home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidiff
/lib64/libhdf5hl_fortran.so.100.0.5 foo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Download failed: Connection refused.  Continuing without debug info for
/lib64/libxml2.so.2.
Download failed: Connection refused.  Continuing without debug info for
/lib64/libelf.so.1.
Download failed: Connection refused.  Continuing without debug info for
/lib64/libdw.so.1.
Functions changes summary: 0 Removed, 23 Changed (14 filtered out), 0 Added
functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

23 functions with some indirect sub-type change:

  [C] 'function void
h5lt::h5ltmake_dataset_double_kind_16_rank_0(integer(kind=8), integer(kind=4),
integer(kind=8)[], real(kind=16), integer(kind=4), const integer(kind=8))' at
H5LTff_gen.F90:2990:1 has some indirect sub-type changes:
abidiff: ../../../libabigail/src/abg-default-reporter.cc:535: virtual void
abigail::comparison::default_reporter::report(const
abigail::comparison::fn_parm_diff&, std::ostream&, const string&) const:
Assertion `__abg_cond__' failed.

Program received signal SIGABRT, Aborted.
__GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
49        return ret;
(gdb) bt
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007ffff75098a4 in __GI_abort () at abort.c:79
#2  0x00007ffff7509789 in __assert_fail_base (fmt=0x7ffff7676e68 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", assertion=0x7ffff7f3bfa4 "__abg_cond__", 
    file=0x7ffff7f44e60 "../../../libabigail/src/abg-default-reporter.cc",
line=535, function=<optimized out>) at assert.c:92
#3  0x00007ffff7518fc6 in __GI___assert_fail (assertion=0x7ffff7f3bfa4
"__abg_cond__", file=0x7ffff7f44e60
"../../../libabigail/src/abg-default-reporter.cc", 
    line=535, 
    function=0x7ffff7f45198 "virtual void
abigail::comparison::default_reporter::report(const
abigail::comparison::fn_parm_diff&, std::ostream&, const string&) const")
    at assert.c:101
#4  0x00007ffff7e60449 in abigail::comparison::default_reporter::report
(this=<optimized out>, d=..., out=..., indent="    ") at
/usr/include/c++/10/ext/atomicity.h:97
#5  0x00007ffff7dedabf in abigail::comparison::fn_parm_diff::report
(this=0x56e6b0, out=..., indent="    ") at
/usr/include/c++/10/bits/shared_ptr_base.h:1324
#6  0x00007ffff7e605a9 in abigail::comparison::default_reporter::report
(this=0x44f220, d=..., out=..., indent="    ")
    at ../../../libabigail/src/abg-default-reporter.cc:663
#7  0x00007ffff7dedb42 in abigail::comparison::function_type_diff::report
(this=0x56e080, out=..., indent="    ") at
/usr/include/c++/10/bits/shared_ptr_base.h:1324
#8  0x00007ffff7e5d3a3 in abigail::comparison::default_reporter::report
(this=<optimized out>, d=..., out=..., indent="    ")
    at /usr/include/c++/10/bits/shared_ptr_base.h:1324
#9  0x00007ffff7dedbc2 in abigail::comparison::function_decl_diff::report
(this=this@entry=0x56ecd0, out=..., indent="    ")
    at /usr/include/c++/10/bits/shared_ptr_base.h:1324
#10 0x00007ffff7e6519e in abigail::comparison::default_reporter::report
(this=<optimized out>, d=..., out=..., indent="")
    at /usr/include/c++/10/bits/basic_string.h:901
#11 0x00007ffff7deddb2 in abigail::comparison::corpus_diff::report
(this=this@entry=0x6f9480, out=..., indent="") at
/usr/include/c++/10/bits/shared_ptr_base.h:1324
#12 0x0000000000406881 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/include/c++/10/ext/new_allocator.h:79

This error appears to be unique among all the libs that I have checked so far.

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

             reply	other threads:[~2020-10-23 22:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23 22:30 woodard at redhat dot com [this message]
2020-11-25  0:24 ` [Bug default/26780] " woodard at redhat dot com
2020-11-25  0:26 ` [Bug default/26780] abidiff assert in report src/abg-default-reporter.cc:535 woodard at redhat dot com
2020-11-25  0:27 ` woodard at redhat dot com
2020-11-27 11:09 ` dodji at redhat dot com
2020-11-27 12:52 ` [Bug default/26780] Wrong array subrange bound serialization with Fortran programs dodji at redhat dot com
2020-11-27 16:57 ` dodji at redhat dot com

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-26780-9487@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).