Re: Segmentation Fault - How can you detect?
- From: claire <claire.s.lim@xxxxxxxxx>
- Date: 25 May 2007 23:55:58 -0700
On May 25, 5:32 pm, Beliavsky <beliav...@xxxxxxx> wrote:
On May 25, 4:44 pm, claire <claire.s....@xxxxxxxxx> wrote:
Hi, I am a rookie using PGI fortran with MPI.
While I was trying to run my program called 'estimate' by typing in
mpirun -nodegroup both -np 22 -machinefile machineset estimate
I got the following error message.
/usr/local/mpich/mpich-1.2.5_pgi/bin/mpirun: line 1: 18777
Segmentation fault /home/shlim/Programs_MPI/estimate -p4pg /home/
shlim/Programs_MPI/PI18227 -p4wd /home/shlim/Programs_MPI
I know what segmentation fault generally means, but how can you find
exactly which line
in the source code is causing the problem?
I am thinking that 'line 1' wouldn't be any particular line in the
SOURCE file, so
how do you detect which line is causing the problem?
I used to use compaq visual fortran which gave pretty clear message
about
which line is causing the error, even in the run-time, and now in the
unix-pgi fortran,
I am kind of lost, regarding how to detect the problem.
G95 has compiler options -ftrace=full -fbounds-check to display line
numbers of errors. Maybe you could try debugging with g95.
Have you looked at the PGI compiler manual for similar options? What
compiler options are you using?
Thank you very much. I am using the compiler pgf90, and I found
in the manual, the option '-g' that
generates symbolic debugging information and keeps track of program
variables and source code.
And, I tried it, but it is not really making any difference.
I get exactly the same messages w/o information about lines in the
source files.
I don't know what to do..
Claire
.
- Follow-Ups:
- Re: Segmentation Fault - How can you detect?
- From: Janne Blomqvist
- Re: Segmentation Fault - How can you detect?
- References:
- Segmentation Fault - How can you detect?
- From: claire
- Re: Segmentation Fault - How can you detect?
- From: Beliavsky
- Segmentation Fault - How can you detect?
- Prev by Date: Re: Open64 Not Setting World on Fire: Why?
- Next by Date: Re: Segmentation Fault - How can you detect?
- Previous by thread: Re: Segmentation Fault - How can you detect?
- Next by thread: Re: Segmentation Fault - How can you detect?
- Index(es):
Relevant Pages
|