PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Segmentation Fault (not even starting the program)

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Jane Smith



Joined: 27 May 2007
Posts: 1

PostPosted: Sun May 27, 2007 1:24 am    Post subject: Segmentation Fault (not even starting the program) Reply with quote

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?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6120
Location: The Portland Group Inc.

PostPosted: Tue May 29, 2007 11:02 am    Post subject: Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group