This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
fortran/1530: segmentation fault for FOTRAN77 arrays
- From: ilias at utcpd dot sk
- To: gdb-gnats at sources dot redhat dot com
- Date: 20 Jan 2004 08:18:12 -0000
- Subject: fortran/1530: segmentation fault for FOTRAN77 arrays
- Reply-to: ilias at utcpd dot sk
>Number: 1530
>Category: fortran
>Synopsis: segmentation fault for FOTRAN77 arrays
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 20 08:28:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: ilias@utcpd.sk
>Release: GNU gdb 2004-01-19-cvs
>Organization:
>Environment:
i686-pc-linux-gnu; GNU Fortran (GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7))
>Description:
Dear Sirs,
The FORTRAN77(g77) variables are always passed to subroutines as pointers. When you type print *A in subroutine PROC2(see attached file), you get all elements of matrix A(3,3).However, you can not get individual element - print *A(1,1) gives you "Program received signal SIGSEGV, Segmentation fault.". There is no problem with ordinary variables, e.g. print *B prints the correct value of B.
>How-To-Repeat:
Please update the appropriate CVS files. Thanks, Miro (ilias@utcpd.sk)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: