This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fortran/1768: Seg fault with large programs?


>Number:         1768
>Category:       fortran
>Synopsis:       Seg fault with large programs?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 31 13:18:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     weatherwax@ll.mit.edu
>Release:        unknown-1.0
>Organization:
>Environment:
g77 --version (gives) 
GNU Fortran (GCC) 3.3.1 (SuSE Linux)

gdb -v
GNU gdb 6.2
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".

uname -a
Linux linux 2.4.21-99-smp4G #1 SMP Wed Sep 24 14:13:20 UTC 2003 i686 i686 i386 GNU/Linux


g77 -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

>Description:
I am trying to use gdb to step trough a rather large FORTRAN 77
program (236 files=17479 lines of code) and am having trouble.  I have
compiled and linked with -g using g77.

I am able to open the resulting executable file in gdb and able to set
breakpoints in the file that contains "MAIN".  I can then "next" pass
each procedure at this top level.  When I try to go into ANY of the
subroutines I get a Segmentation fault.  In addition when I set break
points inside a given subroutine (deeper than main) I get a
segmentation fault when I run the code so that it should stop at a
break point.

The program runs to completion on its own and inside of gdb.  I have
been able to step into procedures inside gdb in a much smaller FORTRAN
77 program but have no idea why one works and the other does not.

I have tried to look at the gdb source, but I was unable to see what
could be causing this problem.

Can anyone offer to me suggestions on what I might do to get gdb to
work with this program?  I'm not afraid of doing some work just rather
unclear about where to start.

Thanks for your time,

Wax


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]