Boost C++ Libraries: Ticket #4687: boost::interprocess::message_queue::receive and timed_receive bug(Linux) https://svn.boost.org/trac10/ticket/4687 <p> There is a bug in boost::interprocess::message_queue, the receive and timed_receive methods, it will make the cpu's load more than 100%. Under the environment 1 there has the problem,but under the environment 2 is ok. </p> <p> environment 1: Linux 2.6.9-67; g++(gcc)3.4.6,g++(gcc)4.1.2; Hat Enterprise Linux AS release 4 (Nahant Update 6); redhat-3; </p> <p> environment 2: Linux 2.6.18-128; g++(gcc)4.1.2; Red Hat Enterprise Linux Server release 5.3 (Tikanga) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4687 Trac 1.4.3 anonymous Wed, 06 Oct 2010 16:46:16 GMT <link>https://svn.boost.org/trac10/ticket/4687#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4687#comment:1</guid> <description> <p> environment 3: Linux 2.6.9-55.ELsmp; g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8) </p> <p> Initially we saw the same problem -- 100% cpu. Adding -I/usr/include/nptl to the build solved the problem: </p> <p> /usr/include/bits/posix_opt.h: #define _POSIX_THREAD_PROCESS_SHARED -1 /usr/include/nptl/bits/posix_opt.h: #define _POSIX_THREAD_PROCESS_SHARED 200112L </p> <p> YMMV </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 01 Apr 2011 21:58:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4687#comment:2 https://svn.boost.org/trac10/ticket/4687#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">invalid</span> </li> </ul> <p> Could not reproduce the problem. </p> Ticket