Description: A Segmentation Fault occurs when defining a custom datatype using MPI_Type_create_struct and subsequently using it in communication calls.
Root Cause: The issue is caused by incorrect type casting in the record-replay mechanism:
record-replay.h:440
MPI_Datatype *oldtypes = (MPI_Datatype*)(intptr_t)rec->args(3);
record-replay.cpp:309
MPI_Datatype *types = (MPI_Datatype*)(intptr_t)rec.args(3);
I will address this in an upcoming Merge Request including a new regression test.