- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page