-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Description
This is with current master.
Reproducer
import mpi4py
mpi4py.rc.initialize = False
from mpi4py import MPI
session = MPI.Session.Init()
session.Finalize()
MPI.Init()
session = MPI.Session.Init()
session.Finalize()
MPI.Finalize()
session = MPI.Session.Init()
session.Finalize() ## <-- This is the point of failureBehavior
$ mpiexec -n 1 python test.py
python: ../../ompi/ompi/communicator/comm_init.c:326: ompi_comm_finalize: Assertion `OPAL_OBJ_MAGIC_ID == ((opal_object_t *) (&ompi_mpi_comm_self))->obj_magic_id' failed.
[kw61149:988711] *** Process received signal ***
[kw61149:988711] Signal: Aborted (6)
[kw61149:988711] Signal code: (-6)
PS: I'm working on a more complete test here:
https://github.com/mpi4py/mpi4py/blob/testing/mpi4-init-fini/demo/init-fini/test_mpi40.py