In this file, in function comex_malloc(), there is
int tsize;
if (size > 0) {
tsize = size;
} else {
tsize = 8;
}
MPI_Alloc_mem(tsize,MPI_INFO_NULL,®_entries[comm_rank].buf);
so "tsize" should be size_t or even better MPI_Aint. With the code as is, I see negative
values for tsize, obviously stemming from 32-bit overflows.