Re: gfortran problem



On Mar 31, 6:52 pm, rudra <bnrj.ru...@xxxxxxxxx> wrote:
*** glibc detected *** /matsc/students/Rudra/Recursion/Real/run.out:
double free or corruption (out): 0xb7f79008 ***
[...]
#6 0x0024e0c1 in _gfortran_internal_free () from /usr/lib/
libgfortran.so.1
#7 0x0804a075 in coefficient_ (istart=@0xbf8b1eb4, lorbit=@0xbf8b1eac,
nrec=@0xbf8b1ea8, nsite=@0xbf8b1efc,
nmax=@0xbf8b1eb0, nn=@0xbf8b1ef8, cmat=0xbf8b1e50, dmat=0xbf8b1e08) at
coeff.f90:5
#8 0x0804af1b in MAIN__ () at main.f90:64
#9 0x0804af47 in main ()
(gdb)

can anybody tell me whats wrong? gfortran is working well elsewhere

Not without further information such as knowing how "coefficient" in
coeff.f90 looks like. If you use POINTER then it could well be a
programming error, if not it could be a gfortran bug.

Regarding the latter, it would like to know the system (target) and
the version of gfortran (run: gfortran -v).

Additionally, if you have "valgrind", run you program in valigrind.
This provides often a better clue where things go wrong. Sometimes
things go wrong but surface never or only much later. Run also the
ifort program in "valgrind", even though it does not crash it could
well have the same problem.

Tobias
.



Relevant Pages

  • Older version of gfortran question. Cause of segfaults?
    ... I have a user than is experiencing segfaults when they try to run some of our code compiled with gfortran. ... I compile and run using gfortran no worries (gfortran is my main dev ... I can't replicate this when I run the code through valgrind. ...
    (comp.lang.fortran)
  • Re: gfortran problem
    ... if not it could be a gfortran bug. ... Additionally, if you have "valgrind", run you program in valigrind. ... its not a pointer, just an array. ... Target: i386-redhat-linux ...
    (comp.lang.fortran)
  • Re: compiler switch -c
    ... It is not meant to mimic ifort. ... gfortran -c fruit_util.f90 ... Expected formal argument list in function definition at ... Without seeing source code and without knowing the exact gfortran ...
    (comp.lang.fortran)