Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] Memchecker failure with empty struct type
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-09-25 16:59:52

IIRC, we found a configure "bug" that allowed you to enable-memchecker without also including the required --with-valgrind. You might try again with 1.6.2, which includes the change - and be sure to add the extra configure flag.

On Sep 25, 2012, at 12:04 PM, Jeremiah Willcock <jewillco_at_[hidden]> wrote:

> The following C program:
> #include <mpi.h>
> int main(int argc, char** argv) {
> int blocklengths;
> MPI_Aint displacements;
> MPI_Datatype types, dt;
> int x;
> MPI_Init(&argc, &argv);
> MPI_Type_struct(0, &blocklengths, &displacements, &types, &dt);
> MPI_Type_commit(&dt);
> MPI_Send(&x, 1, dt, MPI_PROC_NULL, 0, MPI_COMM_WORLD);
> MPI_Type_free(&dt);
> MPI_Finalize();
> return 0;
> }
> produces a segmentation fault (caused by a NULL pointer dereference) when run with Open MPI 1.6.1, but only when using Valgrind. Running without Valgrind does not cause any issues; the failure appears to be in the code that checks whether MPI buffers are valid. The configure flags I used to build Open MPI were a prefix and:
> --disable-pretty-print-stacktrace --enable-mpi-thread-multiple --enable-memchecker --enable-mca-no-build=btl-openib --enable-debug
> and I am using GCC 4.7.1 on Linux. Is this a known issue? Thank you for your help.
> -- Jeremiah Willcock
> _______________________________________________
> users mailing list
> users_at_[hidden]