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

Issue with memory and segmentation fault.

aksharb
Beginner
323 Views
Hi,
i am getting segfault with small code.
code is attached in file.

/opt/intel/mpi/bin64/mpiifort -I/opt/intel/mpi/include64 -c numb.F
/opt/intel/mpi/bin64/mpiicc -I/opt/intel/mpi/include64 -c mymalloc.c
mpiifort -o final numb.o mymalloc.o
./final generates :
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
execute 0000000000402C37 Unknown Unknown Unknown
execute 0000000000402BDC Unknown Unknown Unknown
libc.so.6 0000003689E1E566 Unknown Unknown Unknown
execute 0000000000402AE9 Unknown Unknown Unknown

Now if i keep value of j1 as 1000 in numb.F, i get correct numbers printed.
os is centos 5.2 x86_64. Machine is having 100GB of memory.
ulimit is unlimited
0 Kudos
0 Replies
Reply