The error messages: Rank: 1, Error code (-858993460) while receiving message: Undefined dynamic error code The value -858993460 is 0xCCCCCCCC - the value of uninitialized memory location in debug version In release version the value I get is -1. This sounds very much like a memory allocation problem to me. Use something like DDD to debug that issue. The buffer pointer being passed to MPI_Recv may not be properly allocated.