From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D69B399C021; Fri, 12 Mar 2021 15:21:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D69B399C021 From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/27569] New: abidiff misses a function parameter addition Date: Fri, 12 Mar 2021 15:21:37 +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 attachments.created 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: Fri, 12 Mar 2021 15:21:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27569 Bug ID: 27569 Summary: abidiff misses a function parameter addition 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: --- Created attachment 13304 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13304&action=3Ded= it two XML files to compare Hi Dodji. I'm attaching two reduced (manually edited, pruned) ABIs. Alas, they are st= ill quite large. I've tried and failed to reproduce the issue with a small test case. abidiff reports nothing, but should report this: [C] 'function void device_add_disk(gendisk*)' at genhd.h:420:1 has some indirect sub-type changes: parameter 2 of type 'int' was added Note that adding --redundant makes no difference. Changing the type of the first argument in common to int made the problem go away. I believe I've narrowed the problem down to diff filtering. Looking at apply_filters_and_compute_diff_stats, is_filtered_out for the si= ngle function diff initially returns true, but this changes to false after filtering. The category of the diff changes from NO_CHANGE_CATEGORY before the filteri= ng and to HARMLESS_UNION_CHANGE_CATEGORY|FN_RETURN_TYPE_CV_CHANGE_CATEGORY afterwards. I believe these values come from deep within inconsequential changes to the first argument's type. Exactly one filter is applied: harmless_harmful_filter. My best guess is that there is a hole in the category classification for "incompatible function type/decl changes", though it seems unlikely that th= is wasn't noticed before now. Regards, Giuliano. --=20 You are receiving this mail because: You are on the CC list for the bug.=