Boost C++ Libraries: Ticket #10496: 100% cpu usage when reading serial port on MacOSX https://svn.boost.org/trac10/ticket/10496 <p> Simple test program is attached. All it does is setup a serial port and start waiting for data. It prints the first data it receives, and quits. It is using 100% cpu (according to activity monitor). </p> <p> I've tried with the following serial ports: silab usb adapter, prolific usb adapter, and pty with master attached to socat. </p> <p> The profiler puts most of the time in <code></code><code>kevent</code><code></code> called from <code></code><code>boost::asio::detail::kqueue_reactor::run(bool, boost::asio::detail::op_queue&lt;boost::asio::detail::task_io_service_operation&gt;&amp;)</code><code></code> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10496 Trac 1.4.3 Christopher Moore <crmoore@…> Thu, 11 Sep 2014 21:33:34 GMT attachment set https://svn.boost.org/trac10/ticket/10496 https://svn.boost.org/trac10/ticket/10496 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> <p> Simple sample that demonstrates the problem. </p> Ticket repetier Sat, 04 Oct 2014 11:32:56 GMT <link>https://svn.boost.org/trac10/ticket/10496#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10496#comment:1</guid> <description> <p> I can confirm this on Mac OS X 10.9. I use it for communication with 3d printer. Going back to boost 1.53 solved the issue, but at some time I want to use the current version. Tried to see what causes it, but I'm not familiar enough to understand how all the classes are connected. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>repetier</dc:creator> <pubDate>Mon, 21 Sep 2015 15:13:07 GMT</pubDate> <title>version changed https://svn.boost.org/trac10/ticket/10496#comment:2 https://svn.boost.org/trac10/ticket/10496#comment:2 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.56.0</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> </ul> <p> Just a follow up for those finding this entry. </p> <p> asio included in 1.57 has solved the problem. </p> Ticket falolabaker@… Sat, 07 Apr 2018 14:36:23 GMT <link>https://svn.boost.org/trac10/ticket/10496#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10496#comment:3</guid> <description> <p> I am still having this issue on version 1.58.0 on ubuntu. Any workaround for now will be appreciated. Is this resolved in latter version of boost? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 07 Apr 2018 14:36:50 GMT</pubDate> <title>version changed https://svn.boost.org/trac10/ticket/10496#comment:4 https://svn.boost.org/trac10/ticket/10496#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.57.0</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> Ticket