Using LD_PRELOAD method. MPI_Init in Spectrum MPI makes a call to fopen64 darshan_stdio.c:274 MAP_OR_FAIL in fopen64 actually calls on fopen and not fopen64. This leaves __real_fopen64 as a null function pointer.