public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process
@ 2020-07-13  9:48 vries at gcc dot gnu.org
  2020-07-13  9:49 ` [Bug symtab/26231] " vries at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-07-13  9:48 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

            Bug ID: 26231
           Summary: [readnow] process_die_scope: Assertion
                    !m_die->in_process
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[
https://src.fedoraproject.org/rpms/gdb/blob/f31/f/gdb-gnat-dwarf-crash-3of3.patch
]

With the executable
http://people.redhat.com/jkratoch/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug
and readnow, we run into:
...
$ ./gdb.sh -readnow gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug
Reading symbols from gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug...
Expanding full symbols from gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug...
src/gdb/dwarf2/read.c:10077: internal-error:
process_die_scope::process_die_scope(die_info*, dwarf2_cu*): Assertion
`!m_die->in_process' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/26231] [readnow] process_die_scope: Assertion !m_die->in_process
  2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
@ 2020-07-13  9:49 ` vries at gcc dot gnu.org
  2020-07-13  9:51 ` vries at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-07-13  9:49 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 12694
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12694&action=edit
gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/26231] [readnow] process_die_scope: Assertion !m_die->in_process
  2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
  2020-07-13  9:49 ` [Bug symtab/26231] " vries at gcc dot gnu.org
@ 2020-07-13  9:51 ` vries at gcc dot gnu.org
  2020-07-13 11:10 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-07-13  9:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Patch submitted here:
https://sourceware.org/legacy-ml/gdb-patches/2014-02/msg00731.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/26231] [readnow] process_die_scope: Assertion !m_die->in_process
  2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
  2020-07-13  9:49 ` [Bug symtab/26231] " vries at gcc dot gnu.org
  2020-07-13  9:51 ` vries at gcc dot gnu.org
@ 2020-07-13 11:10 ` vries at gcc dot gnu.org
  2020-07-13 11:33 ` vries at gcc dot gnu.org
  2020-10-28 20:46 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-07-13 11:10 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Backtrace at assert:
...
#8  0x0000000000b09495 in internal_error (file=0xbace00
"/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c", line=10077,
fmt=0xbac4f6 "%s: Assertion `%s' failed.") at
/home/vries/gdb_versions/devel/src/gdbsupport/errors.cc:55
#9  0x0000000000606b19 in process_die_scope::process_die_scope
(this=0x7fffffffca90, die=0x1e3e810, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10077
#10 0x00000000005dc714 in process_die (die=0x1e3e810, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10105
#11 0x00000000005e3e72 in read_func_scope (die=0x1e3e5c0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13240
#12 0x00000000005dc938 in process_die (die=0x1e3e5c0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
#13 0x00000000005e38bb in inherit_abstract_dies (die=0x1e3e810, cu=0x1aef770)
at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13117
#14 0x00000000005e3e9f in read_func_scope (die=0x1e3e810, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13245
#15 0x00000000005dc938 in process_die (die=0x1e3e810, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
#16 0x00000000005e38bb in inherit_abstract_dies (die=0x1e43520, cu=0x1aef770)
at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13117
#17 0x00000000005e3e9f in read_func_scope (die=0x1e43520, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13245
#18 0x00000000005dc938 in process_die (die=0x1e43520, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
#19 0x00000000005e3e72 in read_func_scope (die=0x1e433e0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13240
#20 0x00000000005dc938 in process_die (die=0x1e433e0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
#21 0x00000000005de72a in read_file_scope (die=0x1cbf7e0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:11102
#22 0x00000000005dc8ca in process_die (die=0x1cbf7e0, cu=0x1aef770) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10113
#23 0x00000000005dc134 in process_full_comp_unit (cu=0x1aef770,
pretend_language=language_minimal) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:9883
#24 0x00000000005d96f9 in process_queue (per_objfile=0x1a7d1d0) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:9124
#25 0x00000000005c9181 in dw2_do_instantiate_symtab (per_cu=0x1ae7c20,
per_objfile=0x1a7d1d0, skip_partial=true) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:2401
#26 0x00000000005c923f in dw2_instantiate_symtab (per_cu=0x1ae7c20,
per_objfile=0x1a7d1d0, skip_partial=true) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:2424
#27 0x00000000005cc77e in dw2_expand_all_symtabs (objfile=0x1a953e0) at
/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:3712
#28 0x00000000008b9e44 in symbol_file_add_with_addrs (abfd=0x1a7c5a0,
name=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
add_flags=..., addrs=0x0, flags=..., parent=0x0) at
/home/vries/gdb_versions/devel/src/gdb/symfile.c:1112
#29 0x00000000008ba0e8 in symbol_file_add_from_bfd (abfd=0x1a7c5a0,
name=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
add_flags=..., addrs=0x0, flags=..., parent=0x0) at
/home/vries/gdb_versions/devel/src/gdb/symfile.c:1180
#30 0x00000000008ba142 in symbol_file_add (name=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
add_flags=..., addrs=0x0, flags=...) at
/home/vries/gdb_versions/devel/src/gdb/symfile.c:1193
#31 0x00000000008ba217 in symbol_file_add_main_1 (args=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
add_flags=..., flags=..., reloff=0) at
/home/vries/gdb_versions/devel/src/gdb/symfile.c:1216
#32 0x00000000008ba1ae in symbol_file_add_main (args=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
add_flags=...) at /home/vries/gdb_versions/devel/src/gdb/symfile.c:1207
#33 0x000000000074be59 in symbol_file_add_main_adapter (arg=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
from_tty=1) at /home/vries/gdb_versions/devel/src/gdb/main.c:480
#34 0x000000000074bdb5 in catch_command_errors (command=0x74be11
<symbol_file_add_main_adapter(char const*, int)>, arg=0x7fffffffe194
"/home/vries/patches/grouped/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug",
from_tty=1) at /home/vries/gdb_versions/devel/src/gdb/main.c:457
#35 0x000000000074cd98 in captured_main_1 (context=0x7fffffffdb20) at
/home/vries/gdb_versions/devel/src/gdb/main.c:1123
#36 0x000000000074d388 in captured_main (data=0x7fffffffdb20) at
/home/vries/gdb_versions/devel/src/gdb/main.c:1243
#37 0x000000000074d3f3 in gdb_main (args=0x7fffffffdb20) at
/home/vries/gdb_versions/devel/src/gdb/main.c:1268
#38 0x000000000041423e in main (argc=8, argv=0x7fffffffdc28) at
/home/vries/gdb_versions/devel/src/gdb/gdb.c:32
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/26231] [readnow] process_die_scope: Assertion !m_die->in_process
  2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-07-13 11:10 ` vries at gcc dot gnu.org
@ 2020-07-13 11:33 ` vries at gcc dot gnu.org
  2020-10-28 20:46 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-07-13 11:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
DIEs in bt, top to bottom:
...
(gdb) 
#23 0x00000000005dc134 in process_full_comp_unit (cu=0x1aef770, 
    pretend_language=language_minimal)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:9883
9883      process_die (cu->dies, cu);
(gdb) down
#22 0x00000000005dc8ca in process_die (die=0x1cbf7e0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10113
10113         read_file_scope (die, cu);
(gdb) p /x die.sect_off
$13 = 0x356c7
(gdb) down
#21 0x00000000005de72a in read_file_scope (die=0x1cbf7e0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:11102
11102             process_die (child_die, cu);
(gdb) p /x die.sect_off
$14 = 0x356c7
(gdb) down
#20 0x00000000005dc938 in process_die (die=0x1e433e0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
10126         read_func_scope (die, cu);
(gdb) p /x die.sect_off
$15 = 0x47562
(gdb) down
#19 0x00000000005e3e72 in read_func_scope (die=0x1e433e0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13240
13240               process_die (child_die, cu);
(gdb) p /x die.sect_off
$16 = 0x47562
(gdb) down
#18 0x00000000005dc938 in process_die (die=0x1e43520, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
10126         read_func_scope (die, cu);
(gdb) p /x die.sect_off
$17 = 0x4758c
(gdb) down
#17 0x00000000005e3e9f in read_func_scope (die=0x1e43520, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13245
13245     inherit_abstract_dies (die, cu);
(gdb) p /x die.sect_off
$18 = 0x4758c
(gdb) down
#16 0x00000000005e38bb in inherit_abstract_dies (die=0x1e43520, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13117
13117               process_die (origin_child_die, origin_cu);
(gdb) p /x die.sect_off
$19 = 0x4758c
(gdb) down
#15 0x00000000005dc938 in process_die (die=0x1e3e810, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
10126         read_func_scope (die, cu);
(gdb) p /x die.sect_off
$20 = 0x46b9a
(gdb) down
#14 0x00000000005e3e9f in read_func_scope (die=0x1e3e810, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13245
13245     inherit_abstract_dies (die, cu);
(gdb) p /x die.sect_off
$21 = 0x46b9a
(gdb) down
#13 0x00000000005e38bb in inherit_abstract_dies (die=0x1e3e810, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13117
13117               process_die (origin_child_die, origin_cu);
(gdb) p /x die.sect_off
$22 = 0x46b9a
(gdb) down
#12 0x00000000005dc938 in process_die (die=0x1e3e5c0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10126
10126         read_func_scope (die, cu);
(gdb) p /x die.sect_off
$23 = 0x46b4b
(gdb) down
#11 0x00000000005e3e72 in read_func_scope (die=0x1e3e5c0, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:13240
13240               process_die (child_die, cu);
(gdb) p /x die.sect_off
$24 = 0x46b4b
(gdb) down
#10 0x00000000005dc714 in process_die (die=0x1e3e810, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10105
10105     process_die_scope scope (die, cu);
(gdb) p /x die.sect_off
$25 = 0x46b9a
(gdb) down
#9  0x0000000000606b19 in process_die_scope::process_die_scope
(this=0x7fffffffca90, 
    die=0x1e3e810, cu=0x1aef770)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:10077
10077       gdb_assert (!m_die->in_process);
(gdb) p /x die.sect_off
$26 = 0x46b9a
...


So, we start at 0x356c7:
...
 <0><356c7>: Abbrev Number: 1 (DW_TAG_compile_unit)
    <356cd>   DW_AT_name        : ../../gcc/ada/atree.adb
...

Then to 0x47562:
...
 <1><47562>: Abbrev Number: 62 (DW_TAG_subprogram)
    <47563>   DW_AT_abstract_origin: <0x46678>
...

Then to 0x4758c:
...
 <2><4758c>: Abbrev Number: 115 (DW_TAG_subprogram)
    <4758d>   DW_AT_abstract_origin: <0x46b4b>
...

Then to 0x4758c:
...
 <3><46b9a>: Abbrev Number: 76 (DW_TAG_inlined_subroutine)
    <46b9b>   DW_AT_abstract_origin: <0x46678>
...

Then to 0x46b9a:
...
 <3><46b9a>: Abbrev Number: 76 (DW_TAG_inlined_subroutine)
    <46b9b>   DW_AT_abstract_origin: <0x46678>
...

Then to 0x46b4b:
...
 <2><46b4b>: Abbrev Number: 112 (DW_TAG_subprogram)
    <46b4c>   DW_AT_name        : atree__copy_separate_tree__copy_list
...

And then back to 0x46b9a.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug symtab/26231] [readnow] process_die_scope: Assertion !m_die->in_process
  2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-07-13 11:33 ` vries at gcc dot gnu.org
@ 2020-10-28 20:46 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2020-10-28 20:46 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26231

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Still reproduces with current trunk.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2020-10-28 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13  9:48 [Bug symtab/26231] New: [readnow] process_die_scope: Assertion !m_die->in_process vries at gcc dot gnu.org
2020-07-13  9:49 ` [Bug symtab/26231] " vries at gcc dot gnu.org
2020-07-13  9:51 ` vries at gcc dot gnu.org
2020-07-13 11:10 ` vries at gcc dot gnu.org
2020-07-13 11:33 ` vries at gcc dot gnu.org
2020-10-28 20:46 ` vries at gcc dot gnu.org

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