Bug 1002578 - atomic_cas32 doesn't work on ppc
Summary: atomic_cas32 doesn't work on ppc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: boost
Version: 20
Hardware: ppc64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Machata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1001203 1128127 1206133
TreeView+ depends on / blocked
 
Reported: 2013-08-29 13:20 UTC by Jaroslav Škarvada
Modified: 2016-01-18 09:31 UTC (History)
5 users (show)

Fixed In Version: boost-1.53.0-14.fc19
Clone Of:
: 1128127 1206133 (view as bug list)
Environment:
Last Closed: 2013-09-08 00:35:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer (256 bytes, text/plain)
2013-08-29 13:20 UTC, Jaroslav Škarvada
no flags Details
Proposed fix (700 bytes, patch)
2013-08-29 13:21 UTC, Jaroslav Škarvada
no flags Details | Diff

Description Jaroslav Škarvada 2013-08-29 13:20:15 UTC
Created attachment 791798 [details]
Reproducer

Description of problem:
atomic_cas32 doesn't work on ppc

Version-Release number of selected component (if applicable):
boost-devel-1.54.0-2.fc20.ppc

How reproducible:
Always

Steps to Reproduce:
1. Compile and run the attached reproducer

Actual results:
2

Expected results:
0

Additional info:
This breaks IPC and can cause never-ending loops, etc., for example see bug 1001203.

Comment 1 Jaroslav Škarvada 2013-08-29 13:21:17 UTC
Created attachment 791799 [details]
Proposed fix

It seems like typo in the ASM. The 1.53 seems to be also affected.

Comment 2 Jaroslav Škarvada 2013-08-29 13:27:53 UTC
Decreasing the version to f20.

Comment 3 Petr Machata 2013-08-29 22:25:52 UTC
Filed upstream as https://svn.boost.org/trac/boost/ticket/9065
I think a better fix is simply swapping the incoming arguments of the inline assembly block, as that way they match the incoming arguments of the function itself.  That's what I'll apply in F 19+.

Comment 4 Fedora Update System 2013-09-02 09:34:23 UTC
boost-1.53.0-14.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/boost-1.53.0-14.fc19

Comment 5 Petr Machata 2013-09-02 09:40:02 UTC
Note that I have added the fix to F20 and Rawhide as well.

Comment 6 Fedora Update System 2013-09-02 23:25:53 UTC
Package boost-1.53.0-14.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing boost-1.53.0-14.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15639/boost-1.53.0-14.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-09-08 00:35:22 UTC
boost-1.53.0-14.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, 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.