Wednesday, 25 March 2015

segmentation fault

After refining the mesh for p3, the program ends up with segmetation fault.
after debugging using idb, it is found it crashes at a line that writes result into file. apparently it is not casued by this line simply. the problem can be reproduced by using gfortran.
I was suggested by changing the stack size by

   ulimit -s 4000000

the way to get around is to compile the source code by windows. at least the program is now working.


case 2

the second time i see segmentation fault is that one of the files are not properly transfered from source to sub functions.


say: call aaa(a,b,c)

in aaa :
aaa(a,b)
c=12

this may cause segmentation fault

No comments:

Post a Comment