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 the
option '-g' that
generates symbolic debugging information and keeps track of program
variables and source code.
It was very helpful !

.



Relevant Pages

  • 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: 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: 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: GPL vs non-GPL device drivers
    ... shipped the source code of the modified POP server. ... given you the compiler he compiled it with, ... Actually, if memory serves, when you license a work under the GPL, part of the ... a derivative work" the claim is invalid - because, as it has been shown, a ...
    (Linux-Kernel)
  • Re: more compiler switches
    ... Also print the version number of the compiler ... driver program and of the preprocessor and the compiler proper. ... C source code which should not be preprocessed. ... Like -v except the commands are not executed and all command arguments are ...
    (comp.lang.fortran)