I face this error code in a single node mpi but there are systems that do not encounter that by compiling the same code.
Maybe its a mpich installation issue? Could that be the case?
It wouldn't be a good idea to post the code here, since it's not that small.
The thing is, as I mentioned, it works in "real" distributed system, but when compiled in my laptop(single node) I get this error code.
=== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 139 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11) This typically refers to a problem with your application.