Opened 7 years ago

Closed 7 years ago

#11290 closed Support Requests (worksforme)

Boost future continuations failing on OS X

Reported by: chappedm@… Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.57.0 Severity: Showstopper
Keywords: Cc:

Description

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:

        auto future = session().join(m_realm);
        uint64_t session_id = future.get();
        TRACE(trace_logger) << "session joined: session_id " << session_id;

However if I re-write it as:

        auto future = session().join(m_realm).then(
            [](boost::future<uint64_t>) {
                uint64_t session_id = future.get();
                TRACE(trace_logger) << "session joined: session_id " << session_id;
            }).wait();

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.

Change History (5)

comment:1 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

Please, could you try the develop branch in order to see if this is already fixed? I have done a lot of changes in it.

comment:2 by anonymous, 7 years ago

I will try out latest develop branch next chance I get. Might be a few days as I am waiting for a new mac.

comment:3 by viboes, 7 years ago

Any news?

comment:4 by viboes, 7 years ago

Type: BugsSupport Requests

PING !!!

comment:5 by viboes, 7 years ago

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.