public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31128] New: gdb crashes when trying to print a global variable stub without a running inferior
@ 2023-12-08 18:03 ssbssa at sourceware dot org
  2023-12-08 18:08 ` [Bug c++/31128] " cvs-commit at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ssbssa at sourceware dot org @ 2023-12-08 18:03 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31128
           Summary: gdb crashes when trying to print a global variable
                    stub without a running inferior
           Product: gdb
           Version: 14.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: ssbssa at sourceware dot org
  Target Milestone: ---

It can be reproduced with this source:
```
struct S
{
  S (int);
  virtual ~S ();

  int m_i;
};

S s (5);

int main ()
{
  return 0;
}
```

And then just debugging the compiled object file:
```
$ g++ -g -c print-global-stub.cc
$ gdb -q print-global-stub.o
Reading symbols from print-global-stub.o...
(gdb) p s

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
```

-- 
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:[~2024-03-29  8:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 18:03 [Bug c++/31128] New: gdb crashes when trying to print a global variable stub without a running inferior ssbssa at sourceware dot org
2023-12-08 18:08 ` [Bug c++/31128] " cvs-commit at gcc dot gnu.org
2023-12-08 18:10 ` cvs-commit at gcc dot gnu.org
2023-12-08 18:11 ` ssbssa at sourceware dot org
2024-01-10 14:54 ` ssbssa at sourceware dot org
2024-03-29  8:00 ` wingo at igalia dot com

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