[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/24552] New: abidiff: different comparison rules for abi-corpus vs abi-corpus within an abi-corpus group



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

            Bug ID: 24552
           Summary: abidiff: different comparison rules for abi-corpus vs
                    abi-corpus within an abi-corpus group
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: maennich at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 11774
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11774&action=edit
Minimal xml representations to reproduce the issue

abidiff seems to apply different rules for abi-corpus and abi-corpus as part of
an abi-corpus-group.

I stumbled upon that one when comparing xml representation of vmlinux once with

 abidw path1/to/vmlinux   --out-file abi1_file.out
 abidw path2/to/vmlinux   --out-file abi2_file.out

 abidiff abi1_file.out abi2_file.out

and once with

 abidw --linux-tree path1/to/ --out-file abi1_tree.out
 abidw --linux-tree path2/to/ --out-file abi2_tree.out

 abidiff abi1_tree.out abi2_tree.out

In the latter case a difference was reported. The diff between abi1_file.out
and abi1_tree.out seems to be that vmlinux as part of the tree is nested into a
abi-corpus-group.

I will attach reduced versions of the xml files to easily reproduce the issue
with

 abidiff success?.out

vs 

 abidiff fail?.out



(Why there is the 'elf-symbol-id' attribute missing even though there is a
elf-function-symbol entry for it, is probably another bug to be filed.)

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