public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/28760] New: libstdc++ doesn't pass self check
@ 2022-01-11  1:55 woodard at redhat dot com
  2022-01-11  1:56 ` [Bug default/28760] " woodard at redhat dot com
  2022-06-28 22:55 ` woodard at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2022-01-11  1:55 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 28760
           Summary: libstdc++ doesn't pass self check
           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: ---

With the latest trunk as of: 71633a7c0c7c96c03db8c18826afea26da0f7b4b we get
problems with libstdc++ from libstdc++-11.2.1-7.fc35.x86_64

$ abidw --abidiff /lib64/libstdc++.so.6.0.29 
Functions changes summary: 0 Removed, 0 Changed (2 filtered out), 0 Added
functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
]$ echo $?
1
$ abidw /lib64/libstdc++.so.6.0.29 >/tmp/a.abixml
$ abidiff /tmp/a.abixml /lib64/libstdc++.so.6.0.29
Functions changes summary: 0 Removed, 0 Changed (2 filtered out), 0 Added
functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

$ abidiff --harmless /tmp/a.abixml /lib64/libstdc++.so.6.0.29
Functions changes summary: 0 Removed, 2 Changed, 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

2 functions with some indirect sub-type change:

  [C] 'method virtual std::__codecvt_abstract_base<char16_t, char8_t,
__mbstate_t>::result std::codecvt<char16_t, char8_t,
__mbstate_t>::do_unshift(std::codecvt<char16_t, char8_t,
__mbstate_t>::state_type&, std::codecvt<char16_t, char8_t,
__mbstate_t>::extern_type*, std::codecvt<char16_t, char8_t,
__mbstate_t>::extern_type*, std::codecvt<char16_t, char8_t,
__mbstate_t>::extern_type*&) const' at codecvt.cc:914:1 has some indirect
sub-type changes:
    Please note that the symbol of this function is
_ZNKSt7codecvtIDsDu11__mbstate_tE10do_unshiftERS0_PDuS3_RS3_@@GLIBCXX_3.4.26
     and it aliases symbol:
_ZNKSt7codecvtIDiDu11__mbstate_tE10do_unshiftERS0_PDuS3_RS3_@@GLIBCXX_3.4.26
    return type changed:
      entity changed from 'typedef std::__codecvt_abstract_base<char16_t,
char8_t, __mbstate_t>::result' to compatible type 'enum
std::codecvt_base::result' at codecvt.h:52:1

  [C] 'method virtual std::__codecvt_abstract_base<char32_t, char8_t,
__mbstate_t>::result std::codecvt<char32_t, char8_t,
__mbstate_t>::do_unshift(std::codecvt<char32_t, char8_t,
__mbstate_t>::state_type&, std::codecvt<char32_t, char8_t,
__mbstate_t>::extern_type*, std::codecvt<char32_t, char8_t,
__mbstate_t>::extern_type*, std::codecvt<char32_t, char8_t,
__mbstate_t>::extern_type*&) const' at codecvt.cc:990:1 has some indirect
sub-type changes:
    Please note that the exported symbol of this function is
_ZNKSt7codecvtIDiDu11__mbstate_tE10do_unshiftERS0_PDuS3_RS3_@@GLIBCXX_3.4.26
    return type changed:
      entity changed from 'typedef std::__codecvt_abstract_base<char32_t,
char8_t, __mbstate_t>::result' to compatible type 'enum
std::codecvt_base::result' at codecvt.h:52:1

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

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

* [Bug default/28760] libstdc++ doesn't pass self check
  2022-01-11  1:55 [Bug default/28760] New: libstdc++ doesn't pass self check woodard at redhat dot com
@ 2022-01-11  1:56 ` woodard at redhat dot com
  2022-06-28 22:55 ` woodard at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2022-01-11  1:56 UTC (permalink / raw)
  To: libabigail

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

Ben Woodard <woodard at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |27019


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=27019
[Bug 27019] BUILD metabug
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/28760] libstdc++ doesn't pass self check
  2022-01-11  1:55 [Bug default/28760] New: libstdc++ doesn't pass self check woodard at redhat dot com
  2022-01-11  1:56 ` [Bug default/28760] " woodard at redhat dot com
@ 2022-06-28 22:55 ` woodard at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2022-06-28 22:55 UTC (permalink / raw)
  To: libabigail

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

Ben Woodard <woodard at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Ben Woodard <woodard at redhat dot com> ---
commit 72b46b2600ef1f7af54b6d5f7dd6afc23c7cf2c3
Author: Dodji Seketeli <dodji@redhat.com>
Date:   Thu Jun 23 12:13:05 2022 +0200

    ir: Make canonicalization stable wrt typedefs in fn return types

    In the grand scheme of things, two function return types can be equal
    modulo typedefs.  Because those two function textual representations
    are different, the two overall function types would end up having
    different canonical types and thus, the two functions would be
    considered as having different sub-types.  The harmless change pass
    would then kick in and flag that change as harmless.  But then, "abidw
    --abidiff" that is used for testing purposes would still be not happy.

    This patch strips typedefs off of return types of function types when
    the string representation is to be used for internal (e.g, type
    canonicalization) purposes.

    The fix for this change uncovered another issue:

    When setting the naming typedefs for an (anonymous) C++ class, the
    qualified name of the class was wrongly being set to the qualified
    name of the typedef.  Only the name of the class should be affected,
    in essence.  The qualified name would, ONLY as a result of the name
    change, be adjusted.

    This patch fixes those issues and adjusts the test suite accordingly.

            * src/abg-ir.cc (get_function_type_name, get_method_type_name):
            When the function type name is for internal purposes, strip
            potential typedefs off.
            (equal): In the overload for function_type, strip potential
            typedefs off of return types before comparing them.
            (decl_base::set_naming_typedef): Properly adjust the qualified
            name of the type to which a naming typedef is being set.
            * tests/data/test-alt-dwarf-file/libstdc++/libstdc++-report.txt:
            New reference test output.
            *
tests/data/test-alt-dwarf-file/libstdc++/usr/lib/debug/usr/lib64/libstdc++.so.6.0.30-12.1.1-1.fc37.x86_64.debug:
            New binary test input.
            *
tests/data/test-alt-dwarf-file/libstdc++/usr/lib64/libstdc++.so.6.0.30:
            New binary test input.
            * tests/data/Makefile.am: Add the new test material to source
            distribution.
            * tests/data/test-annotate/test15-pr18892.so.abi: Adjust.
            * tests/data/test-annotate/test17-pr19027.so.abi: Likewise.
            * tests/data/test-annotate/test21-pr19092.so.abi: Likewise.
            * tests/data/test-read-dwarf/PR25007-sdhci.ko.abi: Likewise.
            * tests/data/test-read-dwarf/test-libaaudio.so.abi: Likewise.
            * tests/data/test-read-dwarf/test-libandroid.so.abi: Likewise.
            * tests/data/test-read-dwarf/test15-pr18892.so.abi: Likewise.
            * tests/data/test-read-dwarf/test16-pr18904.so.abi: Likewise.
            * tests/data/test-read-dwarf/test17-pr19027.so.abi: Likewise.
            * tests/data/test-read-dwarf/test21-pr19092.so.abi: Likewise.

    Signed-off-by: Dodji Seketeli <dodji@redhat.com>

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

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

end of thread, other threads:[~2022-06-28 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11  1:55 [Bug default/28760] New: libstdc++ doesn't pass self check woodard at redhat dot com
2022-01-11  1:56 ` [Bug default/28760] " woodard at redhat dot com
2022-06-28 22:55 ` woodard 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).