* [Bug default/26127] New: abidw --annotate emits incomplete function types
@ 2020-06-17 7:43 gprocida+abigail at google dot com
2020-06-17 11:08 ` [Bug default/26127] " dodji at redhat dot com
2020-06-18 14:00 ` dodji at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: gprocida+abigail at google dot com @ 2020-06-17 7:43 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=26127
Bug ID: 26127
Summary: abidw --annotate emits incomplete function types
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: ---
This issue is similar to https://sourceware.org/bugzilla/show_bug.cgi?id=25986
in that incorrect function types are being emitted.
For example,
tests/data/test-annotate/test20-pr19025-libvtkParallelCore-6.1.so.abi contains
<!-- void ()* -->
<pointer-type-def type-id='type-id-342' size-in-bits='64'
id='type-id-343'/>
but this should be
<!-- std::basic_ostream<char, std::char_traits<char> >&
(std::basic_ostream<char, std::char_traits<char> >&)* -->
<pointer-type-def type-id='type-id-342' size-in-bits='64'
id='type-id-343'/>
Here's a "fix" which might help determine the root cause.
commit af00b1f690e6a1541be513d50d2c426cb7659fcf (HEAD -> bad-annotation)
Author: Giuliano Procida <gprocida@google.com>
Date: Tue Jun 16 23:30:09 2020 +0100
Bodge to fix abidw --annotate function types.
Signed-off-by: Giuliano Procida <gprocida@google.com>
diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 5e2506a2..2da3f8a5 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -11762,6 +11762,8 @@ type_base::get_canonical_type_for(type_base_sptr t)
if (!t)
return t;
+ t->get_pretty_representation();
+
environment* env = t->get_environment();
ABG_ASSERT(env);
--
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/26127] abidw --annotate emits incomplete function types
2020-06-17 7:43 [Bug default/26127] New: abidw --annotate emits incomplete function types gprocida+abigail at google dot com
@ 2020-06-17 11:08 ` dodji at redhat dot com
2020-06-18 14:00 ` dodji at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2020-06-17 11:08 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=26127
dodji at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-06-17
Ever confirmed|0 |1
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/26127] abidw --annotate emits incomplete function types
2020-06-17 7:43 [Bug default/26127] New: abidw --annotate emits incomplete function types gprocida+abigail at google dot com
2020-06-17 11:08 ` [Bug default/26127] " dodji at redhat dot com
@ 2020-06-18 14:00 ` dodji at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2020-06-18 14:00 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=26127
dodji at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #1 from dodji at redhat dot com ---
This problem should hopefully be fixed in the master branch by commit
https://sourceware.org/git/?p=libabigail.git;a=commit;h=a5d02b95a673651f2009faeefdc394078c251a7e.
Thank you for reporting this problem and sorry for the inconvenience.
--
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:[~2020-06-18 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 7:43 [Bug default/26127] New: abidw --annotate emits incomplete function types gprocida+abigail at google dot com
2020-06-17 11:08 ` [Bug default/26127] " dodji at redhat dot com
2020-06-18 14:00 ` 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).