help with diagnosing segmentation fault

help with diagnosing segmentation fault

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

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.