public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/60339] New: gnat weird DW_AT_abstract_origin
@ 2014-02-25 21:35 jan.kratochvil at redhat dot com
  2014-02-25 23:52 ` [Bug debug/60339] " ebotcazou at gcc dot gnu.org
  2014-03-10 19:47 ` jan.kratochvil at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-02-25 21:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60339

            Bug ID: 60339
           Summary: gnat weird DW_AT_abstract_origin
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.kratochvil at redhat dot com
              Host: x86_64-unknown-linux-gnu

Description of problem:
FSF GDB HEAD internal errors on reading gcc/gnatbind using -readnow.
GDB will be changed to just make a 'complaint' as GDB must not crash on invalid
DWARF file.  But still the gnat-produced DWARF seems incorrect to me.

Version-Release number of selected component (if applicable):
GNU gdb (GDB) 7.7.50.20140224-cvs (gdb-7.7 is too old)
FAIL: r208119

Steps to Reproduce:
../gcc48/configure --enable-languages=ada --enable-bootstrap
make profiledbootstrap
../fresh-new-gdb/gdb/gdb -readnow gcc/gnatbind

Actual results:
Reading symbols from gcc/gnatbind...expanding to full
symbols...dwarf2read.c:8032: internal-error: process_die: Assertion
`!die->in_process' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) _

readelf -wi gcc/gnatbind

concrete instance tree (Out-of-Line Instance):
 <1><47562>: Abbrev Number: 62 (DW_TAG_subprogram)
    <47563>   DW_AT_abstract_origin: <0x46678>
    <47567>   DW_AT_low_pc      : 0x4517e0
    <4756f>   DW_AT_high_pc     : 0x261

abstract instance tree:
 <1><46678>: Abbrev Number: 48 (DW_TAG_subprogram)
    <46679>   DW_AT_name        : atree__copy_separate_tree
    <46684>   DW_AT_inline      : 1     (inlined)
 <2><46689>: Abbrev Number: 112 (DW_TAG_subprogram)
    <4668a>   DW_AT_name        : atree__copy_separate_tree__copy_entity
    <46695>   DW_AT_low_pc      : 0x450ca0
    <4669d>   DW_AT_high_pc     : 0x3c9
 - why are specific PCs in _abstract_ instance tree?
 - BTW the tree has 301 DIEs, that seems too large for an abstract instance
tree

BTW master (4.9 - r208124) failed on GNAT internal error during bootstrap.


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

* [Bug debug/60339] gnat weird DW_AT_abstract_origin
  2014-02-25 21:35 [Bug debug/60339] New: gnat weird DW_AT_abstract_origin jan.kratochvil at redhat dot com
@ 2014-02-25 23:52 ` ebotcazou at gcc dot gnu.org
  2014-03-10 19:47 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-02-25 23:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60339

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ebotcazou at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---

> concrete instance tree (Out-of-Line Instance):
>  <1><47562>: Abbrev Number: 62 (DW_TAG_subprogram)
>     <47563>   DW_AT_abstract_origin: <0x46678>
>     <47567>   DW_AT_low_pc      : 0x4517e0
>     <4756f>   DW_AT_high_pc     : 0x261
> 
> abstract instance tree:
>  <1><46678>: Abbrev Number: 48 (DW_TAG_subprogram)
>     <46679>   DW_AT_name        : atree__copy_separate_tree
>     <46684>   DW_AT_inline      : 1     (inlined)
>  <2><46689>: Abbrev Number: 112 (DW_TAG_subprogram)
>     <4668a>   DW_AT_name        : atree__copy_separate_tree__copy_entity
>     <46695>   DW_AT_low_pc      : 0x450ca0
>     <4669d>   DW_AT_high_pc     : 0x3c9
>  - why are specific PCs in _abstract_ instance tree?

This is a non-inlined subroutine nested in an inlined subroutine, see 3.3.8.4.

>  - BTW the tree has 301 DIEs, that seems too large for an abstract instance
> tree

!!???

> BTW master (4.9 - r208124) failed on GNAT internal error during bootstrap.

Please open a separate PR for this.


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

* [Bug debug/60339] gnat weird DW_AT_abstract_origin
  2014-02-25 21:35 [Bug debug/60339] New: gnat weird DW_AT_abstract_origin jan.kratochvil at redhat dot com
  2014-02-25 23:52 ` [Bug debug/60339] " ebotcazou at gcc dot gnu.org
@ 2014-03-10 19:47 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-03-10 19:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60339

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
(In reply to Eric Botcazou from comment #1)
> This is a non-inlined subroutine nested in an inlined subroutine, see
> 3.3.8.4.

OK, thanks for the pointer.


> > BTW master (4.9 - r208124) failed on GNAT internal error during bootstrap.
> 
> Please open a separate PR for this.

I have seen it discussed elsewhere as a known issue.


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

end of thread, other threads:[~2014-03-10 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25 21:35 [Bug debug/60339] New: gnat weird DW_AT_abstract_origin jan.kratochvil at redhat dot com
2014-02-25 23:52 ` [Bug debug/60339] " ebotcazou at gcc dot gnu.org
2014-03-10 19:47 ` jan.kratochvil at redhat dot com

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).