Fatal error in MPI_Send: Invalid count, error stack:
MPI_Send(196): MPI_Send(buf=0x7ff05a3b5010, count=-1063321726, MPI_CHAR, dest=6, tag=10, MPI_COMM_WORLD) failed
MPI_Send(113): Negative count, value is -1063321726
Ran into the same problem, at the same MPI_Send call. It doesn't matter whether your system is 32-bit or 64-bit -- in either case the 'count' parameter to MPI_Send is a 32-bit signed integer which is likely to overflow. If it happens to end up negative, as in this case, MPI_Send detects the error and aborts; there will also be silent undetected buffer truncation when the buffer size expressed as a size_t (unsigned 64-bit integer on Linux-x86-64+GCC+GLIBC; eligible to vary from platform to platform) is positive modulo 2^32.
I'm currently experimenting with a patch that replaces all suspect MPI_Send and MPI_Recv calls with a buffer-chunking strategy that can send up to 2^64 bytes. If we want it to work on 32-bit platforms too it would be advisable to replace size_t with unsigned long long everywhere. If it works in testing I'll post the patch.
Chris