This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Fortran DW_TAG_imported_module now crashes GDB
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Mon, 25 Aug 2008 22:23:49 +0200
- Subject: Fortran DW_TAG_imported_module now crashes GDB
Hi,
not sure if this list is appropriate for this mail but at least I see no
existing Bugzilla for Archer.
Current Fedora Rawhide gcc-gfortran-4.3.1-8
http://koji.fedoraproject.org/koji/buildinfo?buildID=60143
started to use Jakub Jelinek's patch for DW_TAG_imported_module and
DW_TAG_imported_declaration which has regressed GDB (all its variants).
$ gfortran -o test test.f90 -g;gdb -ex 'b 2' ./test
On Sat, 23 Aug 2008 13:48:22 +0200, Tobias Burnus wrote:
> With Jakob's patches, I see the following internal error in gdb. I don't
> know whether this is a gdb bug or whether only the DWARF has problems.
>
> $ ~/projects/gdb/inst/bin/gdb --quiet a.out
> (gdb) b 2
> ../../src/gdb/dwarf2read.c:2764: internal-error: process_die: Assertion
> `die->child == NULL' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
>
> See attached .f90 and .s file.
Please notify if you take the bug.
Regards,
Jan
MODULE pr29635_1
integer :: varx, vary, varz
real :: varv, varw
common /foo/ varx, varw, vary
type typex
real :: fldx
end type
type typey
integer :: fldy
end type
type(typex) :: varu
contains
subroutine init
varx = 1
vary = 2
varz = 3
varv = 4.5
varw = 5.5
varu%fldx = 6.5
end subroutine init
END MODULE pr29635_1
subroutine foo1
USE pr29635_1
varx = 6
end subroutine foo1
subroutine foo2
USE pr29635_1, only : varz
varz = 7
end subroutine foo2
subroutine foo3
USE pr29635_1, a=>varx, b=>varx, c=>varv, d=>typex
type (d) :: h
a = 8
c = 7.0
end subroutine foo3
subroutine foo4
USE pr29635_1, only: a=>varz, b=>varz, c=>varv
b = 9
c = 7.5
end subroutine foo4
call foo4()
end