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

help with diagnosing segmentation fault

jft27
Beginner
316 Views

Hi there,
I'm pretty familiar with segfaults but this one is proving a bit of a stumbling block.
I allocate an array and pass it to a subroutine. In the routine if I try to access the array element by element all is fine but if I try even the simplest whole array expression, i.e.
print*, array
it segfaults. Actually I can even apply the size(array, n) functions and get the results I expect.
Compiling with -C -traceback doesn't give any extra information which is a bit strange.
Using idb I can see the array and it has the correct size and I can print its contents. But the segfaults still occur.

Any suggestions would be much appreciated...
Jeremy

0 Kudos
0 Replies
Reply