`.get()` hangs on unwrapped, deferred future.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by compiling and running the minimal reproducer with the stated Boost and GCC versions. Trace the interaction between set_deferred(), then(), unwrap(), and the final get() to determine why completion does not return. Done means the cause is identified and the behavior is covered by a suitable regression test.
Written by the indexing model from the issue text.
Description
Can someone tell my why the .get() call here does not return?
#define BOOST_THREAD_VERSION 5
#include <boost/thread/future.hpp>
int main()
{
auto outer = boost::make_ready_future();
outer.set_deferred();
outer.then([](auto inner) {
inner.get();
return boost::make_ready_future();
})
.unwrap()
.get();
}
(this is a minimal repro of this issue in a much larger codebase. i know you could return void from the lambda here and avoid calling unwrap()...)
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
boost v1.71, v1.77
- Dominant language
- C++
- Stars
- 213
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/thread
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·