public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/27265] New: gdbtypes.c:3429: internal-error: type* init_complex_type(const char*, type*): Assertion `target_type->code () == TYPE_CODE_INT || target_type->code () == TYPE_CODE_FLT' failed.
@ 2021-01-28  8:48 vries at gcc dot gnu.org
  2021-01-28  8:54 ` [Bug exp/27265] " vries at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: vries at gcc dot gnu.org @ 2021-01-28  8:48 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27265
           Summary: gdbtypes.c:3429: internal-error: type*
                    init_complex_type(const char*, type*): Assertion
                    `target_type->code () == TYPE_CODE_INT ||
                    target_type->code () == TYPE_CODE_FLT' failed.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

...
$ gcc ~/hello.c
$ gdb -batch a.out -ex start -ex 'p $rip - 5i'
Temporary breakpoint 1 at 0x40050b

Temporary breakpoint 1, 0x000000000040050b in main ()
src/gdb/gdbtypes.c:3429: internal-error: type* init_complex_type(const char*,
type*): Assertion `target_type->code () == TYPE_CODE_INT || target_type->code
() == TYPE_CODE_FLT' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
...

The assert expects int or float, but instead we have pointer:
...
(gdb) p target_type->code ()
$1 = TYPE_CODE_PTR
...

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

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

end of thread, other threads:[~2021-02-05  9:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28  8:48 [Bug exp/27265] New: gdbtypes.c:3429: internal-error: type* init_complex_type(const char*, type*): Assertion `target_type->code () == TYPE_CODE_INT || target_type->code () == TYPE_CODE_FLT' failed vries at gcc dot gnu.org
2021-01-28  8:54 ` [Bug exp/27265] " vries at gcc dot gnu.org
2021-01-28 10:04 ` vries at gcc dot gnu.org
2021-01-28 11:05 ` vries at gcc dot gnu.org
2021-01-28 11:09 ` vries at gcc dot gnu.org
2021-01-28 11:26 ` vries at gcc dot gnu.org
2021-01-28 11:28 ` vries at gcc dot gnu.org
2021-01-28 12:50 ` vries at gcc dot gnu.org
2021-01-28 13:07 ` vries at gcc dot gnu.org
2021-02-05  9:56 ` cvs-commit at gcc dot gnu.org
2021-02-05  9: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).