From edk at illinois.edu Fri Feb 5 16:44:25 2021 From: edk at illinois.edu (Ed Karrels) Date: Fri, 5 Feb 2021 16:44:25 -0600 Subject: [Darshan-users] Call to PMPI_Comm_free when DARSHAN_ENABLE_NONMPI is set Message-ID: Hello Darshan team, When using Darshan to profile a non-MPI application using the DARSHAN_ENABLE_NONMPI flag, the application is crashing with these error messages: Attempting to use an MPI routine before initializing MPICH Abort(671693573) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Comm_free: Invalid communicator, error stack: PMPI_Comm_free(137): MPI_Comm_free(comm=0x996cf0) failed PMPI_Comm_free(85).: Invalid communicator This is with darshan-3.2.1. In darshan-runtime/lib/darshan-core.c line 2039 there is a call to PMPI_Comm_free(&core->mpi_comm) that isn't protected with a check of "using_mpi". Should it be? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssnyder at mcs.anl.gov Fri Feb 5 16:56:37 2021 From: ssnyder at mcs.anl.gov (Snyder, Shane) Date: Fri, 5 Feb 2021 22:56:37 +0000 Subject: [Darshan-users] Call to PMPI_Comm_free when DARSHAN_ENABLE_NONMPI is set In-Reply-To: References: Message-ID: Hello Ed, Thanks for reaching out! We've actually got a fix for this in our master branch currently, so this will be fixed in our next release. If you're able to build based off of master, all should be good. --Shane ________________________________ From: Darshan-users on behalf of Ed Karrels Sent: Friday, February 5, 2021 4:44 PM To: darshan-users at lists.mcs.anl.gov Subject: [Darshan-users] Call to PMPI_Comm_free when DARSHAN_ENABLE_NONMPI is set Hello Darshan team, When using Darshan to profile a non-MPI application using the DARSHAN_ENABLE_NONMPI flag, the application is crashing with these error messages: Attempting to use an MPI routine before initializing MPICH Abort(671693573) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Comm_free: Invalid communicator, error stack: PMPI_Comm_free(137): MPI_Comm_free(comm=0x996cf0) failed PMPI_Comm_free(85).: Invalid communicator This is with darshan-3.2.1. In darshan-runtime/lib/darshan-core.c line 2039 there is a call to PMPI_Comm_free(&core->mpi_comm) that isn't protected with a check of "using_mpi". Should it be? -------------- next part -------------- An HTML attachment was scrubbed... URL: