Fatal error in PMPI_Allgather: Invalid buffer pointer, error stack:
PMPI_Allgather(1093): MPI_Allgather(sbuf=0x2621ed0, scount=1,
MPI_INTEGER, rbuf=0x2621ed0, rcount=1, MPI_INTEGER, MPI_COMM_WORLD)
failed PMPI_Allgather(1026): Buffers must not be aliased

上のようなエラーが出てしまうのですが,原因がわかりません.
何が原因なのでしょうか?