[Mvapich-discuss] Segmentation fault if MPI_Finalize is called without freeing objects with attributes attached
Subramoni, Hari
subramoni.1 at osu.edu
Mon Jan 2 08:03:33 EST 2023
Dear, Simon.
Sorry to hear that you're facing this issue.
Could you please let us know if this is a single node run or a multi-node run? Could you also let us know how MVAPICH was configured (output of mpiname -a) and what compiler versions were used?
Best,
Hari.
-----Original Message-----
From: Mvapich-discuss <mvapich-discuss-bounces+subramon=cse.ohio-state.edu at lists.osu.edu> On Behalf Of Simon Byrne via Mvapich-discuss
Sent: Saturday, December 31, 2022 1:26 PM
To: mvapich-discuss at lists.osu.edu
Subject: [Mvapich-discuss] Segmentation fault if MPI_Finalize is called without freeing objects with attributes attached
!-------------------------------------------------------------------|
This Message Is From an External Sender
This message came from outside your organization.
|-------------------------------------------------------------------!
If an object (e.g. MPI_Datatype) with attributes attached is not freed before calling MPI_Finalize, then a segmentation fault is triggered.
The following program reproduces the problem on Ookami with MVAPICH2 Version 2.3.6.
#include <mpi.h>
#include <stdlib.h>
int main(int argc, char** argv) {
// Initialize the MPI environment
MPI_Init(NULL, NULL);
MPI_Datatype dup_type;
MPI_Type_dup(MPI_UINT32_T, &dup_type);
MPI_Type_commit(&dup_type);
int keyval;
MPI_Type_create_keyval(MPI_TYPE_NULL_COPY_FN,
MPI_TYPE_NULL_DELETE_FN,
&keyval, NULL);
MPI_Type_set_attr(dup_type, keyval, NULL);
MPI_Finalize();
return 0;
}
See discussion on
https://urldefense.com/v3/__https://github.com/JuliaParallel/MPI.jl/issues/684*issuecomment-1358070525__;Iw!!KGKeukY!yamad_6dnm-uGgH45v9frkx3NJg0yxwtmWlIYc-u7-K8DblbvFe5wdnANzwOTI3xrh985GBilSdojykR5yRk5i92L7KGtw$
for more details.
Thanks,
Simon
_______________________________________________
Mvapich-discuss mailing list
Mvapich-discuss at lists.osu.edu
https://lists.osu.edu/mailman/listinfo/mvapich-discuss
More information about the Mvapich-discuss
mailing list