Fortran - segmentation fault

 
Vista:

segmentation fault

Publicado por diego (1 intervención) el 31/01/2010 22:40:41
Hola

queria saber si alguien me puede ayudar con este problema:
Tengo un programa hecho en fortran 90. El programa es basicamente un lanczos que sirve para diagonalizar matrices sparse muy grandes.
Como compilador tengo el GNU fortran 95 compiler. Mi sistema op. es Ubuntu 9.10 - Karmic Koala.

El problema que tengo es que el programa aloca memoria dinamica, vectores y matrices muy grandes. Al correrlo obtengo un segmentation foult, pero no logro encontrar donde está el problema. Lo que hice es usar un debbuger, gdb mas precisamente de la siguiente manera:

=======================================

*****@******:~/Dropbox/Trabajo/Sandvik/LanczosT$ gfortran Hex.f90 -g -o salida -llapack
*****@******:~/Dropbox/Trabajo/Sandvik/LanczosT$ gdb ./salida

GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Leyendo símbolos desde /home/******/salida...hecho.
(gdb) break main
Punto de interrupción 1 at 0x8050123
(gdb) line
command indefinida: "line". Intente con "help"
(gdb) run
Starting program: /home/*******/salida

Breakpoint 1, 0x08050123 in main ()
(gdb) where
#0 0x08050123 in main ()
#1 0x00213b56 in __libc_start_main (main=0x8050120 <main>, argc=1,
ubp_av=0xbffff484, init=0x8050170 <__libc_csu_init>,
fini=0x8050160 <__libc_csu_fini>, rtld_fini=0xdb1d20 <_dl_fini>,
stack_end=0xbffff47c) at libc-start.c:220
#2 0x08048ad1 in _start () at ../sysdeps/i386/elf/start.S:119

=======================================

el problema es que no se interpretar donde está el error?
Alguien me puede dar una mano?

Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder