Boost C++ Libraries: Ticket #9065: [interprocess] atomic_cas32 inline assembly wrong on ppc32 https://svn.boost.org/trac10/ticket/9065 <p> 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 <a class="ext-link" href="https://bugzilla.redhat.com/show_bug.cgi?id=1002578"><span class="icon">​</span>https://bugzilla.redhat.com/show_bug.cgi?id=1002578</a> ) 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9065 Trac 1.4.3 Petr Machata <pmachata@…> Thu, 29 Aug 2013 22:23:00 GMT attachment set https://svn.boost.org/trac10/ticket/9065 https://svn.boost.org/trac10/ticket/9065 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1.54.0-interprocess-atomic_cas32-ppc.patch</span> </li> </ul> <p> A fix. </p> Ticket Ion Gaztañaga Fri, 30 Aug 2013 07:55:35 GMT <link>https://svn.boost.org/trac10/ticket/9065#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9065#comment:1</guid> <description> <p> Thanks for the patch. It seems that most(all?) Boost regression tests are executed in Intel CPUs so this might be quite old. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 30 Aug 2013 07:56:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9065#comment:2 https://svn.boost.org/trac10/ticket/9065#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85522" title="Fixes #9065">[85522]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9065" title="#9065: Bugs: [interprocess] atomic_cas32 inline assembly wrong on ppc32 (closed: fixed)">#9065</a> </p> Ticket