>Synopsis: utils.c:947: internal-error: virtual memory exhausted: can't allocate 4294967420 bytes.
>Arrival-Date: Thu May 18 13:48:01 GMT 2006
>Originator: Fred Krogh
Gentoo Linux, gdb-6.4-r4, dual Opteron, GNU Fortran (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
test.f is attached.
g77 -g -o test test.f
gives a fatal error.
The problem is probably due to II being declared with a dimension of *.
This problem has a terrible side effect when using ddd. If when moving the mouse pointer around in the source window one should accidentally let it touch such an array the debug session is lost.
Easy, it fails every time.
In my ignorance, I suspect the problem might be fixed by walking up the call stack and finding the actual dimension of such an array (accounting for the offset if an array element is being passed).
Content-Type: application/octet-stream; name="test.f"
Content-Disposition: attachment; filename="test.f"
The following reply was made to PR fortran/2127; it has been noted by GNATS.
From: Fred Krogh <[hidden email]>
To: Daniel Jacobowitz <[hidden email]>
Cc: [hidden email] Subject: Re: fortran/2127: utils.c:947: internal-error: virtual memory exhausted:
can't allocate 4294967420 bytes.
Date: Thu, 18 May 2006 09:38:12 -0700
Daniel Jacobowitz wrote:
> On Thu, May 18, 2006 at 01:42:29PM -0000, [hidden email] wrote:
>> p (*ii)(3)
>> gives a fatal error.
>> The problem is probably due to II being declared with a dimension of *.
> Could you please try a GDB 6.5 prerelease? I'm not sure, but I believe
> Wu fixed this problem.
Just checked with GNU gdb 126.96.36.19960515-cvs
and got exactly the same problem.