Skip to content

Instantly share code, notes, and snippets.

@zao

zao/proj.log Secret

Last active November 20, 2017 05:26
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/ff50acdb14798448ed41822bd7b32603 to your computer and use it in GitHub Desktop.
Save zao/ff50acdb14798448ed41822bd7b32603 to your computer and use it in GitHub Desktop.
terminate called after throwing an instance of 'std::invalid_argument'
what(): hpx::resource::get_partitioner() can be called only after the resource partitioner has been allowed to parse the command line options.
Aborted (core dumped)
(gdb) bt full
#0 0x00007ffff6503322 in hpx::util::function<int (boost::program_options::variables_map&), false>::operator=(hpx::util::function<int (boost::program_options::variables_map&), false> const&) (this=0xede208, other=...) at /tree/hpx/hpx/util/function.hpp:97
No locals.
#1 0x00007ffff64ffd58 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=0xede000, f=..., desc_cmdline=..., argc=1,
argv=0x7fffffffe478, ini_config=std::vector of length 0, capacity 0, rpmode=hpx::resource::mode_default, mode=hpx::runtime_mode_default, fill_internal_topology=true) at /tree/hpx/src/runtime/resource/detail/detail_partitioner.cpp:890
No locals.
#2 0x00007ffff650b00e 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=0x7fffffffe478,
ini_config=std::vector of length 0, capacity 0, rpmode=hpx::resource::mode_default, mode=hpx::runtime_mode_default, check=false) at /tree/hpx/src/runtime/resource/partitioner.cpp:220
rp = std::unique_ptr<hpx::resource::detail::partitioner> containing 0xede000
#3 0x00007ffff5b8289c 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=0x7fffffffe478, ini_config=<unknown type in /tree/build-debug/lib/libhpxd.so.1, CU 0x467a4, DIE 0xe69c4>, startup=..., shutdown=..., mode=hpx::runtime_mode_default, blocking=true) at /tree/hpx/src/hpx_init.cpp:618
rp = @0x7fffffffe478: {static instance_number_counter_ = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = 0}, <No data fields>}, cfg_ = {vm_ = <incomplete type>, rtcfg_ = {<hpx::util::section> = {root_ = 0x7fffffffee97,
entries_ = std::map with 140737488351012 elements<error reading variable: Cannot access memory at address 0x4e49425f4d564e10>, sections_ = std::map with 0 elements, name_ = <incomplete type>, parent_name_ = <incomplete type>, mtx_ = {v_ = 3}},
hpx_ini_file = <incomplete type>, cmdline_ini_defs = std::vector of length 0, capacity 4398042246271 = {<error reading variable>, ini_config_ = std::vector of length 0, capacity 4398046510902 = {<error reading variable>,
first_core_ = 7815266452284583471, cores_needed_ = 3414905516632666721, mtx_ = {v_ = 6868917421489678700}, initial_thread_pools_ = std::vector of length -37154507346032675, capacity -29728381452300840 = {<error reading variable>
cms = @0x7ffff07ef7b0: {vm_ = <incomplete type>, rtcfg_ = {<hpx::util::section> = {root_ = 0x79, entries_ = std::map with 690 elements<error reading variable: Cannot access memory at address 0xd001200000686>,
sections_ = std::map with 1633 elements<error reading variable: Cannot access memory at address 0xd002200002086>, name_ = <incomplete type>, parent_name_ = <incomplete type>, mtx_ = {v_ = 64}}, hpx_ini_file = <incomplete type>,
cmdline_ini_defs = std::vector of length -33867, capacity 114351625174175 = {<error reading variable>, ini_config_ = std::vector of length 114351625208417, capacity 31371 = {<error reading variable>
apex = {<No data fields>}
rt = std::unique_ptr<hpx::runtime> containing 0xffffdf90
result = 0
e = <error reading variable>
#4 0x00000000004232d2 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=<optimized out>, cfg=..., startup=..., shutdown=..., mode=<optimized out>) at /tree/hpx/hpx/hpx_init_impl.hpp:74
No locals.
#5 0x0000000000422f78 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=<optimized out>, desc_cmdline=..., argc=-7784, argv=0x6f62354e52694650, startup=..., shutdown=..., mode=<optimized out>) at /tree/hpx/hpx/hpx_init_impl.hpp:92
No locals.
#6 0x0000000000422c17 in hpx::init (f=0x4351b0 <hpx_main(boost::program_options::variables_map&)>, app_name=..., argc=1, argv=0x7fffffffe478, mode=hpx::runtime_mode_default) at /tree/hpx/hpx/hpx_init_impl.hpp:253
desc_commandline = <optimized out>
#7 0x0000000000422341 in hpx::init (argc=<optimized out>, argv=0xede210, mode=hpx::runtime_mode_default) at /tree/hpx/hpx/hpx_init_impl.hpp:209
No locals.
#8 main (argc=-7784, argv=0x6f62354e52694650) at /home/woodsoak/hpx-proj/proj.cc:15
ret = <optimized out>
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment