Boost C++ Libraries: Ticket #3098: Abort in boost::asio::ip::tcp::acceptor constructor on Mac OS X https://svn.boost.org/trac10/ticket/3098 <p> I'm trying to run one of 'Echo' samples (<a href="http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp">http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp</a>) on Mac OS X. Boost libraries were built using bootstrap/bjam, the same compiler (GCC 4.0.1) was used to build the sample, then libboost_system-xgcc40-mt.a was linked to the executable. The sample aborts in boost::asio::ip::tcp::server constructor (actually, in hash_map::rehash that is called by kqueue_reactor). The stack trace is attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3098 Trac 1.4.3 michelnok@… Wed, 27 May 2009 12:09:43 GMT attachment set https://svn.boost.org/trac10/ticket/3098 https://svn.boost.org/trac10/ticket/3098 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">stacktrace.txt</span> </li> </ul> Ticket michelnok@… Wed, 27 May 2009 12:22:06 GMT summary changed https://svn.boost.org/trac10/ticket/3098#comment:1 https://svn.boost.org/trac10/ticket/3098#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Abort in boost::asio::ip::tcp::server constructor on Mac OS X</span> → <span class="trac-field-new">Abort in boost::asio::ip::tcp::acceptor constructor on Mac OS X</span> </li> </ul> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3098" title="#3098: Bugs: Abort in boost::asio::ip::tcp::acceptor constructor on Mac OS X (closed: fixed)">michelnok@mail.ru</a>: </p> <blockquote class="citation"> <p> The sample aborts in boost::asio::ip::tcp::server constructor </p> </blockquote> <p> Sorry for misprint. Of course, boost::asio::ip::tcp::acceptor. </p> Ticket michelnok@… Wed, 27 May 2009 14:23:30 GMT <link>https://svn.boost.org/trac10/ticket/3098#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3098#comment:2</guid> <description> <p> The bug is specific to Boost version 1.39.0 Boost version 1.38.0 works fine in the same environment. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Sat, 27 Jun 2009 02:18:46 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/3098#comment:3 https://svn.boost.org/trac10/ticket/3098#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fixed on trunk in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/54390" title="Fix failures reported when the tests are built with _GLIBCXX_DEBUG. ...">[54390]</a>. </p> Ticket chris_kohlhoff Mon, 29 Jun 2009 13:36:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3098#comment:4 https://svn.boost.org/trac10/ticket/3098#comment:4 <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/54499" title="Merge from trunk. Fixes #3095, #3216, #3098, #3107, #1341, #2754, ...">[54499]</a>) Merge from trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3095" title="#3095: Bugs: bug in automatic resizing of the bucket array (closed: fixed)">#3095</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3216" title="#3216: Bugs: variable shadowing with possibly bad implications (closed: fixed)">#3216</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3098" title="#3098: Bugs: Abort in boost::asio::ip::tcp::acceptor constructor on Mac OS X (closed: fixed)">#3098</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3107" title="#3107: Bugs: Error in allocation/dealocation of timers (closed: fixed)">#3107</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1341" title="#1341: Patches: unused argument and another g++ warning (closed: fixed)">#1341</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2754" title="#2754: Patches: [PATCH] building asio without exception support (closed: fixed)">#2754</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3157" title="#3157: Support Requests: ASIO Reference has no header file information (closed: fixed)">#3157</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2620" title="#2620: Bugs: Missing entries in documentation index (closed: fixed)">#2620</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2618" title="#2618: Bugs: Warnings about unused parameters with g++ -Wunused-parameter (closed: fixed)">#2618</a>. </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54373" title="Fix doc generation for array reference parameters. ">r54373</a> | chris_kohlhoff | 2009-06-26 21:03:14 +1000 (Fri, 26 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix doc generation for array reference parameters. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54376" title="Fix bug in hash resize. Ref #3095. ">r54376</a> | chris_kohlhoff | 2009-06-26 23:35:04 +1000 (Fri, 26 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix bug in hash resize. Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3095" title="#3095: Bugs: bug in automatic resizing of the bucket array (closed: fixed)">#3095</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54377" title="Remove a local variable that was hiding the ec parameter and ...">r54377</a> | chris_kohlhoff | 2009-06-26 23:55:24 +1000 (Fri, 26 Jun 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Remove a local variable that was hiding the ec parameter and preventing error codes from being correctly propagated. Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3216" title="#3216: Bugs: variable shadowing with possibly bad implications (closed: fixed)">#3216</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54390" title="Fix failures reported when the tests are built with _GLIBCXX_DEBUG. ...">r54390</a> | chris_kohlhoff | 2009-06-27 12:17:49 +1000 (Sat, 27 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix failures reported when the tests are built with _GLIBCXX_DEBUG. Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3098" title="#3098: Bugs: Abort in boost::asio::ip::tcp::acceptor constructor on Mac OS X (closed: fixed)">#3098</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54392" title="Fix custom memory allocation for timers. Ref #3107. ">r54392</a> | chris_kohlhoff | 2009-06-27 15:24:16 +1000 (Sat, 27 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix custom memory allocation for timers. Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3107" title="#3107: Bugs: Error in allocation/dealocation of timers (closed: fixed)">#3107</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54393" title="Fix various g++ warnings. Ref #1341. ">r54393</a> | chris_kohlhoff | 2009-06-27 17:07:40 +1000 (Sat, 27 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix various g++ warnings. Ref <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1341" title="#1341: Patches: unused argument and another g++ warning (closed: fixed)">#1341</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54400" title="Use boost::throw_exception() rather than throw keyword to allow asio ...">r54400</a> | chris_kohlhoff | 2009-06-27 17:52:11 +1000 (Sat, 27 Jun 2009) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Use boost::throw_exception() rather than throw keyword to allow asio to be used when exception support is disabled. Note that the SSL wrappers still require exception support. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2754" title="#2754: Patches: [PATCH] building asio without exception support (closed: fixed)">#2754</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54407" title="Make links to function overloads more obvious. ">r54407</a> | chris_kohlhoff | 2009-06-27 19:13:24 +1000 (Sat, 27 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Make links to function overloads more obvious. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54466" title="Add header file information to reference docs. Refs #3157. ">r54466</a> | chris_kohlhoff | 2009-06-28 23:07:43 +1000 (Sun, 28 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add header file information to reference docs. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3157" title="#3157: Support Requests: ASIO Reference has no header file information (closed: fixed)">#3157</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54467" title="Treat 0-byte reads and writes as no-ops to comply with the documented ...">r54467</a> | chris_kohlhoff | 2009-06-28 23:20:17 +1000 (Sun, 28 Jun 2009) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Treat 0-byte reads and writes as no-ops to comply with the documented type requirements for <a class="missing wiki">SyncReadStream</a>, <a class="missing wiki">AsyncReadStream</a>, <a class="missing wiki">SyncWriteStream</a> and <a class="missing wiki">AsyncWriteStream</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/54498" title="Add enum values to doc index. Refs #2620. ">r54498</a> | chris_kohlhoff | 2009-06-29 19:32:41 +1000 (Mon, 29 Jun 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add enum values to doc index. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2620" title="#2620: Bugs: Missing entries in documentation index (closed: fixed)">#2620</a>. </p> </blockquote> <p> ........ </p> Ticket