[needs-sponsor] ignition-physics testsuite segfaults on amd64/Jammy when using flto=auto -ffat-lto-objects

Bug #1965064 reported by Jose Luis Rivero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ignition-physics (Ubuntu)
Fix Released
Undecided
Graham Inggs

Bug Description

Current ignition-physics version 5.1.0+ds1-4 fails on amd64 with segfaults in some of the tests:
https://launchpadlibrarian.net/589246385/buildlog_ubuntu-jammy-amd64.ignition-physics_5.1.0+ds1-4_BUILDING.txt.gz

The situation was unusual since the same version imported from Debian Sid built just fine. I was debugging the problem in upstream issue tracker: https://github.com/ignitionrobotics/ign-physics/issues/330.

Summary: Ubuntu Jammy is using linker optimizations -flto=auto -ffat-lto-objects that make the package to fail when running tests in ignition-physics.

Tags: jammy
Revision history for this message
Jose Luis Rivero (j-rivero) wrote :

Attached is the debdiff that solves the problem for the amd64 build by filtering out the flto=auto -ffat-lto-objects.

The patch also includes a fix for the ppc64 build now that we are at it. Both changes are reflected in the Changelog and tested in my PPA:

 * amd64 https://launchpad.net/~j-rivero/+archive/ubuntu/jammy-packages/+build/23249466
 * ppc64 https://launchpad.net/~j-rivero/+archive/ubuntu/jammy-packages/+build/23249469

summary: - ignition-physics testsuite segfaults on amd64 when using flto=auto
- -ffat-lto-objects
+ [needs-sponsor] ignition-physics testsuite segfaults on amd64/Jammy when
+ using flto=auto -ffat-lto-objects
Graham Inggs (ginggs)
Changed in ignition-physics (Ubuntu):
status: New → In Progress
assignee: nobody → Graham Inggs (ginggs)
Graham Inggs (ginggs)
Changed in ignition-physics (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ignition-physics - 5.1.0+ds1-4ubuntu1

---------------
ignition-physics (5.1.0+ds1-4ubuntu1) jammy; urgency=medium

    * Filter out flto=auto -ffat-lto-objects to fix amd64 build
      LP: #1965064
    * Extend ppc64 patch to relax test expectation (fix ppc64 build)

 -- Jose Luis Rivero <email address hidden> Wed, 16 Mar 2022 19:26:31 +0000

Changed in ignition-physics (Ubuntu):
status: Fix Committed → 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.