Debian Bug report logs - #869532
diffoscope: ftbfs with new binutils

version graph

Package: src:diffoscope; Maintainer for src:diffoscope is Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>;

Reported by: Michael Hudson-Doyle <michael.hudson@ubuntu.com>

Date: Mon, 24 Jul 2017 01:03:02 UTC

Severity: normal

Found in version diffoscope/84

Done: Mattia Rizzolo <mattia@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, michael.hudson@canonical.com, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>:
Bug#869532; Package src:diffoscope. (Mon, 24 Jul 2017 01:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Hudson-Doyle <michael.hudson@ubuntu.com>:
New Bug report received and forwarded. Copy sent to michael.hudson@canonical.com, Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>. (Mon, 24 Jul 2017 01:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Hudson-Doyle <michael.hudson@ubuntu.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: diffoscope: ftbfs with new binutils
Date: Mon, 24 Jul 2017 12:59:47 +1200
Source: diffoscope
Version: 84
Severity: normal

Dear Maintainer,

diffoscope 84 ftbfs in Ubuntu artful (and I think experimental but haven't
checked this yet) with failures like this:

________________________________ test_item1_elf ________________________________

differences = [<Difference nm -s {} -- nm -s {} []>, <Difference alloc_system-d16b8f0e.0.o -- alloc_system-d16b8f0e.0.o []>, <Differ...r -dump {} []>, <Difference find {} -execdir llvm-dis -o - '{}' ';' -- find {} -execdir llvm-dis -o - '{}' ';' []>]>]>]

    @skip_unless_tools_exist('nm')
    @skip_if_binutils_does_not_support_x86()
    def test_item1_elf(differences):
        assert differences[1].source1 == 'alloc_system-d16b8f0e.0.o'
        assert differences[1].source2 == 'alloc_system-d16b8f0e.0.o'
        expected_diff = get_data('rlib_elf_expected_diff')
>       assert differences[1].details[0].unified_diff == expected_diff
E       IndexError: list index out of range

I'm fairly sure this is down to this change in behaviour in readelf:

(artful-amd64)root@aeglos:/tmp# readelf --wide --decompress --hex-dump=.data alloc_system-d16b8f0e.0.o

Section '.data' has no data to dump.
(artful-amd64)root@aeglos:/tmp# echo $?
1

vs:

(sid-amd64)root@aeglos:/# readelf --wide --decompress --hex-dump=.data /build/alloc_system-d16b8f0e.0.o 

Section '.data' has no data to dump.
(sid-amd64)root@aeglos:/# echo $?
0

which in turn is down to 

   https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=32ec889602502348b704cfb16e65c83dc3eec095

On thinking about this, I think this is arguably a binutils bug so I've filed

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

too. But I thought you might want to know :) I can't see any very easy way of
working around this in diffoscope but I'm new to the codebase.

Cheers,
mwh


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (400, 'xenial-proposed'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-83-generic (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



Reply sent to Mattia Rizzolo <mattia@debian.org>:
You have taken responsibility. (Tue, 25 Jul 2017 16:45:07 GMT) (full text, mbox, link).


Notification sent to Michael Hudson-Doyle <michael.hudson@ubuntu.com>:
Bug acknowledged by developer. (Tue, 25 Jul 2017 16:45:07 GMT) (full text, mbox, link).


Message #10 received at 869532-close@bugs.debian.org (full text, mbox, reply):

From: Mattia Rizzolo <mattia@debian.org>
To: Michael Hudson-Doyle <michael.hudson@ubuntu.com>, 869532-close@bugs.debian.org
Subject: Re: Bug#869532: diffoscope: ftbfs with new binutils
Date: Tue, 25 Jul 2017 18:42:23 +0200
[Message part 1 (text/plain, inline)]
On Mon, Jul 24, 2017 at 12:59:47PM +1200, Michael Hudson-Doyle wrote:
> diffoscope 84 ftbfs in Ubuntu artful (and I think experimental but haven't
> checked this yet) with failures like this:

Thank you for your report!

> which in turn is down to 
> 
>    https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=32ec889602502348b704cfb16e65c83dc3eec095
> 
> On thinking about this, I think this is arguably a binutils bug so I've filed
> 
>    https://sourceware.org/bugzilla/show_bug.cgi?id=21820
> 
> too. But I thought you might want to know :) I can't see any very easy way of
> working around this in diffoscope but I'm new to the codebase.

binutils upstream went on and reverted to the previous behaviour of not
erroring out in the "dump an empty but present section" case, so
diffoscope tests passes with binutils 2.29 + the fixing commit (tested
with the new binutils upload to unstable and artful).
Therefore, I'm closing this bug.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 23 Aug 2017 07:28:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 10 16:56:11 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.