public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28016] New: Gdb crashes when attempting to print array
@ 2021-06-26 21:16 ravagava14 at gmail dot com
  2021-06-26 21:28 ` [Bug gdb/28016] Gdb crashes when attempting to print variable ravagava14 at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ravagava14 at gmail dot com @ 2021-06-26 21:16 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28016
           Summary: Gdb crashes when attempting to print array
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: ravagava14 at gmail dot com
  Target Milestone: ---

The following instruction makes gdb crash, (I'm debugging C++ code if that
matters)
>print (int (*)[]) some_variable

some_variable may be anything, even a constant.

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

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

* [Bug gdb/28016] Gdb crashes when attempting to print variable
  2021-06-26 21:16 [Bug gdb/28016] New: Gdb crashes when attempting to print array ravagava14 at gmail dot com
@ 2021-06-26 21:28 ` ravagava14 at gmail dot com
  2021-06-26 22:00 ` simark at simark dot ca
  2022-02-22 15:04 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ravagava14 at gmail dot com @ 2021-06-26 21:28 UTC (permalink / raw)
  To: gdb-prs

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

ravagava14 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Gdb crashes when attempting |Gdb crashes when attempting
                   |to print array              |to print variable

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

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

* [Bug gdb/28016] Gdb crashes when attempting to print variable
  2021-06-26 21:16 [Bug gdb/28016] New: Gdb crashes when attempting to print array ravagava14 at gmail dot com
  2021-06-26 21:28 ` [Bug gdb/28016] Gdb crashes when attempting to print variable ravagava14 at gmail dot com
@ 2021-06-26 22:00 ` simark at simark dot ca
  2022-02-22 15:04 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: simark at simark dot ca @ 2021-06-26 22:00 UTC (permalink / raw)
  To: gdb-prs

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

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at simark dot ca

--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
Can you please provide a complete minimal reproducer, with the source?

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

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

* [Bug gdb/28016] Gdb crashes when attempting to print variable
  2021-06-26 21:16 [Bug gdb/28016] New: Gdb crashes when attempting to print array ravagava14 at gmail dot com
  2021-06-26 21:28 ` [Bug gdb/28016] Gdb crashes when attempting to print variable ravagava14 at gmail dot com
  2021-06-26 22:00 ` simark at simark dot ca
@ 2022-02-22 15:04 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-02-22 15:04 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-02-22
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
                 CC|                            |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
I tried a constant and it worked ok

(gdb) print (int (*)[]) 23
$1 = (int (*)[]) 0x17

Marking this as waiting until we get more info.

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

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

end of thread, other threads:[~2022-02-22 15:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-26 21:16 [Bug gdb/28016] New: Gdb crashes when attempting to print array ravagava14 at gmail dot com
2021-06-26 21:28 ` [Bug gdb/28016] Gdb crashes when attempting to print variable ravagava14 at gmail dot com
2021-06-26 22:00 ` simark at simark dot ca
2022-02-22 15:04 ` tromey at sourceware dot 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).