Segmentation Fault (not even starting the program)

Hi, I am using PGI fortran with MPI (mpif90), and when I compiled and
ran my program, I got the segementation fault error. (As a matter of fact,
it did not execute the first executable statement in my program, which was
printning ‘hello world’.)

I ran the program with a debugging option (gdb) and I got the following messages.

GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “i386-redhat-linux”…
Breakpoint 1 at 0x81bbfe6

Program received signal SIGSEGV, Segmentation fault.
0x40000a50 in .BSS1 ()
(gdb) list
1 init.c: No such file or directory.
in init.c


I am a rookie, so I am not really understanding why my program
has anything to do with ‘init.c’ (I don’t actually know what it is).
Does anybody know what these messages imply?

Hi Jane,

The “init” routine is part of your MPICH library and is envoked when you call the “MPI_INIT” function. Does your MPICH library work with other programs? Was it compiled with PGI compilers? Which version of the PGI compilers are you using?

Since it should be small, can you please post your program?

Thanks,
Mat