public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Dwarf2-related Internal error
@ 2003-07-08 14:36 Michal Ludvig
  2003-08-14 11:03 ` Michal Ludvig
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Ludvig @ 2003-07-08 14:36 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 1548 bytes --]

Hi all,
I have problems debugging the attached code (real.f) on AMD64 platform. 
However the problem doesn't seem to be AMD64-related, but Dwarf2-related 
instead and it only happens if it is compiled by the PGI fortran 
compiler (beta is available for free download at www.pgroup.com/AMD64).

Debugging the 'real' binary on AMD64/Linux systems leads to GDB internal 
error:

$ ../gdb real
GNU gdb 2003-07-08-cvs
Copyright 2003 Free Software Foundation, Inc.
[...]
This GDB was configured as "x86_64-unknown-linux-gnu"...
(gdb) b hurdgy
Breakpoint 1 at 0x4000113c: file real.f, line 8.
(gdb) r
Starting program: /tmp/gdbbuild/gdb/fortran/real

Breakpoint 1, hurdgy (xx=
/ttt/64/gdb-head/gdb/utils.c:1058: internal-error: virtual memory 
exhausted: can't allocate 4294967404 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

/ttt/64/gdb-head/gdb/utils.c:1058: internal-error: virtual memory 
exhausted: can't allocate 4294967404 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
$

Something is wrong in parsing the Dwarf2 .debug_info section - 
unfortunately I don't understand the GDB internals in this field.
Could someone help me with it, please?

All relevant files (source, asm, binaries, cores) are available at:
http://tmp.logix.cz/amd/fortran/

Thanks in advance for any help!

Michal Ludvig
-- 
* SuSE CR, s.r.o     * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz

[-- Attachment #2: real.f --]
[-- Type: text/plain, Size: 133 bytes --]

      real flat(10)
      call hurdgy(flat, 10)

      end

      subroutine hurdgy(xx,i)
      integer i
      real xx(i)
      end

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-14 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-08 14:36 Dwarf2-related Internal error Michal Ludvig
2003-08-14 11:03 ` Michal Ludvig
2003-08-14 12:41   ` Elena Zannoni
2003-08-14 13:17     ` Michal Ludvig
2003-08-14 14:56       ` Michal Ludvig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).