public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/26393] New: gdbtypes.h:526: internal-error: LONGEST dynamic_prop::const_val() const: Assertion `m_kind == PROP_CONST' failed. (dump_recursive_type)
@ 2020-08-15  8:26 vries at gcc dot gnu.org
  2020-08-16 15:55 ` [Bug gdb/26393] gdbtypes.h:526: internal-error: LONGEST dynamic_prop::const_val() const: Assertion `m_kind == PROP_CONST' failed. (recursive_dump_type) vries at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-08-15  8:26 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26393
           Summary: gdbtypes.h:526: internal-error: LONGEST
                    dynamic_prop::const_val() const: Assertion `m_kind ==
                    PROP_CONST' failed. (dump_recursive_type)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ As reported here: PR26390 comment 3 ]

When doing:
...
(gdb) recursive_dump_type (type, 0)
...
for a dynamic type, I run into an assert, due to this code:
...
                       plongest (type->bounds ()->high.const_val ()),
...
which accesses type->bounds ()->high assuming it has kind == PROP_CONST, while
in fact it has kind == PROP_LOCEXPR.

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

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

end of thread, other threads:[~2020-08-17  7:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-15  8:26 [Bug gdb/26393] New: gdbtypes.h:526: internal-error: LONGEST dynamic_prop::const_val() const: Assertion `m_kind == PROP_CONST' failed. (dump_recursive_type) vries at gcc dot gnu.org
2020-08-16 15:55 ` [Bug gdb/26393] gdbtypes.h:526: internal-error: LONGEST dynamic_prop::const_val() const: Assertion `m_kind == PROP_CONST' failed. (recursive_dump_type) vries at gcc dot gnu.org
2020-08-17  1:58 ` simark at simark dot ca
2020-08-17  7:54 ` cvs-commit at gcc dot gnu.org
2020-08-17  7:58 ` 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).