Boost C++ Libraries: Ticket #11291: Boost future continuations failing on OS X https://svn.boost.org/trac10/ticket/11291 <p> I have a problem with using boost future continuations via then(). I am building Boost 1.58 for both Linux 64-bit and OS X 64-bit. I have the following code that executes correctly: </p> <pre class="wiki"> auto future = session().join(m_realm); uint64_t session_id = future.get(); TRACE(trace_logger) &lt;&lt; "session joined: session_id " &lt;&lt; session_id; </pre><p> However if I re-write it as: </p> <pre class="wiki"> auto future = session().join(m_realm).then( [](boost::future&lt;uint64_t&gt;) { uint64_t session_id = future.get(); TRACE(trace_logger) &lt;&lt; "session joined: session_id " &lt;&lt; session_id; }).wait(); </pre><p> then the continuation is never called and I am stuck waiting on this future to be resolved for indefinitely. Seems to be a data race of some kind. Unfortunately, I don't have a minimal test case to reproduce the issue yet. If I force the promise to be satisfied before acquiring the future and calling wait then it works as expected. So I suspect that this is a data race of sorts. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11291 Trac 1.4.3 chappedm@… Wed, 13 May 2015 01:28:33 GMT version changed https://svn.boost.org/trac10/ticket/11291#comment:1 https://svn.boost.org/trac10/ticket/11291#comment:1 <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 viboes Thu, 14 May 2015 15:59:06 GMT owner, status changed https://svn.boost.org/trac10/ticket/11291#comment:2 https://svn.boost.org/trac10/ticket/11291#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Is this a duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11290" title="#11290: Support Requests: Boost future continuations failing on OS X (closed: worksforme)">#11290</a>? </p> Ticket viboes Fri, 29 May 2015 17:59:15 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11291#comment:3 https://svn.boost.org/trac10/ticket/11291#comment:3 <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">duplicate</span> </li> </ul> Ticket