Skip to content

Instantly share code, notes, and snippets.

@zao
Created September 18, 2017 13:37
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 zao/391e7a76a26ca6deac92fefa3bf21a11 to your computer and use it in GitHub Desktop.
Save zao/391e7a76a26ca6deac92fefa3bf21a11 to your computer and use it in GitHub Desktop.
bin/reduce_test after pu==cores workaround
(gdb) r
Starting program: /home/zao/stellar/build-debug-hpx/bin/reduce_test
terminate called after throwing an instance of 'hpx::detail::exception_with_info<hpx::exception>'
what(): Failed to get number of cores: HPX(no_success)
Program received signal SIGABRT, Aborted.
0x0000000802c1f3f8 in kill () from /lib/libc.so.8
(gdb) bt
#0 0x0000000802c1f3f8 in kill () from /lib/libc.so.8
#1 0x000000080072c256 in raise () from /usr/lib/libpthread.so.0
#2 0x0000000802cb3364 in abort () from /lib/libc.so.8
#3 0x0000000802ad2979 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/gcc50/libstdc++.so.9
#4 0x0000000802ad0a17 in ?? () from /usr/lib/gcc50/libstdc++.so.9
#5 0x0000000802ad0a74 in std::terminate() () from /usr/lib/gcc50/libstdc++.so.9
#6 0x0000000802ad0a0f in std::rethrow_exception(std::__exception_ptr::exception_ptr) () from /usr/lib/gcc50/libstdc++.so.9
#7 0x0000000800f61233 in hpx::detail::throw_exception<hpx::exception> (e=..., func=..., file=..., line=235) at /home/zao/stellar/hpx/src/exception.cpp:379
#8 0x000000080103211a in hpx::detail::throw_exception (errcode=hpx::no_success, msg=..., func=..., file=..., line=235) at /home/zao/stellar/hpx/src/throw_exception.cpp:26
#9 0x0000000801032422 in hpx::detail::throws_if (ec=..., errcode=hpx::no_success, msg=..., func=..., file=..., line=235) at /home/zao/stellar/hpx/src/throw_exception.cpp:63
#10 0x00000008018fde1c in hpx::threads::hwloc_topology_info::get_pu_number (
this=0x802914360 <hpx::util::static_<hpx::threads::hwloc_topology_info, hpx::threads::hwloc_topology_info::hwloc_topology_tag>::get_reference()::t>, num_core=0, num_pu=0, ec=...)
at /home/zao/stellar/hpx/src/runtime/threads/policies/hwloc_topology_info.cpp:235
#11 0x0000000801906147 in hpx::threads::detail::decode_balanced_distribution (t=..., affinities=..., used_cores=0, max_cores=4, num_pus=..., ec=...)
at /home/zao/stellar/hpx/src/runtime/threads/policies/parse_affinity_options.cpp:836
#12 0x0000000801906341 in hpx::threads::detail::decode_distribution (d=hpx::threads::detail::balanced, t=..., affinities=..., used_cores=0, max_cores=4, num_threads=4, num_pus=..., ec=...)
at /home/zao/stellar/hpx/src/runtime/threads/policies/parse_affinity_options.cpp:864
#13 0x0000000801906454 in hpx::threads::parse_affinity_options (spec=..., affinities=..., used_cores=0, max_cores=4, num_threads=4, num_pus=..., ec=...)
at /home/zao/stellar/hpx/src/runtime/threads/policies/parse_affinity_options.cpp:895
#14 0x00000008018fa2b0 in hpx::threads::policies::detail::affinity_data::init (
this=0x802919af0 <hpx::util::static_<hpx::resource::detail::partitioner, hpx::resource::partitioner_tag>::get_reference()::t+752>, cfg_=...)
at /home/zao/stellar/hpx/src/runtime/threads/policies/affinity_data.cpp:154
#15 0x00000008018146cd in hpx::resource::detail::partitioner::parse(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description, int, char**, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, hpx::resource::partitioner_mode, hpx::runtime_mode, bool) (
this=0x802919800 <hpx::util::static_<hpx::resource::detail::partitioner, hpx::resource::partitioner_tag>::get_reference()::t>, f=..., desc_cmdline=..., argc=1, argv=0x7fffffffe918,
ini_config=..., rpmode=hpx::resource::mode_default, mode=hpx::runtime_mode_default, fill_internal_topology=true)
at /home/zao/stellar/hpx/src/runtime/resource/detail/detail_partitioner.cpp:881
#16 0x000000080181e33d in hpx::resource::detail::create_partitioner(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, hpx::resource::partitioner_mode, hpx::runtime_mode, bool) (f=..., desc_cmdline=..., argc=1, argv=0x7fffffffe918, ini_config=..., rpmode=hpx::resource::mode_default,
mode=hpx::runtime_mode_default, check=false) at /home/zao/stellar/hpx/src/runtime/resource/partitioner.cpp:184
#17 0x0000000800f8b60c 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::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&&, hpx::util::unique_function<void (), false>, hpx::util::unique_function<void (), false>, hpx::runtime_mode, bool) (f=..., desc_cmdline=..., argc=1, argv=0x7fffffffe918,
ini_config=<unknown type in /home/zao/stellar/build-debug-hpx/lib/libhpxd.so.1, CU 0x8452f, DIE 0x1a60d6>, startup=..., shutdown=..., mode=hpx::runtime_mode_default, blocking=true)
at /home/zao/stellar/hpx/src/hpx_init.cpp:620
#18 0x00000000004367c4 in hpx::init(hpx::util::function<int (boost::program_options::variables_map&), false> const&, boost::program_options::options_description const&, int, char**, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, hpx::util::unique_function<void (), false>, hpx::util::unique_function<void (), false>, hpx::runtime_mode) (f=..., desc_cmdline=..., argc=1, argv=0x7fffffffe918, cfg=..., startup=...,
shutdown=..., mode=hpx::runtime_mode_default) at /home/zao/stellar/hpx/hpx/hpx_init_impl.hpp:76
#19 0x0000000000436937 in hpx::init(int (*)(boost::program_options::variables_map&), boost::program_options::options_description const&, int, char**, hpx::util::unique_function<void (), false>, hpx::util::unique_function<void (), false>, hpx::runtime_mode) (f=0x53e677 <hpx_main(boost::program_options::variables_map&)>, desc_cmdline=..., argc=1, argv=0x7fffffffe918, startup=...,
shutdown=..., mode=hpx::runtime_mode_default) at /home/zao/stellar/hpx/hpx/hpx_init_impl.hpp:93
#20 0x0000000000436cb4 in hpx::init (f=0x53e677 <hpx_main(boost::program_options::variables_map&)>, app_name=..., argc=1, argv=0x7fffffffe918, mode=hpx::runtime_mode_default)
at /home/zao/stellar/hpx/hpx/hpx_init_impl.hpp:254
#21 0x0000000000436b08 in hpx::init (argc=1, argv=0x7fffffffe918, mode=hpx::runtime_mode_default) at /home/zao/stellar/hpx/hpx/hpx_init_impl.hpp:210
#22 0x00000000004327b9 in main (argc=1, argv=0x7fffffffe918) at /home/zao/stellar/hpx/tests/unit/lcos/reduce.cpp:112
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment