public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/27985] New: abidiff: bad array types in report
@ 2021-06-16 11:04 gprocida at google dot com
  2021-08-13  7:01 ` [Bug default/27985] " gprocida at google dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gprocida at google dot com @ 2021-06-16 11:04 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 27985
           Summary: abidiff: bad array types in report
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 13496
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13496&action=edit
two XML files to compare

This is a regression which I've bisected to the recent commit
9681ab04d20f8dacdb14404f6234f63a62e61dd2 "Fix recursive array type definition".

The attached XML files were generated straightforwardly with abidw. The source
files look like the following.

--- indirect_c.0.c   2020-07-31 13:35:19.000000000 +0100
+++ indirect_c.1.c   2020-07-31 13:35:19.000000000 +0100
@@ -1,9 +1,9 @@
 struct leaf {
-  int numbers[2];
+  int numbers[3];
 };

 struct node {
   struct leaf* ptr;
 };

 void foo(struct node *n) { (void) n; }

The resulting abidiff output contains:

                type of 'int numbers[2]' changed:
                  type name changed from 'void[2]' to 'void[3]'
                  array type size changed from 64 to 96
                  array type subrange 1 changed length from 2 to 3

instead of

                type of 'int numbers[2]' changed:
                  type name changed from 'int[2]' to 'int[3]'
                  array type size changed from 64 to 96
                  array type subrange 1 changed length from 2 to 3

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

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

* [Bug default/27985] abidiff: bad array types in report
  2021-06-16 11:04 [Bug default/27985] New: abidiff: bad array types in report gprocida at google dot com
@ 2021-08-13  7:01 ` gprocida at google dot com
  2021-09-02 16:30 ` dodji at redhat dot com
  2021-09-03  9:14 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: gprocida at google dot com @ 2021-08-13  7:01 UTC (permalink / raw)
  To: libabigail

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

--- Comment #1 from gprocida at google dot com ---
This is still an issue at current upstream master
ca08bae7422bb5e2a972a2ef88524c67a2811fbc.

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

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

* [Bug default/27985] abidiff: bad array types in report
  2021-06-16 11:04 [Bug default/27985] New: abidiff: bad array types in report gprocida at google dot com
  2021-08-13  7:01 ` [Bug default/27985] " gprocida at google dot com
@ 2021-09-02 16:30 ` dodji at redhat dot com
  2021-09-03  9:14 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dodji at redhat dot com @ 2021-09-02 16:30 UTC (permalink / raw)
  To: libabigail

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

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2021-09-02

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

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

* [Bug default/27985] abidiff: bad array types in report
  2021-06-16 11:04 [Bug default/27985] New: abidiff: bad array types in report gprocida at google dot com
  2021-08-13  7:01 ` [Bug default/27985] " gprocida at google dot com
  2021-09-02 16:30 ` dodji at redhat dot com
@ 2021-09-03  9:14 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dodji at redhat dot com @ 2021-09-03  9:14 UTC (permalink / raw)
  To: libabigail

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

dodji at redhat dot com changed:

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

--- Comment #2 from dodji at redhat dot com ---
This should be fixed in the master branch by commit
https://sourceware.org/git/?p=libabigail.git;a=commit;h=190350a35f842574cf15b9a98f1ccbc3aa31a840.

This should be available in 2.0.

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

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

end of thread, other threads:[~2021-09-03  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 11:04 [Bug default/27985] New: abidiff: bad array types in report gprocida at google dot com
2021-08-13  7:01 ` [Bug default/27985] " gprocida at google dot com
2021-09-02 16:30 ` dodji at redhat dot com
2021-09-03  9:14 ` 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).