Samuel Thibault, on mer. 20 déc. 2017 13:57:45 +0100, wrote: > Brice Goglin, on mar. 19 déc. 2017 11:48:39 +0100, wrote: > > The Hardware Locality (hwloc) team is pleased to announce the first > > beta release for v2.0.0: > > > > http://www.open-mpi.org/projects/hwloc/ > > I tried to build the Debian package, there are a few failures in the > testsuite: > > FAIL: test-lstopo.sh > FAIL: hwloc_bind > FAIL: hwloc_get_last_cpu_location > FAIL: hwloc_get_area_memlocation > FAIL: hwloc_object_userdata > FAIL: hwloc_backends > FAIL: hwloc_pci_backend > FAIL: hwloc_is_thissystem > FAIL: hwloc_topology_diff > FAIL: hwloc_topology_abi > FAIL: hwloc_obj_infos > FAIL: glibc-sched > ../.././config/test-driver: line 107: 27886 Segmentation fault "$@" > > $log_file 2>&1 > FAIL: hwloc-hello > ../.././config/test-driver: line 107: 27905 Segmentation fault "$@" > > $log_file 2>&1 > FAIL: hwloc-hello-cpp > > This is running inside a Debian Buster system.
It seems to be fixed by the attached patch. Samuel
diff --git a/hwloc/topology.c b/hwloc/topology.c index d827d5f5..e0bf7beb 100644 --- a/hwloc/topology.c +++ b/hwloc/topology.c @@ -1,7 +1,7 @@ /* * Copyright © 2009 CNRS * Copyright © 2009-2017 Inria. All rights reserved. - * Copyright © 2009-2012 Université Bordeaux + * Copyright © 2009-2012, 2017 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ @@ -1596,6 +1596,7 @@ hwloc__insert_object_by_cpuset(struct hwloc_topology *topology, hwloc_obj_t root */ #endif + topology->modified = 1; if (hwloc_obj_type_is_memory(obj->type)) { if (!root) { root = hwloc__find_insert_memory_parent(topology, obj, report_error); @@ -3044,6 +3045,7 @@ next_cpubackend: memcpy(&node->attr->numanode, &topology->machine_memory, sizeof(topology->machine_memory)); memset(&topology->machine_memory, 0, sizeof(topology->machine_memory)); hwloc_insert_object_by_cpuset(topology, node); + hwloc_topology_reconnect(topology, 0); } else { /* if we're sure we found all NUMA nodes without their sizes (x86 backend?), * we could split topology->total_memory in all of them.
_______________________________________________ hwloc-devel mailing list hwloc-devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/hwloc-devel