public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/21296] New: abidiff reports possibly bogus differences and crashes
@ 2017-01-01  0:00 jwakely.gcc at gmail dot com
  2017-01-01  0:00 ` [Bug default/21296] naive comparison of names of template instantiations leads to false postives dodji at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jwakely.gcc at gmail dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 21296
           Summary: abidiff reports possibly bogus differences and crashes
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: jwakely.gcc at gmail dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 9935
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9935&action=edit
testcase

Using GCC 6 and Clang (any version) to compile the attached code into two
shared libs produces libraries that crash abigail:

clang++ -std=c++14  -o libclang.so -shared -fPIC  clanggcc.cxx  -g
g++   -o libgcc.so -shared -fPIC  clanggcc.cxx  -g

abidiff libgcc.so libclang.so  
Functions changes summary: 0 Removed (1 filtered out), 2 Changed (9 filtered
out), 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

2 functions with some indirect sub-type change:

  [C]'method STR::~STR(int)' at clanggcc.cxx:6:1 has some indirect sub-type
changes:
    linkage names of method STR::~STR(int)
    changed from '_ZN3STRD1Ev, _ZN3STRD2Ev' to '_ZN3STRD2Ev'

    name of symbol changed from _ZN3STRD1Ev to _ZN3STRD2Ev
    parameter 1 of type 'int' was removed


  [C]'function std::tuple<STR&&> my_forward_as_tuple<STR>(STR&&)' at
clanggcc.cxx:225:1 has some indirect sub-type changes:
    return type changed:
      type name changed from 'std::tuple<STR&&>' to 'std::tuple<STR &&>'
      type size hasn't changed

      1 base class deletion:
        struct std::_Tuple_impl<0ul, STR&&> at clanggcc.cxx:119:1
      1 base class insertion:
        struct std::_Tuple_impl<0, STR &&> at clanggcc.cxx:119:1
abidiff: ../../src/abg-comparison.cc:8205: virtual void
abigail::comparison::fn_parm_diff::report(std::ostream&, const string&) const:
Assertion `get_type_diff() && get_type_diff()->to_be_reported()' failed.
Aborted (core dumped)


If GCC trunk is used instead of GCC 6 then abigail doesn't crash, but still
reports the same diferences, which appear to be bogus.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-12 14:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01  0:00 [Bug default/21296] New: abidiff reports possibly bogus differences and crashes jwakely.gcc at gmail dot com
2017-01-01  0:00 ` [Bug default/21296] naive comparison of names of template instantiations leads to false postives dodji at redhat dot com
2017-01-01  0:00 ` [Bug default/21296] New: abidiff reports possibly bogus differences and crashes Dodji Seketeli
2017-01-01  0:00 ` [Bug default/21296] naive comparison of names of template instantiations leads to false postives dodji at redhat dot com
2017-01-01  0:00 ` [Bug default/21296] abidiff reports possibly bogus differences and crashes woodard at redhat dot com
2017-01-01  0:00 ` dodji at seketeli dot org
2020-11-12 14:30 ` [Bug default/21296] naive comparison of names of template instantiations leads to false postives maennich at android 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).