When running on Ubuntu with OpenMPI 2.1.1, gcc 7.5.0 and HDF5 1.10.0-patch1, creating a new HDF5 file in parallel leads to stack smashing errors. This does not occur when running on Iridis using mpich 3.2.1, gcc 4.8.5 and HDF5 1.10.2.
As the version on Iridis appears to give the right answer and the error is occuring within the H5Fcreate library call, I suspect that this is due to a problem with openmpi configuration, but haven't been able to confirm yet.