Ticket #9065 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

[interprocess] atomic_cas32 inline assembly wrong on ppc32

Reported by: Petr Machata <pmachata@…> Owned by: igaztanaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:


This shows itself as a number of failures in test suite, some of which include test cases spinning infinitely. The problem (as discovered by Jaroslav Škarvada and reported in Red Hat bugzilla ) is in inline assembly in atomic_cas32. The comparison is done against "with" and the new value is "cmp". The attached patch swaps the order of arguments passed to the inline assembly block so that they match the order of incoming function arguments, which fixes the problem.


boost-1.54.0-interprocess-atomic_cas32-ppc.patch (641 bytes) - added by Petr Machata <pmachata@…> 4 years ago.
A fix.

Change History

Changed 4 years ago by Petr Machata <pmachata@…>

A fix.

comment:1 Changed 4 years ago by igaztanaga

Thanks for the patch. It seems that most(all?) Boost regression tests are executed in Intel CPUs so this might be quite old.

comment:2 Changed 4 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

(In [85522]) Fixes #9065


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.