Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] MPI_Type_create_hindexed_block() segfaults
From: George Bosilca (bosilca_at_[hidden])
Date: 2014-04-21 12:44:46


Good catch. Commit r31466.

  Thanks,
    George.

On Apr 21, 2014, at 07:56 , Lisandro Dalcin <dalcinl_at_[hidden]> wrote:

> I believe the problem is in the following source code line
> (file:ompi_datatype_args.c, line:221):
>
> https://bitbucket.org/ompiteam/ompi-svn-mirror/src/v1.8/ompi/datatype/ompi_datatype_args.c?at=v1.8#cl-221
>
> I think you should just remove that bogus line, and that's all.
>
>
> [dalcinl_at_kw2060 openmpi]$ cat type_hindexed_block.c
> #include <mpi.h>
> int main(int argc, char *argv[])
> {
> MPI_Aint disps[] = {0};
> MPI_Datatype datatype;
> MPI_Init(&argc, &argv);
> MPI_Type_create_hindexed_block(1, 1, disps, MPI_BYTE, &datatype);
> MPI_Finalize();
> return 0;
> }
> [dalcinl_at_kw2060 openmpi]$ mpicc type_hindexed_block.c
> [dalcinl_at_kw2060 openmpi]$ ./a.out
> [kw2060:20304] *** Process received signal ***
> [kw2060:20304] Signal: Segmentation fault (11)
> [kw2060:20304] Signal code: Address not mapped (1)
> [kw2060:20304] Failing at address: 0x6a
> [kw2060:20304] [ 0] /lib64/libpthread.so.0[0x327c40f750]
> [kw2060:20304] [ 1] /lib64/libc.so.6[0x327bc94126]
> [kw2060:20304] [ 2]
> /home/devel/mpi/openmpi/1.8.0/lib/libmpi.so.1(ompi_datatype_set_args+0x7f1)[0x7f8f0158b62a]
> [kw2060:20304] [ 3]
> /home/devel/mpi/openmpi/1.8.0/lib/libmpi.so.1(MPI_Type_create_hindexed_block+0x24d)[0x7f8f015cedc8]
> [kw2060:20304] [ 4] ./a.out[0x40080c]
> [kw2060:20304] [ 5] /lib64/libc.so.6(__libc_start_main+0xf5)[0x327bc21d65]
> [kw2060:20304] [ 6] ./a.out[0x4006f9]
> [kw2060:20304] *** End of error message ***
> Segmentation fault (core dumped)
>
> --
> Lisandro Dalcin
> ---------------
> CIMEC (UNL/CONICET)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 3000 Santa Fe, Argentina
> Tel: +54-342-4511594 (ext 1016)
> Tel/Fax: +54-342-4511169
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post: http://www.open-mpi.org/community/lists/devel/2014/04/14563.php