New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS 2017.4 Preview deadlock in sync_pq_multi_thread_p_lib.exe #134

Closed
garyfurnish opened this Issue Aug 28, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@garyfurnish

garyfurnish commented Aug 28, 2017

May be related to trac #13069.
Deadlock requires end-task to continue tests.
Produced in 3222938 with 2017.4 preview, suspect also occurs in 2017.3. Tested in debug, address-model=64. All Threads appear to be stuck on thread.cpp line 741.

                unsigned long const notified_index=detail::win32::WaitForMultipleObjectsEx(handle_count,handles,false,using_timer?INFINITE:time_left.milliseconds, 0);

Stack frame of primary thread is

>	boost_thread-vc141-mt-gd-1_65.dll!boost::this_thread::interruptible_wait(void * handle_to_wait_for, boost::detail::timeout target_time) Line 741	C++	Symbols loaded.
 	boost_thread-vc141-mt-gd-1_65.dll!boost::thread::join_noexcept() Line 453	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::thread::join() Line 775	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::thread_group::join_all() Line 120	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!compute_sum(const int n) Line 139	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!main() Line 209	C++	Symbols loaded.

Stack frame of a worker thread is:

>	boost_thread-vc141-mt-gd-1_65.dll!boost::this_thread::interruptible_wait(void * handle_to_wait_for, boost::detail::timeout target_time) Line 741	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::detail::basic_cv_list_entry::wait(boost::detail::timeout abs_time) Line 95	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::detail::basic_condition_variable::do_wait<boost::unique_lock<boost::mutex> >(boost::unique_lock<boost::mutex> & lock, boost::detail::timeout abs_time) Line 245	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::condition_variable::wait(boost::unique_lock<boost::mutex> & m) Line 339	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::concurrent::detail::sync_queue_base<int,boost::detail::priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > >::wait_until_not_empty(boost::unique_lock<boost::mutex> & lk) Line 191	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> >::pull() Line 251	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!atomic_pull(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * q, boost::atomics::atomic<int> * sum) Line 105	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64>,boost::_bi::value<boost::atomics::atomic<int> * __ptr64> >::operator()<void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64,boost::atomics::atomic<int> * __ptr64),boost::_bi::list0>(boost::_bi::type<void> __formal, void(*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > *, boost::atomics::atomic<int> *) & f, boost::_bi::list0 & a, int __formal) Line 320	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::_bi::bind_t<void,void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64,boost::atomics::atomic<int> * __ptr64),boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64>,boost::_bi::value<boost::atomics::atomic<int> * __ptr64> > >::operator()() Line 1295	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::detail::invoke<boost::_bi::bind_t<void,void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64,boost::atomics::atomic<int> * __ptr64),boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64>,boost::_bi::value<boost::atomics::atomic<int> * __ptr64> > > >(boost::_bi::bind_t<void,void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > *,boost::atomics::atomic<int> *),boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > *>,boost::_bi::value<boost::atomics::atomic<int> *> > > && f) Line 135	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::detail::thread_data<boost::_bi::bind_t<void,void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64,boost::atomics::atomic<int> * __ptr64),boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64>,boost::_bi::value<boost::atomics::atomic<int> * __ptr64> > > >::run2<>(boost::detail::tuple_indices<> __formal) Line 76	C++	Symbols loaded.
 	sync_pq_multi_thread_p.exe!boost::detail::thread_data<boost::_bi::bind_t<void,void (__cdecl*)(boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64,boost::atomics::atomic<int> * __ptr64),boost::_bi::list2<boost::_bi::value<boost::concurrent::sync_priority_queue<int,boost::container::vector<int,boost::container::new_allocator<int> >,std::less<int> > * __ptr64>,boost::_bi::value<boost::atomics::atomic<int> * __ptr64> > > >::run() Line 82	C++	Symbols loaded.
 	boost_thread-vc141-mt-gd-1_65.dll!boost::`anonymous namespace'::thread_start_function(void * param) Line 296	C++	Symbols loaded.

Dump/pdb/etc available, email me.

@garyfurnish

This comment has been minimized.

Show comment
Hide comment
@garyfurnish

garyfurnish Aug 28, 2017

Tests clean and closing as fixed by 39c23dd.

garyfurnish commented Aug 28, 2017

Tests clean and closing as fixed by 39c23dd.

@viboes viboes added the boost-1.66 label Sep 19, 2017

@viboes viboes added this to the 1.66 milestone Oct 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment