Issue with memory and segmentation fault.

Issue with memory and segmentation fault.

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

AttachmentSize
Download new_file.868 bytes
1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.