Re: Segmentation Fault - How can you detect?



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

.



Relevant Pages

  • Re: In the Land of the Blind, the Hoff is truly King!
    ... implemented within the source code pool for OpenVMS." ... out-of-range bug with nsa$validate_table was causing the crash then the code ... 05 pic s9comp value 29779. ...
    (comp.os.vms)
  • Re: Segmentation Fault - How can you detect?
    ... While I was trying to run my program called 'estimate' by typing in ... in the source code is causing the problem? ... how do you detect which line is causing the problem? ... Have you looked at the PGI compiler manual for similar options? ...
    (comp.lang.fortran)
  • Re: Segmentation Fault - How can you detect?
    ... how do you detect which line is causing the problem? ... Have you looked at the PGI compiler manual for similar options? ... generates symbolic debugging information and keeps track of program ... variables and source code. ...
    (comp.lang.fortran)
  • Re: Problem links in Safari
    ... Without trying the page for myself and looking at the source code, ... I can't even begin to speculate on what could be causing such an odd ...
    (comp.sys.mac.system)
  • Re: Pascal family of languages is getting crowded :-)
    ... > way of knowing what is causing the bug without having access to their ... > source code, so how can you possibly know how easy it is to fix. ...
    (borland.public.delphi.non-technical)