[mpich-discuss] segfault in MPIR_Type_get_envelope_impl

Ryan Crocker rcrocker at uvm.edu
Thu Sep 19 16:42:16 CDT 2013

Hi all, 

So i have a program that makes it through 1 iteration then crashes in the second at an call MPI_FILE_SET_VIEW.  The GDB output give:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100ac4b19 in MPIR_Type_get_envelope_impl ()
(gdb) backtrace 
#0  0x0000000100ac4b19 in MPIR_Type_get_envelope_impl ()
#1  0x0000000100ac4d6a in PMPI_Type_get_envelope ()

the subroutine snippet is:

  integer :: fileview_hexa
  integer :: iunit,ierr,size,ibuffer,i,j,k,count_wedge_,count_hexa_
  character(len=80) :: buffer
  character(len=str_short) :: name
  character(len=str_medium) :: file
  real(WP),dimension(imino_:imaxo_,jmino_:jmaxo_,kmino_:kmaxo_) :: scalar
  integer, dimension(MPI_STATUS_SIZE) :: status
  integer(kind=MPI_OFFSET_KIND) :: disp
  logical :: file_is_there

  call MPI_FILE_SET_VIEW(iunit,disp,MPI_REAL_SP,fileview_hexa,"native",mpi_info,ierr) 

it's from a piece of code that worked fine until i changed some things in the output now i get this segfault.

University of Vermont

More information about the discuss mailing list