Skip to content
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

"suspending thread while at least one lock is being held" - 1d_stencil_8 - SuperMIC #1394

Closed
parsa opened this issue Mar 5, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@parsa
Copy link
Contributor

commented Mar 5, 2015

Changeset: 71209f4
Arguments: --nx 100000 --np 200 -t 20
Configuration: Debug, Boost 1.55.0, 8 nodes, 1 locality per node, SuperMIC
Location: src/runtime/threads/thread_helpers.cpp:481
Stack Trace:

#30 ?? () (at 0x0000000000000000)
#29 hpx::util::coroutines::detail::lx::trampoline (fun=0x2aaac6839200) at /home/parsa/hpx/repo/hpx/util/coroutine/detail/context_linux_x86.hpp:89 (at 0x00002aaaaafd92a0)
#28 hpx::util::coroutines::detail::coroutine_impl_wrapper<hpx::util::decay<std::remove_reference<hpx::threads::thread_function_type&>::type>::type, hpx::threads::coroutine_type, hpx::util::coroutines::detail::default_context_impl, hpx::threads::detail::coroutine_allocator>::operator() (this=0x2aaac6839200) at /home/parsa/hpx/repo/hpx/util/coroutine/detail/coroutine_impl.hpp:315 (at 0x00002aaaaaf9bf53)
#27 hpx::util::detail::callable_vtable<hpx::threads::thread_function_sig>::invoke(void **, enum hpx::threads::thread_state_ex_enum &) (f=0x2aaac6839280, vs=@0x2aaac7f66f78) at /home/parsa/hpx/repo/hpx/util/detail/vtable/callable_vtable.hpp:29 (at 0x0000000000549eda)
#26 hpx::util::invoke_r(hpx::util::decay<hpx::actions::detail::continuation_thread_function<boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type, hpx::actions::basic_action<hpx::components::server::runtime_support, void (hpx::naming::gid_type *, hpx::util::decay<const partition_data &>::type *), boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoker, hpx::naming::address::address_type, const partition_data &> >::type &, enum hpx::threads::thread_state_ex_enum &) (f=..., vs=@0x2aaac7f66f78) at /home/parsa/hpx/repo/hpx/util/invoke.hpp:197 (at 0x00000000006674dd)
#25 hpx::actions::trigger(hpx::actions::continuation &, hpx::util::detail::deferred_call_impl<hpx::util::decay<hpx::actions::basic_action<hpx::components::server::runtime_support, void (hpx::naming::gid_type *, hpx::util::decay<const partition_data &>::type *), boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoker>::type, hpx::util::tuple<unsigned long, partition_data> > &) (cont=..., f=...) at /home/parsa/hpx/repo/hpx/runtime/actions/continuation.hpp:228 (at 0x000000000068e92f)
#24 hpx::util::invoke_r(hpx::util::detail::deferred_call_impl<hpx::util::decay<hpx::actions::basic_action<hpx::components::server::runtime_support, void (hpx::naming::gid_type *, hpx::util::decay<const partition_data &>::type *), boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoker>::type, hpx::util::tuple<unsigned long, partition_data> > &) (f=...) at /home/parsa/hpx/repo/hpx/util/invoke.hpp:197 (at 0x000000000066707d)
#23 hpx::util::invoke_r(hpx::actions::basic_action<hpx::components::server::runtime_support, void (hpx::naming::gid_type *, hpx::util::decay<const partition_data &>::type *), boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoker &, hpx::util::tuple_element<0ul, hpx::util::tuple<unsigned long, partition_data> >::type &, hpx::util::tuple_element<1ul, hpx::util::tuple<unsigned long, partition_data> >::type &) (f=..., vs=..., vs=...) at /home/parsa/hpx/repo/hpx/util/invoke.hpp:197 (at 0x00000000006675fc)
#22 hpx::actions::basic_action<hpx::components::server::runtime_support, void (hpx::naming::gid_type *, hpx::util::decay<const partition_data &>::type *), boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoker::operator()(hpx::naming::address::address_type, hpx::util::detail::qualify_as_impl<hpx::util::tuple_element<0ul, hpx::util::decay<hpx::util::detail::unwrap_impl<hpx::util::decay<hpx::util::tuple<hpx::lcos::future<partition_data>, hpx::lcos::future<partition_data>, hpx::lcos::shared_future<partition_data>, hpx::lcos::future<partition_data> > >::type, void>::type>::type>::type, hpx::util::detail::unwrap_impl<hpx::util::decay<hpx::util::tuple<hpx::lcos::future<partition_data>, hpx::lcos::future<partition_data>, hpx::lcos::shared_future<partition_data>, hpx::lcos::future<partition_data> > >::type, void>::type>::type &) (this=0x2aaac682c258, lva=46912619476480, vs=...) at /home/parsa/hpx/repo/hpx/runtime/actions/basic_action.hpp:139 (at 0x00000000005cbafa)
#21 hpx::actions::basic_action_impl<struct <unnamed>, struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, boost::mpl::if_<boost::is_same<hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type>, hpx::actions::detail::this_type>, hpx::actions::action<struct <unnamed>, {(void (*)())hpx::components::server::runtime_support::create_component, 0L}, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >, hpx::components::server::create_component_action<partition_server, hpx::util::decay<const partition_data &>::type> >::type>::invoke(hpx::naming::address::address_type, std::remove_reference<boost::disable_if_c<false, partition_data>::type&>::type &) (lva=46912619476480, vs=...) at /home/parsa/hpx/repo/hpx/runtime/actions/component_action.hpp:66 (at 0x00000000005cd0fb)
#20 hpx::components::server::runtime_support::create_component (this=0x2aaab204f600, v=...) at /home/parsa/hpx/repo/hpx/runtime/components/server/runtime_support.hpp:535 (at 0x00000000006221e0)
#19 hpx::components::component_factory<partition_server_type>::create_with_args (this=0x2aaac3c333d8, ctor=...) at /home/parsa/hpx/repo/hpx/runtime/components/component_factory.hpp:171 (at 0x00000000005f84ee)
#18 hpx::components::server::create (ctor=..., ec=...) at /home/parsa/hpx/repo/hpx/runtime/components/server/create_component.hpp:59 (at 0x000000000069474c)
#17 hpx::components::simple_component_base<partition_server>::get_base_gid (this=0x2aaac5427fc0, assign_gid=...) at /home/parsa/hpx/repo/hpx/runtime/components/server/simple_component_base.hpp:112 (at 0x00000000005f5b6d)
#16 hpx::applier::bind_gid_local (gid_=..., addr=..., ec=...) at /home/parsa/hpx/repo/src/runtime/applier/bind_naming_wrappers.cpp:28 (at 0x00002aaaab1e8321)
#15 hpx::agas::addressing_service::bind_local (this=0x2aaab211e578, id=..., addr=..., ec=...) at /home/parsa/hpx/repo/hpx/runtime/agas/addressing_service.hpp:599 (at 0x00002aaaab1e9c1d)
#14 hpx::agas::addressing_service::bind_range_local (this=0x2aaab211e578, lower_id=..., count=1, baseaddr=..., offset=0, ec=...) at /home/parsa/hpx/repo/src/runtime/agas/addressing_service.cpp:1077 (at 0x00002aaaab6d1d46)
#13 hpx::agas::server::primary_namespace::service (this=0x2aaab2105330, req=..., ec=...) at /home/parsa/hpx/repo/src/runtime/agas/server/primary_namespace_server.cpp:70 (at 0x00002aaaab7b9761)
#12 hpx::agas::server::primary_namespace::update_time_on_exit::~update_time_on_exit (this=0x2aaac7f64590) at /home/parsa/hpx/repo/hpx/runtime/agas/server/primary_namespace.hpp:233 (at 0x00002aaaab7d4883)
#11 boost::unique_lock<hpx::lcos::local::spinlock>::unique_lock (this=0x2aaac7f64418, m_=...) at /usr/local/packages/boost/1.55.0/INTEL-14.0.2-python-2.7.7-anaconda/include/boost/thread/lock_types.hpp:124 (at 0x00002aaaaaf25997)
#10 boost::unique_lock<hpx::lcos::local::spinlock>::lock (this=0x2aaac7f64418) at /usr/local/packages/boost/1.55.0/INTEL-14.0.2-python-2.7.7-anaconda/include/boost/thread/lock_types.hpp:346 (at 0x00002aaaaaf25bc8)
#9 hpx::lcos::local::spinlock::lock (this=0x2aaab2105410) at /home/parsa/hpx/repo/hpx/lcos/local/spinlock.hpp:147 (at 0x00002aaaaaf9e1f6)
#8 hpx::lcos::local::spinlock::yield (k=16) at /home/parsa/hpx/repo/hpx/lcos/local/spinlock.hpp:67 (at 0x00002aaaaaf9e0e1)
#7 hpx::this_thread::suspend(enum hpx::threads::thread_state_enum, const char *, hpx::error_code &) (state=hpx::threads::pending, description=0x2aaaabedec48 "spinlock::yield", ec=...) at /home/parsa/hpx/repo/src/runtime/threads/thread_helpers.cpp:481 (at 0x00002aaaab6aac61)
#6 _Unwind_Resume () from /lib64/libgcc_s.so.1 (at 0x0000003de78103f7)
#5 _Unwind_ForcedUnwind () from /lib64/libgcc_s.so.1 (at 0x0000003de7810323)
#4 __gxx_personality_v0 () from /usr/lib64/libstdc++.so.6 (at 0x0000003de9cbc5d1)
#3 __cxa_bad_cast () from /usr/lib64/libstdc++.so.6 (at 0x0000003de9cbbb79)
#2 std::set_unexpected(void (*)()) () from /usr/lib64/libstdc++.so.6 (at 0x0000003de9cbcbe6)
#1 __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6 (at 0x0000003de9cbea5d)
#0 abort () from /lib64/libc.so.6 (at 0x0000003dddc33f10)

@hkaiser hkaiser added this to the 0.9.10 milestone Mar 5, 2015

@hkaiser hkaiser self-assigned this Mar 5, 2015

@hkaiser

This comment has been minimized.

Copy link
Member

commented Mar 5, 2015

This is no segfault but should give a proper error message...

@hkaiser hkaiser closed this in 46c855b Mar 5, 2015

@parsa parsa changed the title SEGFAULT in 1d_stencil_8 on SuperMIC - Update 1 "suspending thread while at least one lock is being held" - 1d_stencil_8 - SuperMIC Mar 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.