Boost C++ Libraries: Ticket #9221: message_queue deadlock on linux https://svn.boost.org/trac10/ticket/9221 <p> I have a problem with message_queue on linux. there are two writers and one reader. some milliseconds after start application locks on receive and send methods. writers waits while(is_full()), reader waits while(is_empty()) (see attach); If I add manual synchronization in writers (scoped lock), application closes normal. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9221 Trac 1.4.3 aalutov@… Thu, 10 Oct 2013 10:58:38 GMT attachment set https://svn.boost.org/trac10/ticket/9221 https://svn.boost.org/trac10/ticket/9221 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">multithread_producer.cpp</span> </li> </ul> Ticket Ion Gaztañaga Sun, 13 Oct 2013 19:33:36 GMT <link>https://svn.boost.org/trac10/ticket/9221#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9221#comment:1</guid> <description> <p> Thanks for the report. I'm still not able to reproduce the problem, but I'll try harder with different linux versions. Do you know the libc version in your system? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 14 Oct 2013 07:12:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9221#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9221#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9221#comment:1" title="Comment 1">igaztanaga</a>: </p> <blockquote class="citation"> <p> Thanks for the report. I'm still not able to reproduce the problem, but I'll try harder with different linux versions. Do you know the libc version in your system? </p> </blockquote> <p> Thanks for reply. My libc version is 2.15. linux x86_64, kernel version is 3.5.0-030500-generic. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 15 Oct 2013 06:29:16 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/9221#comment:3 https://svn.boost.org/trac10/ticket/9221#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I've reproduced the bug, the queue only works for single proucer / single consumer. I have a fix adding some blocked producer and consumer counters. You test case seems fixed with these counters. I'll commit it to trunk ASAP, it would be nice if you could tell me if the problem was completely solved. </p> Ticket anonymous Tue, 15 Oct 2013 07:37:49 GMT <link>https://svn.boost.org/trac10/ticket/9221#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9221#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9221#comment:3" title="Comment 3">igaztanaga</a>: </p> <blockquote class="citation"> <p> I've reproduced the bug, the queue only works for single proucer / single consumer. I have a fix adding some blocked producer and consumer counters. You test case seems fixed with these counters. I'll commit it to trunk ASAP, it would be nice if you could tell me if the problem was completely solved. </p> </blockquote> <p> Ok, I'll check my test after your commit. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 15 Oct 2013 08:02:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9221#comment:5 https://svn.boost.org/trac10/ticket/9221#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/86316" title="Fixes #9221 (&#34;message_queue deadlock on linux&#34;)">[86316]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9221" title="#9221: Bugs: message_queue deadlock on linux (closed: fixed)">#9221</a> ("message_queue deadlock on linux") </p> Ticket anonymous Tue, 15 Oct 2013 09:36:33 GMT <link>https://svn.boost.org/trac10/ticket/9221#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9221#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9221#comment:5" title="Comment 5">igaztanaga</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86316" title="Fixes #9221 (&#34;message_queue deadlock on linux&#34;)">[86316]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9221" title="#9221: Bugs: message_queue deadlock on linux (closed: fixed)">#9221</a> ("message_queue deadlock on linux") </p> </blockquote> <p> I can't reproduce this bug on trunk. Problem was solved. Thank you. </p> </description> <category>Ticket</category> </item> </channel> </rss>