public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/31772] New: [gdb/symtab] read.c:5339: internal-error: queue_comp_unit: Assertion `per_objfile->queue.has_value ()' failed.
@ 2024-05-21 10:30 vries at gcc dot gnu.org
  2024-05-21 10:33 ` [Bug symtab/31772] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2024-05-21 10:30 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31772
           Summary: [gdb/symtab] read.c:5339: internal-error:
                    queue_comp_unit: Assertion
                    `per_objfile->queue.has_value ()' failed.
           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: ---

Say we patch the fission board like so:
...
diff --git a/gdb/testsuite/boards/fission.exp
b/gdb/testsuite/boards/fission.exp
index 496fece7991..1001900bfb7 100644
--- a/gdb/testsuite/boards/fission.exp
+++ b/gdb/testsuite/boards/fission.exp
@@ -30,12 +30,8 @@ set_board_info compiler "[find_gcc]"
 # Note: -ggnu-pubnames is required for Gold to build .gdb_index, and while
 # -gsplit-dwarf implies -ggnu-pubnames for gcc, it doesn't for clang.
 set_board_info debug_flags \
-    [join { "-gdwarf-4" \
-               "-gsplit-dwarf" \
-               "-ggnu-pubnames" \
-               "-fdebug-types-section" \
-               "-Wl,--gdb-index" \
-               "-fuse-ld=gold" }]
+    [join { "-gdwarf-5" \
+               "-gsplit-dwarf" }]

 # This is needed otherwise dejagnu tries to rsh to host "fission".
 load_board_description "local-board"
...

When running test-case gdb.ada/finish-var-size.exp with gcc-13 we run into:
...
(gdb) finish^M
Run till exit from #0  pck.get (value=true) at
/data/vries/gdb/binutils-gdb.git/gdb/testsuite/gdb.ada/finish-var-size/pck.adb:19^M
/data/vries/gdb/src/gdb/dwarf2/read.c:5339: internal-error: queue_comp_unit:
Assertion `per_objfile->queue.has_value ()' failed.^M
A problem internal to GDB has been detected,^M
further debugging may prove unreliable.^M
----- Backtrace -----^M
FAIL: gdb.ada/finish-var-size.exp: finish (GDB internal error)
...

Likewise in test-case gdb.ada/rec_ptype.exp.

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

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

end of thread, other threads:[~2024-05-21 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21 10:30 [Bug symtab/31772] New: [gdb/symtab] read.c:5339: internal-error: queue_comp_unit: Assertion `per_objfile->queue.has_value ()' failed vries at gcc dot gnu.org
2024-05-21 10:33 ` [Bug symtab/31772] " 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).