Hi Jeff, thanks for the explanation - I should have read the MPI standard more carefully. In the end, I traced the bug down to using standard send instead of synchronous send, so it had nothing to do with the receiving side at all.
Best regards, Riccardo