Modify

Ticket #9065 (closed Bugs: fixed)

Opened 8 months ago

Last modified 8 months 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:

Description

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  https://bugzilla.redhat.com/show_bug.cgi?id=1002578 ) 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.

Attachments

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

Change History

Changed 8 months ago by Petr Machata <pmachata@…>

A fix.

comment:1 Changed 8 months 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 8 months ago by igaztanaga

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

(In [85522]) Fixes #9065

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.