libpillowfight: autopkgtest failure on amd64 when built with LTO enabled

Bug #2007000 reported by Graham Inggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libpillowfight (Ubuntu)
New
Undecided
Unassigned
lto-disabled-list (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The autopkgtests of libpillowfight fail on amd64 when built with LTO enabled, as can be seen with 0.3.0-4build2 in jammy [1]. I've copied what I hope is the relevant part of the log below.

[1] https://autopkgtest.ubuntu.com/packages/libpillowfight/jammy/amd64

=================================== FAILURES ===================================
_____________________________ TestCanny.test_canny _____________________________

self = <tests.tests_canny.TestCanny testMethod=test_canny>

    def test_canny(self):
        with tempfile.NamedTemporaryFile(suffix='.jpg') as tmpfile:
            in_img = PIL.Image.open("tests/data/crappy_background.jpg")
            out_img = pillowfight.canny(in_img)
            in_img.close()

            # beware of JPG compression
            self.assertEqual(out_img.mode, "RGB")
            out_img.save(tmpfile.name)
            out_img.close()
            out_img = PIL.Image.open(tmpfile.name)

        expected_img = PIL.Image.open(
            "tests/data/crappy_background_canny.jpg"
        )
> self.assertEqual(out_img.tobytes(), expected_img.tobytes())
E AssertionError: b'\x0[92392 chars]00\x07\x07\x07\xb4\xb4\xb4\x00\x00\x00\t\t\t\x[13088988 chars]\x00' != b'\x0[92392 chars]00\x00\x00\x00\xbc\xbc\xbc\x00\x00\x00\x00\x00[13089030 chars]\x00'

tests/tests_canny.py:25: AssertionError

Revision history for this message
Graham Inggs (ginggs) wrote :

This was fixed in 0.3.0-4ubuntu1 [1]:

libpillowfight (0.3.0-4ubuntu1) jammy; urgency=medium

  * Turn off use of LTO on amd64, which results in a misbuild.

 -- Steve Langasek <email address hidden> Wed, 17 Nov 2021 21:44:34 +0000

[1] https://launchpad.net/ubuntu/+source/libpillowfight/0.3.0-4ubuntu1

Revision history for this message
Graham Inggs (ginggs) wrote :

I've confirmed that the problem still occurs with libpillowfight 0.3.0-5 in lunar.

I'll add libpillowfight to the lto-disabled-list for amd64 so it can be in sync with Debian.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lto-disabled-list - 38

---------------
lto-disabled-list (38) lunar; urgency=medium

  * Add libpillowfight on amd64 to avoid autopkgtest failure (LP: #2007000)
  * Add gensio to avoid FTBFS due to missing symbols (LP: #1991617)

 -- Graham Inggs <email address hidden> Sat, 11 Feb 2023 17:05:01 +0000

Changed in lto-disabled-list (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.