Skip to content

Instantly share code, notes, and snippets.

@sithhell
Created February 3, 2016 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sithhell/c963f9a8957f6e1d2d16 to your computer and use it in GitHub Desktop.
Save sithhell/c963f9a8957f6e1d2d16 to your computer and use it in GitHub Desktop.
[16:31:05]:heller@luna:/home/heller/build/hpx/debug:0:$ mpirun -np 2 ./bin/migrate_component_test -Ihpx.stacks.small_size=0x20000 -t1
test_migrate_component: ->{0000000200000000, 0000000000000000}
test_migrate_component: <-{0000000200000000, 0000000000000000}
=================================================================
==21011==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060000b6df0 at pc 0x0000007e2e01 bp 0x7fcf046e3260 sp 0x7fcf046e3258
WRITE of size 8 at 0x6060000b6df0 thread T9
#0 0x7e2e00 in hpx::lcos::local::spinlock::acquire_lock() /home/heller/hpx/hpx/lcos/local/spinlock.hpp:185:33
#1 0x7e2d6f in hpx::lcos::local::spinlock::lock() /home/heller/hpx/hpx/lcos/local/spinlock.hpp:142:38
#2 0x812b8d in boost::lock_guard<hpx::lcos::local::spinlock>::lock_guard(hpx::lcos::local::spinlock&) /home/heller/boost_1_58_0/boost/thread/lock_guard.hpp:38:7
#3 0x88c3c8 in hpx::components::migration_support<hpx::components::component_base<test_server>, hpx::lcos::local::spinlock>::pin() /home/heller/hpx/hpx/runtime/components/server/migration_support.hpp:67:43
#4 0x88c1d9 in hpx::components::detail::pinned_ptr<test_server>::pin() /home/heller/hpx/hpx/runtime/components/pinned_ptr.hpp:75:21
#5 0x88c075 in hpx::components::detail::pinned_ptr<test_server>::pinned_ptr(unsigned long) /home/heller/hpx/hpx/runtime/components/pinned_ptr.hpp:63:17
#6 0x88bd8a in hpx::components::pinned_ptr::pinned_ptr<test_server>(unsigned long, hpx::components::pinned_ptr::id<test_server>) /home/heller/hpx/hpx/runtime/components/pinned_ptr.hpp:105:23
#7 0x88841b in hpx::components::pinned_ptr hpx::components::pinned_ptr::create<test_server>(unsigned long) /home/heller/hpx/hpx/runtime/components/pinned_ptr.hpp:99:20
#8 0x887e93 in hpx::util::unique_function<hpx::threads::thread_state_enum (hpx::threads::thread_state_ex_enum), false> hpx::components::migration_support<hpx::components::component_base<test_server>, hpx::lcos::local::spinlock>::decorate_action<hpx::actions::detail::continuation_thread_function<test_server::call_action, hpx::actions::basic_action<test_server const, hpx::naming::id_type (), test_server::call_action>::invoker, unsigned long&> >(unsigned long, hpx::actions::detail::continuation_thread_function<test_server::call_action, hpx::actions::basic_action<test_server const, hpx::naming::id_type (), test_server::call_action>::invoker, unsigned long&>&&) /home/heller/hpx/hpx/runtime/components/server/migration_support.hpp:163:17
#9 0x88743b in hpx::util::unique_function<hpx::threads::thread_state_enum (hpx::threads::thread_state_ex_enum), false> hpx::traits::action_decorate_function<test_server::call_action, void>::call<hpx::actions::detail::continuation_thread_function<test_server::call_action, hpx::actions::basic_action<test_server const, hpx::naming::id_type (), test_server::call_action>::invoker, unsigned long&> >(unsigned long, hpx::actions::detail::continuation_thread_function<test_server::call_action, hpx::actions::basic_action<test_server const, hpx::naming::id_type (), test_server::call_action>::invoker, unsigned long&>&&) /home/heller/hpx/hpx/traits/action_decorate_function.hpp:27:20
#10 0x886fac in hpx::util::unique_function<hpx::threads::thread_state_enum (hpx::threads::thread_state_ex_enum), false> hpx::actions::basic_action<test_server const, hpx::naming::id_type (), test_server::call_action>::construct_thread_function<>(std::__1::unique_ptr<hpx::actions::continuation, std::__1::default_delete<hpx::actions::continuation> >, unsigned long) /home/heller/hpx/hpx/runtime/actions/basic_action.hpp:257:20
#11 0x89cdab in hpx::util::unique_function<hpx::threads::thread_state_enum (hpx::threads::thread_state_ex_enum), false> hpx::actions::transfer_action<test_server::call_action>::get_thread_function<>(hpx::util::detail::pack_c<unsigned long>, std::__1::unique_ptr<hpx::actions::continuation, std::__1::default_delete<hpx::actions::continuation> >, unsigned long) /home/heller/hpx/hpx/runtime/actions/transfer_action.hpp:199:20
#12 0x8980ff in hpx::actions::transfer_action<test_server::call_action>::get_thread_function(std::__1::unique_ptr<hpx::actions::continuation, std::__1::default_delete<hpx::actions::continuation> >, unsigned long) /home/heller/hpx/hpx/runtime/actions/transfer_action.hpp:207:20
#13 0x89d6aa in hpx::actions::transfer_action<test_server::call_action>::get_thread_init_data(std::__1::unique_ptr<hpx::actions::continuation, std::__1::default_delete<hpx::actions::continuation> >, hpx::naming::id_type const&, unsigned long, hpx::threads::thread_init_data&) /home/heller/hpx/hpx/runtime/actions/transfer_action.hpp:297:25
#14 0x899b57 in hpx::actions::transfer_action<test_server::call_action>::schedule_thread(std::__1::unique_ptr<hpx::actions::continuation, std::__1::default_delete<hpx::actions::continuation> >, hpx::naming::id_type const&, unsigned long, hpx::threads::thread_state_enum, unsigned long) /home/heller/hpx/hpx/runtime/actions/transfer_action.hpp:355:17
#15 0x7fcf114ef6d8 in hpx::applier::applier::schedule_action(hpx::parcelset::parcel, unsigned long) /home/heller/hpx/src/runtime/applier/applier.cpp:544:17
#16 0x7fcf11de1c1e in hpx::parcelset::parcelport::add_received_parcel(hpx::parcelset::parcel, unsigned long) /home/heller/hpx/src/runtime/parcelset/parcelport.cpp:84:13
#17 0x7fcf125e9ddf in void hpx::parcelset::decode_message<hpx::parcelset::policies::mpi::parcelport, hpx::parcelset::parcel_buffer<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > > >(hpx::parcelset::policies::mpi::parcelport&, hpx::parcelset::parcel_buffer<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > >, unsigned long, unsigned long) /home/heller/hpx/hpx/runtime/parcelset/decode_parcels.hpp:129:25
#18 0x7fcf125e829f in void hpx::parcelset::decode_parcels<hpx::parcelset::policies::mpi::parcelport, hpx::parcelset::parcel_buffer<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > > >(hpx::parcelset::policies::mpi::parcelport&, hpx::parcelset::parcel_buffer<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > >, unsigned long) /home/heller/hpx/hpx/runtime/parcelset/decode_parcels.hpp:211:13
#19 0x7fcf125df885 in hpx::parcelset::policies::mpi::receiver_connection<hpx::parcelset::policies::mpi::parcelport>::send_release_tag(unsigned long) /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver_connection.hpp:203:13
#20 0x7fcf125df433 in hpx::parcelset::policies::mpi::receiver_connection<hpx::parcelset::policies::mpi::parcelport>::receive_chunks(unsigned long) /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver_connection.hpp:179:20
#21 0x7fcf125dece4 in hpx::parcelset::policies::mpi::receiver_connection<hpx::parcelset::policies::mpi::parcelport>::receive_data(unsigned long) /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver_connection.hpp:148:20
#22 0x7fcf125de6b3 in hpx::parcelset::policies::mpi::receiver_connection<hpx::parcelset::policies::mpi::parcelport>::receive_transmission_chunks(unsigned long) /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver_connection.hpp:119:20
#23 0x7fcf125ca20b in hpx::parcelset::policies::mpi::receiver_connection<hpx::parcelset::policies::mpi::parcelport>::receive(unsigned long) /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver_connection.hpp:69:28
#24 0x7fcf1259873f in hpx::parcelset::policies::mpi::receiver<hpx::parcelset::policies::mpi::parcelport>::background_work() /home/heller/hpx/hpx/plugins/parcelport/mpi/receiver.hpp:63:28
#25 0x7fcf12691a69 in hpx::parcelset::policies::mpi::parcelport::background_work(unsigned long) /home/heller/hpx/plugins/parcelport/mpi/parcelport_mpi.cpp:185:28
#26 0x7fcf1268de64 in boost::enable_if<hpx::parcelset::connection_handler_traits<hpx::parcelset::policies::mpi::parcelport>::do_background_work, bool>::type hpx::parcelset::parcelport_impl<hpx::parcelset::policies::mpi::parcelport>::do_background_work_impl<hpx::parcelset::policies::mpi::parcelport>(unsigned long) /home/heller/hpx/hpx/runtime/parcelset/parcelport_impl.hpp:491:20
#27 0x7fcf1258a16f in hpx::parcelset::parcelport_impl<hpx::parcelset::policies::mpi::parcelport>::do_background_work(unsigned long) /home/heller/hpx/hpx/runtime/parcelset/parcelport_impl.hpp:327:20
#28 0x7fcf11df7488 in hpx::parcelset::parcelhandler::do_background_work(unsigned long, bool) /home/heller/hpx/src/runtime/parcelset/parcelhandler.cpp:253:33
#29 0x7fcf10d313fc in hpx::parcelset::do_background_work(unsigned long) /home/heller/hpx/src/runtime.cpp:1225:16
#30 0x7fcf1162df7c in hpx::threads::policies::scheduler_base::background_callback(unsigned long) /home/heller/hpx/hpx/runtime/threads/policies/scheduler_base.hpp:129:17
#31 0x7fcf116b1e38 in _ZN3hpx4util6detail11invoke_implIMNS_7threads8policies14scheduler_baseEFbmEEclIS7_RNS4_30local_priority_queue_schedulerIN5boost5mutexENS4_13lockfree_fifoESD_NS4_13lockfree_lifoEEEJRmEEENSt3__19enable_ifIXsr3std10is_base_ofIS5_NSI_5decayIT0_E4typeEEE5valueENS0_9result_ofIFOT_OSL_DpOT1_EE4typeEE4typeESP_SR_SU_ /home/heller/hpx/hpx/util/invoke.hpp:82:24
#32 0x7fcf116b1b2e in _ZN3hpx4util6detail11invoke_implIMNS_7threads8policies14scheduler_baseEFbmEEclIS7_RPNS4_30local_priority_queue_schedulerIN5boost5mutexENS4_13lockfree_fifoESD_NS4_13lockfree_lifoEEEJRmEEENSt3__19enable_ifIXntsr3std10is_base_ofIS5_NSJ_5decayIT0_E4typeEEE5valueENS0_9result_ofIFOT_OSM_DpOT1_EE4typeEE4typeESQ_SS_SV_ /home/heller/hpx/hpx/util/invoke.hpp:93:24
#33 0x7fcf116b17de in hpx::util::result_of<bool (hpx::threads::policies::scheduler_base::*&(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&, unsigned long&))(unsigned long)>::type hpx::util::invoke<bool (hpx::threads::policies::scheduler_base::*&)(unsigned long), hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&, unsigned long&>(bool (hpx::threads::policies::scheduler_base::*&)(unsigned long), hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&, unsigned long&) /home/heller/hpx/hpx/util/invoke.hpp:120:16
#34 0x7fcf116b1598 in hpx::util::detail::bound_result_of<bool (hpx::threads::policies::scheduler_base::*)(unsigned long), hpx::util::tuple<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*, unsigned long>, hpx::util::tuple<> >::type hpx::util::detail::bound_impl<bool (hpx::threads::policies::scheduler_base::*)(unsigned long), hpx::util::tuple<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*, unsigned long>, hpx::util::tuple<>, 0ul, 1ul>(bool (hpx::threads::policies::scheduler_base::*&)(unsigned long), hpx::util::tuple<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*, unsigned long>&, hpx::util::tuple<>&&, hpx::util::detail::pack_c<unsigned long, 0ul, 1ul>) /home/heller/hpx/hpx/util/bind.hpp:230:20
#35 0x7fcf116b144f in hpx::util::detail::bound_result_of<bool (hpx::threads::policies::scheduler_base::*)(unsigned long), hpx::util::tuple<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*, unsigned long>, hpx::util::tuple<> >::type hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>::operator()<>() /home/heller/hpx/hpx/util/bind.hpp:275:24
#36 0x7fcf116b1330 in hpx::util::result_of<hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>& ()>::type hpx::util::detail::invoke_impl<hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)> >::operator()<hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&>(hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&) /home/heller/hpx/hpx/util/invoke.hpp:30:24
#37 0x7fcf116b12b3 in bool hpx::util::detail::invoke_guard<bool>::operator()<hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&>(hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&) /home/heller/hpx/hpx/util/invoke.hpp:133:24
#38 0x7fcf116b1177 in bool hpx::util::invoke<bool, hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&>(hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)>&) /home/heller/hpx/hpx/util/invoke.hpp:153:16
#39 0x7fcf116b0f24 in bool hpx::util::detail::callable_vtable<bool ()>::invoke<hpx::util::detail::bound<bool (hpx::threads::policies::scheduler_base::*(hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>*&&, unsigned long&))(unsigned long)> >(void**) /home/heller/hpx/hpx/util/detail/vtable/callable_vtable.hpp:29:20
#40 0x7fcf115c5af6 in hpx::util::detail::function_base<hpx::util::detail::function_vtable_ptr<bool ()>, bool ()>::operator()() const /home/heller/hpx/hpx/util/detail/basic_function.hpp:254:20
#41 0x7fcf115c5af6 in void hpx::threads::detail::scheduling_loop<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >(unsigned long, hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>&, hpx::threads::detail::scheduling_counters&, hpx::threads::detail::scheduling_callbacks&) /home/heller/hpx/hpx/runtime/threads/detail/scheduling_loop.hpp:432
#42 0x7fcf11652690 in hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::thread_func(unsigned long, hpx::threads::topology const&, boost::barrier&) /home/heller/hpx/src/runtime/threads/detail/thread_pool.cpp:609:21
#43 0x7fcf116aec23 in _ZN3hpx4util6detail11invoke_implIMNS_7threads6detail11thread_poolINS3_8policies30local_priority_queue_schedulerIN5boost5mutexENS6_13lockfree_fifoESA_NS6_13lockfree_lifoEEEEEFvmRKNS3_8topologyERNS8_7barrierEEEclISK_RSD_JRmSG_SI_EEENSt3__19enable_ifIXsr3std10is_base_ofISD_NSP_5decayIT0_E4typeEEE5valueENS0_9result_ofIFOT_OSS_DpOT1_EE4typeEE4typeESW_SY_S11_ /home/heller/hpx/hpx/util/invoke.hpp:82:24
#44 0x7fcf116ae8a7 in _ZN3hpx4util6detail11invoke_implIMNS_7threads6detail11thread_poolINS3_8policies30local_priority_queue_schedulerIN5boost5mutexENS6_13lockfree_fifoESA_NS6_13lockfree_lifoEEEEEFvmRKNS3_8topologyERNS8_7barrierEEEclISK_RPSD_JRmSG_SI_EEENSt3__19enable_ifIXntsr3std10is_base_ofISD_NSQ_5decayIT0_E4typeEEE5valueENS0_9result_ofIFOT_OST_DpOT1_EE4typeEE4typeESX_SZ_S12_ /home/heller/hpx/hpx/util/invoke.hpp:93:24
#45 0x7fcf116ae4dc in hpx::util::result_of<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*&(hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&, unsigned long&, hpx::threads::topology const&, boost::barrier&))(unsigned long, hpx::threads::topology const&, boost::barrier&)>::type hpx::util::invoke<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*&)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&, unsigned long&, hpx::threads::topology const&, boost::barrier&>(void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*&)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&, unsigned long&, hpx::threads::topology const&, boost::barrier&) /home/heller/hpx/hpx/util/invoke.hpp:120:16
#46 0x7fcf116ae21a in hpx::util::detail::bound_result_of<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::util::tuple<hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*, unsigned long, boost::reference_wrapper<hpx::threads::topology const>, boost::reference_wrapper<boost::barrier> >, hpx::util::tuple<> >::type hpx::util::detail::bound_impl<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::util::tuple<hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*, unsigned long, boost::reference_wrapper<hpx::threads::topology const>, boost::reference_wrapper<boost::barrier> >, hpx::util::tuple<>, 0ul, 1ul, 2ul, 3ul>(void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*&)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::util::tuple<hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*, unsigned long, boost::reference_wrapper<hpx::threads::topology const>, boost::reference_wrapper<boost::barrier> >&, hpx::util::tuple<>&&, hpx::util::detail::pack_c<unsigned long, 0ul, 1ul, 2ul, 3ul>) /home/heller/hpx/hpx/util/bind.hpp:230:20
#47 0x7fcf116adf4f in hpx::util::detail::bound_result_of<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*)(unsigned long, hpx::threads::topology const&, boost::barrier&), hpx::util::tuple<hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*, unsigned long, boost::reference_wrapper<hpx::threads::topology const>, boost::reference_wrapper<boost::barrier> >, hpx::util::tuple<> >::type hpx::util::detail::bound<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*(hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&&, unsigned long&, boost::reference_wrapper<hpx::threads::topology const> const&&, boost::reference_wrapper<boost::barrier> const&&))(unsigned long, hpx::threads::topology const&, boost::barrier&)>::operator()<>() /home/heller/hpx/hpx/util/bind.hpp:275:24
#48 0x7fcf116ade2b in boost::detail::thread_data<hpx::util::detail::bound<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*(hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&&, unsigned long&, boost::reference_wrapper<hpx::threads::topology const> const&&, boost::reference_wrapper<boost::barrier> const&&))(unsigned long, hpx::threads::topology const&, boost::barrier&)> >::run() /home/heller/boost_1_58_0/boost/thread/detail/thread.hpp:116:17
#49 0x7fcf151ca1fe in boost::(anonymous namespace)::thread_proxy(void*) (/home/heller/boost_1_58_0/stage/lib/libboost_thread.so.1.58.0+0x141fe)
#50 0x7fcf14fa1239 (/lib64/libpthread.so.0+0x8239)
#51 0x7fcf0d6c95fc in clone (/lib64/libc.so.6+0xea5fc)
0x6060000b6df0 is located 16 bytes inside of 56-byte region [0x6060000b6de0,0x6060000b6e18)
freed by thread T9 here:
#0 0x7876e0 in operator delete(void*) /home/heller/source/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:94
previously allocated by thread T9 here:
#0 0x787060 in operator new(unsigned long) /home/heller/source/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
Thread T9 created by T0 here:
#0 0x6be298 in __interceptor_pthread_create /home/heller/source/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:239
#1 0x7fcf151c9e6e in boost::thread::start_thread_noexcept() (/home/heller/boost_1_58_0/stage/lib/libboost_thread.so.1.58.0+0x13e6e)
#2 0x7fcf11653f3a in boost::thread::thread<hpx::util::detail::bound<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*(hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&&, unsigned long&, boost::reference_wrapper<hpx::threads::topology const> const&&, boost::reference_wrapper<boost::barrier> const&&))(unsigned long, hpx::threads::topology const&, boost::barrier&)> >(hpx::util::detail::bound<void (hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::*(hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >*&&, unsigned long&, boost::reference_wrapper<hpx::threads::topology const> const&&, boost::reference_wrapper<boost::barrier> const&&))(unsigned long, hpx::threads::topology const&, boost::barrier&)>&&) /home/heller/boost_1_58_0/boost/thread/detail/thread.hpp:266:13
#3 0x7fcf1164f9cf in hpx::threads::detail::thread_pool<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::run(boost::unique_lock<boost::mutex>&, unsigned long) /home/heller/hpx/src/runtime/threads/detail/thread_pool.cpp:383:40
#4 0x7fcf118144b5 in hpx::threads::threadmanager_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::run(unsigned long) /home/heller/hpx/src/runtime/threads/threadmanager.cpp:1058:14
#5 0x7fcf10b7ed65 in hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::start(hpx::util::function<int (), false> const&, bool) /home/heller/hpx/src/runtime_impl.cpp:305:9
#6 0x7fcf10b801f5 in hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::start(bool) /home/heller/hpx/src/runtime_impl.cpp:343:16
#7 0x7fcf10b83b8f in hpx::runtime_impl<hpx::threads::policies::local_priority_queue_scheduler<boost::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo> >::run() /home/heller/hpx/src/runtime_impl.cpp:554:9
#8 0x7fcf1082eeea in hpx::detail::run(hpx::runtime&, hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::variables_map&, hpx::runtime_mode, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&) /home/heller/hpx/src/hpx_init.cpp:676:20
#9 0x7fcf1082f53a in hpx::detail::run_or_start(bool, std::__1::unique_ptr<hpx::runtime, std::__1::default_delete<hpx::runtime> >, hpx::util::command_line_handling&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&) /home/heller/hpx/src/hpx_init.cpp:703:24
#10 0x7fcf10833bc1 in hpx::detail::run_priority_local(hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::util::command_line_handling&, bool) /home/heller/hpx/src/hpx_init.cpp:917:20
#11 0x7fcf1083a252 in hpx::detail::run_or_start(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::runtime_mode, bool) /home/heller/hpx/src/hpx_init.cpp:1096:30
#12 0xbbbd78 in hpx::init(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::runtime_mode) /home/heller/hpx/hpx/hpx_init_impl.hpp:48:16
#13 0xbbba93 in hpx::init(boost::program_options::options_description const&, int, char**, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, hpx::util::function<void (), false> const&, hpx::util::function<void (), false> const&, hpx::runtime_mode) /home/heller/hpx/hpx/hpx_init_impl.hpp:100:16
#14 0xbbb755 in hpx::init(int, char**, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, hpx::runtime_mode) /home/heller/hpx/hpx/hpx_init_impl.hpp:122:16
#15 0xbbae80 in main /home/heller/hpx/hpx/hpx_main_impl.hpp:34:12
#16 0x7fcf0d600a54 in __libc_start_main (/lib64/libc.so.6+0x21a54)
SUMMARY: AddressSanitizer: heap-use-after-free /home/heller/hpx/hpx/lcos/local/spinlock.hpp:185:33 in hpx::lcos::local::spinlock::acquire_lock()
Shadow bytes around the buggy address:
0x0c0c8000ed60: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c8000ed70: fa fa fa fa fd fd fd fd fd fd fd fa fa fa fa fa
0x0c0c8000ed80: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
0x0c0c8000ed90: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c8000eda0: fa fa fa fa fd fd fd fd fd fd fd fa fa fa fa fa
=>0x0c0c8000edb0: fd fd fd fd fd fd fd fa fa fa fa fa fd fd[fd]fd
0x0c0c8000edc0: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c0c8000edd0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
0x0c0c8000ede0: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd
0x0c0c8000edf0: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c8000ee00: fa fa fa fa fd fd fd fd fd fd fd fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==21011==ABORTING
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 21011 RUNNING AT luna
= EXIT CODE: 1
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment