tested on sifive unmatched (riscv64). Compilation went fine, but almost all tests segfault. seems it is not caused by oversubscribing. I append > import faulthandler > faulthandler.enable() in the first line and run mpiexec --oversubscribe --use-hwthread-cpus --mca btl tcp,self -n 1 python3.9 -B ./test/${test} -v for each test and obtained a full log in attachment mpi4py_test.out some excerpt of segment fault message: [unmatch8:908877] [[46553,0],0] ORTE_ERROR_LOG: Data unpack would read past end of buffer in file /var/tmp/portage/sys-cluster/openmpi-4.1.2/work/openmpi-4.1.2/orte/util/show_help.c at line 507 Fatal Python error: Segmentation fault Current thread 0x0000003fa8d18010 (most recent call first): File "/var/tmp/portage/dev-python/mpi4py-3.0.3/work/mpi4py-3.0.3-python3_9/test/test_attributes.py", line 224 in <module> -------------------------------------------------------------------------- Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted. -------------------------------------------------------------------------- -------------------------------------------------------------------------- mpiexec noticed that process rank 0 with PID 0 on node unmatch8 exited on signal 11 (Segmentation fault). Reproducible: Always
Created attachment 757613 [details] build log
Created attachment 757614 [details] mpi4py_test.out
Created attachment 757615 [details] emerge --info
I reproduced this in amd64. Not sure if it is something with my environment or config, it fails on either mpich-3.4.3 or openmpi-4.1.2.ebuild.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d31c5144882b60ac02fc40de411e665a238c253 commit 5d31c5144882b60ac02fc40de411e665a238c253 Author: Alex Fan <alex.fan.q@gmail.com> AuthorDate: 2022-01-05 09:29:09 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2022-01-08 12:41:00 +0000 dev-python/mpi4py: add 3.1.3 bump to EAPI 8, update upstream homepage, remove obsolete patches, and skip unstable openmpi spawn tests Closes: https://bugs.gentoo.org/828508 Signed-off-by: Alex Fan <alex.fan.q@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org> dev-python/mpi4py/Manifest | 1 + dev-python/mpi4py/metadata.xml | 3 +- dev-python/mpi4py/mpi4py-3.1.3.ebuild | 63 +++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 2 deletions(-)