Bug 1959600

Summary: bear: FTBFS in Fedora rawhide on s390x (segfault in unit tests)
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: bearAssignee: Dan Čermák <dan.cermak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dan.cermak, thofmann
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/bear
Whiteboard:
Fixed In Version: bear-3.0.11-1.fc35 bear-3.0.11-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-26 15:15:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1794566, 1921884    

Description Ben Beasley 2021-05-11 21:17:08 UTC
Description of problem:
Package bear fails to build from source in Fedora rawhide on s390x.

Version-Release number of selected component (if applicable):
3.0.7-2.fc34

Steps to Reproduce:
koji build --scratch f35 bear-3.0.7-2.fc34.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/bear

Recent scratch build at https://koji.fedoraproject.org/koji/taskinfo?taskID=67718399.

> Test project /builddir/build/BUILD/Bear-3.0.7/s390x-redhat-linux-gnu/subprojects/Build/BearSource
>     Start 1: bear::result_unit_test
> 1/7 Test #1: bear::result_unit_test ...........   Passed    0.00 sec
>     Start 2: bear::flags_unit_test
> 2/7 Test #2: bear::flags_unit_test ............   Passed    0.00 sec
>     Start 3: bear::shell_unit_test
> 3/7 Test #3: bear::shell_unit_test ............   Passed    0.01 sec
>     Start 4: bear::sys_unit_test
> 4/7 Test #4: bear::sys_unit_test ..............   Passed    0.00 sec
>     Start 5: bear::exec_unit_test
> 5/7 Test #5: bear::exec_unit_test .............***Exception: SegFault  0.45 sec
>     Start 6: bear::intercept_unit_test
> 6/7 Test #6: bear::intercept_unit_test ........   Passed    0.01 sec
>     Start 7: bear::citnames_unit_test
> 7/7 Test #7: bear::citnames_unit_test .........   Passed    0.03 sec
> 86% tests passed, 1 tests failed out of 7
> Total Test time (real) =   0.52 sec
> The following tests FAILED:
> 	  5 - bear::exec_unit_test (SEGFAULT)
> Errors while running CTest
> Output from these tests are in: /builddir/build/BUILD/Bear-3.0.7/s390x-redhat-linux-gnu/subprojects/Build/BearSource/Testing/Temporary/LastTest.log
> Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

Probable upstream bug: https://github.com/rizsotto/Bear/issues/309

Comment 1 Ben Beasley 2021-05-11 21:22:00 UTC
I ran into this while preparing to submit a PR to rebuild bear in a side-tag for a grpc update in Rawhide.

In the absence of an actual fix, the obvious solutions would seem to be:

  a. Disable the unit tests on s390x, and hope the resulting package is not too broken. Or:
  b. Add an ExcludeArch: s390x; link this bug, and block F-ExcludeArch-s390x from this bug.

What do you think? I can incorporate your preferred fix or workaround into the PR to rebuild for the grpc update.

Comment 2 Ben Beasley 2021-05-11 21:22:28 UTC
(Link for the ExcludeArch option: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures)

Comment 3 Ben Beasley 2021-05-13 12:11:26 UTC
I’ve worked on this some with upstream at https://github.com/rizsotto/Bear/issues/309. I was able to offer a backtrace, and I observed that the problem goes away when LTO is disabled, which is a good workaround for now.

I will provide a PR.

Comment 5 Fedora Update System 2021-05-18 22:12:48 UTC
FEDORA-2021-53e78675af has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-53e78675af

Comment 6 Fedora Update System 2021-05-19 02:21:03 UTC
FEDORA-2021-53e78675af has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-53e78675af`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-53e78675af

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-05-26 15:15:58 UTC
FEDORA-2021-73491747ee has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-05-27 00:32:07 UTC
FEDORA-2021-53e78675af has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.