Skip to content

Instantly share code, notes, and snippets.

@msimberg
Created October 25, 2017 12:05
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 msimberg/7a670c12d499d20f07c95443d7c8324a to your computer and use it in GitHub Desktop.
Save msimberg/7a670c12d499d20f07c95443d7c8324a to your computer and use it in GitHub Desktop.
HPX asan stacktrace #2
==29147==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fe6a2c63ec8 at pc 0x00000042804e bp 0x7fe6a2c63e70 sp 0x7fe6a2c63e60
READ of size 8 at 0x7fe6a2c63ec8 thread T425
#0 0x42804d in unsigned long const& std::max<unsigned long>(unsigned long const&, unsigned long const&) (/home/simbergm/src/hpx-snippets/build/init_leak_check+0x42804d)
#1 0x7fe6ae49116e in std::vector<std::pair<bool, boost::re_detail_106500::re_syntax_base*>, std::allocator<std::pair<bool, boost::re_detail_106500::re_syntax_base*> > >::_M_check_len(unsigned long, char const*) const /usr/include/c++/5/bits/stl_vector.h:1427
#2 0x7fe6ae48edde in void std::vector<std::pair<bool, boost::re_detail_106500::re_syntax_base*>, std::allocator<std::pair<bool, boost::re_detail_106500::re_syntax_base*> > >::_M_emplace_back_aux<std::pair<bool, boost::re_detail_106500::re_syntax_base*> >(std::pair<bool, boost::r
e_detail_106500::re_syntax_base*>&&) /usr/include/c++/5/bits/vector.tcc:411
#3 0x7fe6ae48c8fc in void std::vector<std::pair<bool, boost::re_detail_106500::re_syntax_base*>, std::allocator<std::pair<bool, boost::re_detail_106500::re_syntax_base*> > >::emplace_back<std::pair<bool, boost::re_detail_106500::re_syntax_base*> >(std::pair<bool, boost::re_detai
l_106500::re_syntax_base*>&&) /usr/include/c++/5/bits/vector.tcc:101
#4 0x7fe6ae487743 in std::vector<std::pair<bool, boost::re_detail_106500::re_syntax_base*>, std::allocator<std::pair<bool, boost::re_detail_106500::re_syntax_base*> > >::push_back(std::pair<bool, boost::re_detail_106500::re_syntax_base*>&&) /usr/include/c++/5/bits/stl_vector.h:9
32
#5 0x7fe6ae4a7c97 in boost::re_detail_106500::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::create_startmaps(boost::re_detail_106500::re_syntax_base*) boost/regex/v4/basic_regex_creator.hpp:915 [326/4623]
#6 0x7fe6ae49daef in boost::re_detail_106500::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::finalize(char const*, char const*) boost/regex/v4/basic_regex_creator.hpp:695
#7 0x7fe6ae49a2ff in boost::re_detail_106500::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::parse(char const*, char const*, unsigned int) boost/regex/v4/basic_regex_parser.hpp:193
#8 0x7fe6ae4981af in boost::re_detail_106500::basic_regex_implementation<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int) boost/regex/v4/basic_regex.hpp:216
#9 0x7fe6ae4964ad in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int) boost/regex/v4/basic_regex.hpp:660
#10 0x7fe6b0dc2437 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int) /home/simbergm/packages/boost/1.65.0/include/boost-1_65/boost/regex/v4/basic_regex.hpp:381
#11 0x7fe6b20eb5b3 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, unsigned int) /home/simbergm/packages/boost/1.65.0/include/boost-1_65/boost/regex/v4/basic_regex.hpp:366
#12 0x7fe6b20ea11b in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::basic_regex(char const*, unsigned int) /home/simbergm/packages/boost/1.65.0/include/boost-1_65/boost/regex/v4/basic_regex.hpp:335
#13 0x7fe6b20e13da in hpx::util::section::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, st
d::char_traits<char>, std::allocator<char> > > > const&, bool, bool) /home/simbergm/src/hpx/src/util/ini.cpp:208
#14 0x7fe6b211017c in hpx::util::load_component_factory_static(hpx::util::section&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::any, std::less<st
d::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::any> > >* (*)(), hpx::error_code&) /home/simbergm/src/hpx/src/util/init_ini_data.cp
p:268
#15 0x7fe6b201e9f3 in hpx::util::runtime_configuration::load_components_static(std::vector<hpx::components::static_factory_load_data_type, std::allocator<hpx::components::static_factory_load_data_type> > const&) /home/simbergm/src/hpx/src/util/runtime_configuration.cpp:366
#16 0x7fe6b12890b4 in hpx::components::server::runtime_support::load_components() /home/simbergm/src/hpx/src/runtime/components/server/runtime_support_server.cpp:1240
#17 0x7fe6b11d5e92 in int hpx::actions::basic_action_impl<int (hpx::components::server::runtime_support::*)(), int (hpx::components::server::runtime_support::*)(), &hpx::components::server::runtime_support::load_components, hpx::components::server::runtime_support::load_componen
ts_action>::invoke<>(unsigned long, int) /home/simbergm/src/hpx/hpx/runtime/actions/component_action.hpp:65
#18 0x7fe6b11b5f17 in int hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker::invoke<>(std::integral_constant<bool, false>, unsigned long, int) const /home/simbergm/src/hpx/hpx/r
untime/actions/basic_action.hpp:220
#19 0x7fe6b11b5f17 in int hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker::operator()<>(unsigned long, int) const /home/simbergm/src/hpx/hpx/runtime/actions/basic_action.hpp:2
03
#20 0x7fe6b11b5f17 in int hpx::util::detail::invoke_impl<int, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker>::operator()<hpx::actions::basic_action<hpx::components::server::
runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long, int>(hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker&&, unsigne
d long&&, int&&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:36
#21 0x7fe6b11b5f17 in int hpx::util::invoke_r<int, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long, int>(hpx::actions::basic_action<hpx::components::server::run
time_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker&&, unsigned long&&, int&&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:166
#22 0x7fe6b11b5f17 in int hpx::util::detail::invoke_fused_impl<int, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, hpx::util::tuple<unsigned long, int>, 0ul, 1ul>(hpx::actio
ns::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker&&, hpx::util::tuple<unsigned long, int>&&, hpx::util::detail::pack_c<unsigned long, 0ul, 1ul>) /home/simbergm/src/hpx/hpx/util/invoke_fused.h
pp:74
#23 0x7fe6b11915d2 in hpx::util::detail::invoke_fused_result<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, hpx::util::tuple<unsigned long, int> >::type hpx::util::invoke_fu
sed<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, hpx::util::tuple<unsigned long, int> >(hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::compo
nents::server::runtime_support::load_components_action>::invoker&&, hpx::util::tuple<unsigned long, int>&&) /home/simbergm/src/hpx/hpx/util/invoke_fused.hpp:104
#24 0x7fe6b11915d2 in hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>::operator()() /home/simbergm/src/hpx/hpx/util/deferre
d_call.hpp:103
#25 0x7fe6b11915d2 in int hpx::util::detail::invoke_impl<int, hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)> >::operator()
<hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&>(hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::serv
er::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:36
#26 0x7fe6b11915d2 in hpx::util::invoke_result<hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&>::type hpx::util::invoke<hp
x::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&>(hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server:
:runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:154
#27 0x7fe6b11915d2 in void hpx::actions::detail::trigger_impl<int, int, hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&>(s
td::integral_constant<bool, false>, hpx::actions::typed_continuation<int, int>&&, hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&
)>&) /home/simbergm/src/hpx/hpx/runtime/actions/trigger.hpp:36
#28 0x7fe6b118a4e3 in void hpx::actions::trigger<int, int, hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&>(hpx::actions::
typed_continuation<int, int>&&, hpx::util::detail::deferred<hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker (unsigned long&, int&)>&) /home/simbergm/src/hpx/hpx/runtime/actions/tr
igger.hpp:68
#29 0x7fe6b115c51c in hpx::actions::detail::continuation_thread_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_actio
n>::invoker, unsigned long&, int&>::operator()(hpx::threads::thread_state_ex_enum) /home/simbergm/src/hpx/hpx/runtime/actions/basic_action.hpp:106
#30 0x7fe6b115c51c in std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> > hpx::util::detail::invoke_impl<std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> >, hpx::actions::detail::continuation_thre
ad_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long&, int&> >::operator()<hpx::actions::de
tail::continuation_thread_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long&, int&>&, hpx::
threads::thread_state_ex_enum>(hpx::actions::detail::continuation_thread_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_
action>::invoker, unsigned long&, int&>&, hpx::threads::thread_state_ex_enum&&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:36
#31 0x7fe6b115c51c in std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> > hpx::util::invoke_r<std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> >, hpx::actions::detail::continuation_thread_function
<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long&, int&>&, hpx::threads::thread_state_ex_enum>(hpx
::actions::detail::continuation_thread_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, unsigned long&,
int&>&, hpx::threads::thread_state_ex_enum&&) /home/simbergm/src/hpx/hpx/util/invoke.hpp:166
#32 0x7fe6b115c51c in std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> > hpx::util::detail::callable_vtable<std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> > (hpx::threads::thread_state_ex_enum)
>::_invoke<hpx::actions::detail::continuation_thread_function<hpx::components::server::runtime_support::load_components_action, hpx::actions::basic_action<hpx::components::server::runtime_support, int (), hpx::components::server::runtime_support::load_components_action>::invoker, un
signed long&, int&> >(void**, hpx::threads::thread_state_ex_enum&&) /home/simbergm/src/hpx/hpx/util/detail/vtable/callable_vtable.hpp:75
#33 0x7fe6b167b355 in hpx::util::detail::function_base<hpx::util::detail::unique_function_vtable<std::pair<hpx::threads::thread_state_enum, boost::intrusive_ptr<hpx::threads::thread_data> > (hpx::threads::thread_state_ex_enum)>, std::pair<hpx::threads::thread_state_enum, boost::
intrusive_ptr<hpx::threads::thread_data> > (hpx::threads::thread_state_ex_enum)>::operator()(hpx::threads::thread_state_ex_enum) const /home/simbergm/src/hpx/hpx/util/detail/basic_function.hpp:196
#34 0x7fe6b167b355 in hpx::threads::coroutines::detail::coroutine_impl::operator()() /home/simbergm/src/hpx/src/runtime/threads/coroutines/detail/coroutine_impl.cpp:96
#35 0x7fe6b148ac3e in void hpx::threads::coroutines::detail::lx::trampoline<hpx::threads::coroutines::detail::coroutine_impl>(hpx::threads::coroutines::detail::coroutine_impl*) /home/simbergm/src/hpx/hpx/runtime/threads/coroutines/detail/context_linux_x86.hpp:102
AddressSanitizer can not describe address in more detail (wild memory access suspected).
SUMMARY: AddressSanitizer: stack-buffer-overflow ??:0 unsigned long const& std::max<unsigned long>(unsigned long const&, unsigned long const&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment