This is usually a result of a too small stack size, it occurs mostly when using the Intel compiler. To solve this issue, set the stack size with
ulimit -s unlimited
ulimit -s hard.
Fatal Error: Cannot open module file ‘hdf5.mod’ for reading at (1): No such file or directory
This means that HDF5 is not installed or its location is not known to PETSc. Configure PETSc with