Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

debuging fortran with DDD

gera
Beginner
852 Views
Hi friends
I hava a C code that calls a Fortran routine.
I am using DDD to debug. I can open DDD (3.3.1) and debug the C code, and the debug and the interface works ok, but wht the process starts inside the Fortran routine the process break with the following message:
"GDB terminated abnormally (Segmentation Fault)"
My compaler is ifort. Do I have to set some flag in the makefile?
thank you
Luiz



0 Kudos
2 Replies
Micah_Elliott
Beginner
852 Views
What C compiler are you using? Start with the simplest case possible -- does a helloworld mixed mode app also get the SEGV in a similar fashion? What version of gdb are you using? Does the problem also occur when ddd is not in the picture? (IOW, does gdb alone also demonstrate the problem? ddd is quite possibly a red herring, not part of the problem.) What C and Fortran compiler options are you using?
0 Kudos
gera
Beginner
852 Views
What C compiler are you using?
gcc

gdb version:
GNU gdb Red Hat Linux (6.3.0.0-1.90rh)

Does the problem also occur when ddd is not in the picture? (IOW, does gdb alone also demonstrate the problem?
yes. "Segmentation fault"

ddd is quite possibly a red herring, not part of the problem.) What C and Fortran compiler options are you using?
gcc -DHAVE_CONFIG_H -I. -I/u/gera/CVSGIR/avoinversionpsv/src -I.. -g -MT avoinversionpsv.o -MD -MP -MF ".deps/avoinversionpsv.Tpo" -c -o avoinversionpsv.o avoinversionpsv.c;
ifort -O0 -nofor_main -free -g -silent -c -o angle_psv.o angle_psv.f
/bin/sh ../libtool --tag=F77 --mode=link ifort -O0 -nofor_main -free -g -silent -o avoinversionpsv avoinversionpsv.o seisinput.o sgyoutput.o Util.o hunt.o get_psv.o calc_psv.o angle_psv.o ap_avopsv.o
ifort -O0 -nofor_main -free -g -silent -o avoinversionpsv avoinversionpsv.o seisinput.o sgyoutput.o Util.o hunt.o get_psv.o calc_psv.o angle_psv.o ap_avopsv.o
0 Kudos
Reply