Recent content by ASGtFT

  1. A

    Comp Sci Fortran debugging help: faulty pointers?

    Hi, I tried compiling my program in Fortran using the following commands: nagfor -g90 -C=all -C=undefined -g -gline -nan -u -mtrace=all test09b.f90 cell_functions.o -o test09b I ended up getting this error message: [Allocated item 15285 (size 17) = Z'FFFFFFFFB744A790'] Runtime Error...
  2. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    Hi, I've managed to find where the problem is, but I can't see what it is. This is the function that appears to be causing the segfault. Can anyone tell me what the problem might be? Thanks! FUNCTION pairing (list1, list2, fbpt, last) RESULT (paired) use cell_test, except_this_one =>...
  3. A

    Comp Sci Am I using interfaces in Fortran correctly?

    I'm having problems compiling files with interfaces in Fortran. My compiler is NAG Fortran Compiler Release 5.2. I get this error: ------------------------------------- Error: subroutines.f90, line 2: USE TEST_MOD in program-unit MY_SUB imports symbol MY_SUB detected at...
  4. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    Thanks. I'll try some others on that link you sent me.
  5. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    I tried it, but it didn't show any errors. I assume that this means that the array sizes are fine, although this seems to contradict the fact that the program only segfaults for larger files. Can you give me exact command you would use? I used: gfortran program_name -fcheck=bounds module1.f90...
  6. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    Do I use the command in runtime, or in compiling? I used it in runtime using: ./{program file} -fcheck=bounds Is that what the usual command is? Also, do you know of any gfortran manuals I can find? All I can find is this one...
  7. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    Thank you for offering to look at the code, but there's quite a lot of it (about 900 lines now), and I wouldn't want anyone to spend ages working their way through it when they have better things to do!
  8. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    That would make sense. My code deals with many arrays. One problem with my code (which may or may not have led to the segmentation fault) is that it doesn't seem to be portable. I started out using gfortran, and today I tried to use NAG (somebody told me that it was easier to debug). However, I...
  9. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    I should probably add a little background. My code performs an algorithm on some data in an input file. But the code works perfectly for small files, and only segfaults for larger files. That doesn't seem to make sense if the problem is simply to do with an invalid location.
  10. A

    Comp Sci What could be causing a segmentation fault in this Fortran function?

    1. I have a segmentation fault when I try to run a program I have written in Fortran. The compiler I used is gfortran. What typically causes a segmentation fault, and how do I find where the problem is? I know I should use a debugger, but I don't know which debugger I should use, how to get it...
Back
Top