From 87fd85b17a119e8e522bb08c43428772ec80e353 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 24 Nov 2009 02:33:13 +0000 Subject: [PATCH] Detach the user buffer prior to the orte_barrier in MPI_Finalize. This patch fixes trac:2112. This commit was SVN r22229. The following Trac tickets were found above: Ticket 2112 --> https://svn.open-mpi.org/trac/ompi/ticket/2112 --- ompi/runtime/ompi_mpi_finalize.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ompi/runtime/ompi_mpi_finalize.c b/ompi/runtime/ompi_mpi_finalize.c index dc00a54c79..e8db85fa2d 100644 --- a/ompi/runtime/ompi_mpi_finalize.c +++ b/ompi/runtime/ompi_mpi_finalize.c @@ -111,6 +111,11 @@ int ompi_mpi_finalize(void) return MPI_ERR_OTHER; } + /* As finalize is the last legal MPI call, we are allowed to force the release + * of the user buffer used for bsend, before going anywhere further. + */ + (void)mca_pml_base_bsend_detach(NULL, NULL); + /* If desired, send a notify message */ if (ompi_notify_init_finalize) { orte_notifier.log(ORTE_NOTIFIER_NOTICE,