* [Bug default/27598] New: abidiff mishandles union member functions
@ 2021-03-17 21:59 gprocida+abigail at google dot com
2021-03-30 10:57 ` [Bug default/27598] " dodji at redhat dot com
2021-04-06 10:51 ` dodji at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: gprocida+abigail at google dot com @ 2021-03-17 21:59 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27598
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 crash
abidiff when adding member functions to unions.
SEGV #1
$ head ?.cc
==> 1.cc <==
union S {
void bar() const { }
int needed;
};
void fun(S s) { s.bar(); }
==> 2.cc <==
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
==> 1.cc <==
union S {
void bar() const { }
int needed;
};
void fun(S s) { s.bar(); }
==> 2.cc <==
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
--
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/27598] abidiff mishandles union member functions
2021-03-17 21:59 [Bug default/27598] New: abidiff mishandles union member functions gprocida+abigail at google dot com
@ 2021-03-30 10:57 ` dodji at redhat dot com
2021-04-06 10:51 ` dodji at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2021-03-30 10:57 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27598
dodji at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-03-30
Status|UNCONFIRMED |ASSIGNED
--
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/27598] abidiff mishandles union member functions
2021-03-17 21:59 [Bug default/27598] New: abidiff mishandles union member functions gprocida+abigail at google dot com
2021-03-30 10:57 ` [Bug default/27598] " dodji at redhat dot com
@ 2021-04-06 10:51 ` dodji at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2021-04-06 10:51 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27598
dodji at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from dodji at redhat dot com ---
A fix for this has been applied to master at
https://sourceware.org/git/?p=libabigail.git;a=commit;h=2f8e1db0e7a163eda943001703d9fa0ecfad2806.
It should be available in libabigail 2.0.
Thanks for filling this problem report.
--
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:[~2021-04-06 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 21:59 [Bug default/27598] New: abidiff mishandles union member functions gprocida+abigail at google dot com
2021-03-30 10:57 ` [Bug default/27598] " dodji at redhat dot com
2021-04-06 10:51 ` 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).