NVFORTRAN compile: mpirun Caught Signal 11

I compiled my code with nvfortran. I used mpi run, but got an error:

“Caught signal 11 (Segmentation fault: address not mapped to object at address 0x5800005b)”
And then it shows a bunch of lib files in different folders (which I have exported a path too).

Finally it shows this:
“Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.
mpirun noticed that process rank 2 with PID 0 on node laptop exited on signal 11 (Segmentation fault).”

What does this mean and how can I fix it?

A Segmentation fault (aks segv) is when a pointer is being accessed contains a bad or illegal address. There are many causes of the error, for example: dereferencing a null pointer, accessing an array beyond it’s bounds, overflowing the stack, etc.

Why it’s happening here, I have no idea. You’ll want to try using a debugger to get a better indication of where and why the error is occurring, then inspect the code to determine how to fix it.