Bug 2054195 - Test runs using cpputest do not terminate
Summary: Test runs using cpputest do not terminate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cpputest
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-14 12:09 UTC by Francesco Giancane
Modified: 2024-06-08 19:34 UTC (History)
1 user (show)

Fixed In Version: cpputest-4.0-8.fc40 cpputest-4.0-8.el9 cpputest-4.0-8.fc39
Clone Of:
Environment:
Last Closed: 2024-06-08 05:22:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Francesco Giancane 2022-02-14 12:09:52 UTC
Description of problem:

Hello, we are working with a project using cpputest as unit test library. We are using standard packages from EPEL for CentOS 8 (but same issue apply to Fedora, latest release).

We are running some basic unit tests for a (yet small) application, but those tests won't run. The test runner won't reach the end of execution, and is stuck undefinedly.

If you disable the Memory Leak detector component, however, everything runs fine.

Please have a look at my discussion in the GitHub repository for the project, where more data is reported: https://github.com/cpputest/cpputest/issues/1541

It seems that the problems only arises when using dynamically-linked builds of cpputest.

Version-Release number of selected component (if applicable):
Name         : cpputest-devel
Version      : 4.0
Release      : 1.el8
Architecture : x86_64
Size         : 911 k
Source       : cpputest-4.0-1.el8.src.rpm
Repository   : @System
From repo    : epel


How reproducible:
Write some basic unit tests using cpputest and then build them. They should produce executable(s) failing at memory leak detector (even though no memory is allocated) and never terminate

Steps to Reproduce:
1. Write some unit tests (in separate files, also copy-paste from official manual)
2. Run them
3. Observe that program never exits

Actual results:
Unit tests does not terminate. Frontends managing results (eclipse, automake, ...) cannot report test suite results.

Expected results:
Unit tests should terminate after execution.

Additional info:
Please find attached here further investigation: https://github.com/cpputest/cpputest/issues/1541

Also, in Fedora/CentOS/EPEL, CMake for cpputest is patched not to produce static builds: however, this issue is not present in static version of library. We are discussing with author whether it is doable to enable dynamically build objects for cpputest too or if there are architectural constraints forcing him to use static builds.

Comment 1 Francesco Giancane 2022-02-28 11:18:52 UTC
Hello,

Per our latest discussion in https://github.com/cpputest/cpputest/issues/1541, the original library author agreed upon the fact that his library is specifically designed to be statically linked , and this strage behavior is caused by the library being compiled as a dynamic object.

I think here the culprit is the patch https://src.fedoraproject.org/rpms/cpputest/blob/epel8/f/cpputest-no-static-ext.patch that should be removed; this should fix the issue Fedora/EPEL side.

Comment 2 Fedora Update System 2024-05-30 22:15:51 UTC
FEDORA-2024-e087523655 (cpputest-4.0-8.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e087523655

Comment 3 Fedora Update System 2024-05-30 22:15:52 UTC
FEDORA-EPEL-2024-804bd59138 (cpputest-4.0-8.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-804bd59138

Comment 4 Fedora Update System 2024-05-30 22:15:53 UTC
FEDORA-2024-ff88f28778 (cpputest-4.0-8.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ff88f28778

Comment 5 Fedora Update System 2024-05-31 02:09:59 UTC
FEDORA-2024-e087523655 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e087523655`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e087523655

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

Comment 6 Fedora Update System 2024-05-31 02:21:28 UTC
FEDORA-EPEL-2024-804bd59138 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-804bd59138

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

Comment 7 Fedora Update System 2024-05-31 02:24:07 UTC
FEDORA-2024-ff88f28778 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ff88f28778`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ff88f28778

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

Comment 8 Fedora Update System 2024-06-08 05:22:07 UTC
FEDORA-2024-ff88f28778 (cpputest-4.0-8.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-06-08 07:09:14 UTC
FEDORA-EPEL-2024-804bd59138 (cpputest-4.0-8.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-06-08 19:34:47 UTC
FEDORA-2024-e087523655 (cpputest-4.0-8.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.