[Bug 252643] devel/hpx : hpx application crashes since hwloc2 is used

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 13 17:09:18 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252643

            Bug ID: 252643
           Summary: devel/hpx : hpx application crashes since hwloc2 is
                    used
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri at freebsd.org
          Reporter: monwarez at mailoo.org
             Flags: maintainer-feedback?(yuri at freebsd.org)
          Assignee: yuri at freebsd.org

Since the change of hwloc dependency my project that use hpx crash at startup
with an abort.

I tested with the simple fibonacci example and get the same kind of error.

Here a backtrace

#0  thr_kill () at thr_kill.S:3
#1  0x0000000801d76084 in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x0000000801cec279 in abort () at /usr/src/lib/libc/stdlib/abort.c:67
#3  0x00000008003b5fa9 in report_failure (err=<optimized out>, 
    thrown_exception=0x802a4fb08) at /usr/src/contrib/libcxxrt/exception.cc:719
#4  0x000000080033bfcc in std::rethrow_exception (p=...)
    at
/usr/src/contrib/llvm-project/libcxx/src/support/runtime/exception_pointer_cxxabi.ipp:68
#5  0x0000000801317896 in void
hpx::detail::throw_exception<hpx::exception>(hpx::exception const&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, long) () from
/usr/local/lib/libhpx.so.1
#6  0x000000080137d045 in hpx::detail::throw_exception(hpx::error,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, long) () from /usr/local/lib/libhpx.so.1
#7  0x000000080137d46e in hpx::detail::throws_if(hpx::error_code&, hpx::error,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, long) () from /usr/local/lib/libhpx.so.1
#8  0x00000008018548d0 in hpx::threads::topology::get_pu_number(unsigned long,
unsigned long, hpx::error_code&) const () from /usr/local/lib/libhpx.so.1
#9  0x000000080182e78f in
hpx::threads::detail::decode_balanced_distribution(hpx::threads::topology&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&, unsigned
long, unsigned long, std::__1::vector<unsigned long,
std::__1::allocator<unsigned long> >&, hpx::error_code&) () from
/usr/local/lib/libhpx.so.1
#10 0x000000080182f834 in
hpx::threads::parse_affinity_options(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&, unsigned
long, unsigned long, unsigned long, std::__1::vector<unsigned long,
std::__1::allocator<unsigned long> >&, hpx::error_code&) () from
/usr/local/lib/libhpx.so.1
#11 0x000000080182aa5a in
hpx::threads::policies::detail::affinity_data::init(hpx::util::command_line_handling
const&) () from /usr/local/lib/libhpx.so.1
#12 0x000000080175f359 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::__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::resource::partitioner_mode, hpx::runtime_mode, bool) () from
/usr/local/lib/libhpx.so.1
#13 0x0000000801762b48 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::__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::resource::partitioner_mode, hpx::runtime_mode, bool) () from
/usr/local/lib/libhpx.so.1
--Type <RET> for more, q to quit, c to continue without paging--
on 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::unique_function<void (), false>,
hpx::util::unique_function<void (), false>, hpx::runtime_mode, bool)
    () from /usr/local/lib/libhpx.so.1
#15 0x00000000002237ff 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::unique_function<void (), false>, hpx::util::unique_function<void (),
false>, hpx::runtime_mode) ()
#16 0x0000000000223558 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::unique_function<void (),
false>, hpx::util::unique_function<void (), false>, hpx::runtime_mode) ()
#17 0x00000000002233d6 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) ()
#18 0x00000000002231ad in main ()

While here, the generated pkgconfig files have an error for pthread
-l-pthread while this should be -lpthread

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list