Question: what is munmap_chunk() invalid pointer?
Answer: Memory error: "munmap_chunk: invalid pointer" This happens when the pointer passed to (C-library language routine free(), which is called from Fortran routine NULLIFY()) is not valid or has been modified somehow.