[mpich-discuss] Segmentation Fault when running any application.

Jayesh Krishna jayesh at mcs.anl.gov
Tue Nov 15 10:10:41 CST 2011


Hi,
 I just tried compiling your code with cygwin gcc (3.4.4) + MPICH2 1.4.1p1 gcc libs and it worked for me (No seg fault, gives the expected output).
 Make sure that you are using the correct header files and libraries (MPICH2 libs and headers) when you compile your code.

Regards,
Jayesh

----- Original Message -----
From: "Michael Warthon" <michael.warthon at upr.edu>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Tuesday, November 15, 2011 9:53:32 AM
Subject: Re: [mpich-discuss] Segmentation Fault when running any application.

Ah sorry. I forgot to include the p1 at the end of it. I am using mpich2 1.4.1p1 


On Tue, Nov 15, 2011 at 9:44 AM, Jayesh Krishna < jayesh at mcs.anl.gov > wrote: 


Did you try the latest stable release (1.4.1p1)? 

-Jayesh 


----- Original Message ----- 
From: "Michael Warthon" < michael.warthon at upr.edu > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, November 14, 2011 7:54:43 PM 
Subject: [mpich-discuss] Segmentation Fault when running any application. 



Hello, 

I am new to MPI and I went and installed mpich2 1.4.1 onto a windows system that is being used through cygwin. I have compiled the code that simply prints the process and rank as shown below. 



#include <stdio.h> 
#include <mpi.h> 

int main( int argc, char *argv[]) { 

int numprocs, rank, namelen; 
char processor_name[MPI_MAX_PROCESSOR_NAME]; 

MPI_Init(&argc, &argv); 
MPI_Comm_size(MPI_COMM_WORLD, &numprocs); 
MPI_Comm_rank(MPI_COMM_WORLD, &rank); 
MPI_Get_processor_name(processor_name, &namelen); 

printf( "Process %d on %s out of %d\n" , rank, processor_name, numprocs); 

MPI_Finalize(); 
} 

Nothing too complicated. However, I still receive an error from the command line in cygwin that simply reads segmentation fault: (core dumped). The command I used was: 

mpiexec -n 1 a.exe 

No matter what executable I try to run, I still receive the same error. Any help regarding this would be greatly appreciated! 
_______________________________________________ 
mpich-discuss mailing list mpich-discuss at mcs.anl.gov 
To manage subscription options or unsubscribe: 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 



More information about the mpich-discuss mailing list