Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29307 Discussions

Segfault on call to subroutine [solved]

nicolas_girard
Beginner
562 Views
Hi all,
my fortran 90 code works fine when compiled using gfortran (gcc 4.0).
I've compiled it successfully with ifort, but when running it I get:

Command terminated by signal 11


Here's also what gdb tells me:

Program received signal SIGSEGV, Segmentation fault.
0x080521f8 in routines_mp_increment_ ()



The strange thing is that I added some print statements before the call, after the call, and in the very beginning of the subroutine increment ; and only the print instruction *before* the call gets executed....

Here are my compiling options: (relevant part of Makefile)


FC_HOME = /opt/intel/fc_80
FC = $(FC_HOME)/bin/ifort -132 -I $(FC_HOME)/include -inline_debug_info -g -r8
FC_LIB = $(FC_HOME)/lib
WARN_OPTS = -warn all -warn errors -w90 -w95 -std90 -std95

.f90.o:
$(FC) -c $(FFLAGS) $(WARN_OPTS) $<
program: $(OBJS)
$(FC) -o $(MAIN) $(OBJS) $(WARN_OPTS)
test: program
LD_LIBRARY_PATH=$(FC_LIB) ./$(MAIN)


What do you think I could do to overcome this problem ?

Many thanks in advance,
cheers,
Nicolas

Message Edited by nicolas.girard@nerim.net on 05-08-2005 04:44 AM

0 Kudos
1 Reply
nicolas_girard
Beginner
562 Views
ulimit -s unlimited
solved my problem.
0 Kudos
Reply