From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C9F23857829; Wed, 17 Mar 2021 21:59:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C9F23857829 From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/27598] New: abidiff mishandles union member functions Date: Wed, 17 Mar 2021 21:59:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gprocida+abigail at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2021 21:59:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27598 Bug ID: 27598 Summary: abidiff mishandles union member functions Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: gprocida+abigail at google dot com CC: libabigail at sourceware dot org Target Milestone: --- I was originally investigating "harmless union" changes when I managed to c= rash abidiff when adding member functions to unions. SEGV #1 $ head ?.cc =3D=3D> 1.cc <=3D=3D union S { void bar() const { } int needed; }; void fun(S s) { s.bar(); } =3D=3D> 2.cc <=3D=3D union S { void bar() const { } }; void fun(S s) { s.bar(); } $ for x in ?.cc; do g++ -Wall -Wextra -g -c $x; done $ abidiff ?.o 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 void S::bar() const' at 2.cc:2:1 has some indirect sub-type changes: Segmentation fault SEGV #2 $ head ?.cc =3D=3D> 1.cc <=3D=3D union S { void bar() const { } int needed; }; void fun(S s) { s.bar(); } =3D=3D> 2.cc <=3D=3D struct S { void bar() const { } }; void fun(S s) { s.bar(); } $ for x in ?.cc; do g++ -Wall -Wextra -g -c $x; done $ abidiff ?.o 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 void S::bar() const' at 2.cc:2:1 has some indirect sub-type changes: Segmentation fault --=20 You are receiving this mail because: You are on the CC list for the bug.=