public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*)
@ 2023-02-23 23:12 saemy at optumsoft dot com
  2023-02-23 23:12 ` [Bug gdb/30160] " saemy at optumsoft dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: saemy at optumsoft dot com @ 2023-02-23 23:12 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30160
           Summary: Assertion failure in dummy_frame_pop(frame_id,
                    thread_info*)
           Product: gdb
           Version: 11.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: saemy at optumsoft dot com
  Target Milestone: ---

Consider the following setup:

(a) Run some process; say with pid 1234
(b) Have the following file "my.gdbscript":
"""
define hook-stop
    call (int) printf("foo")
end
"""

The following then produces an assertion failure on gdb 11.1 and newer (while
working fine on 10.2):

```
$ gdb --init-command=my.gdbscript --pid=1234
[...]
dummy-frame.c:212: internal-error: void dummy_frame_pop(frame_id,
thread_info*): Assertion `dp != NULL' failed.
[...]
```

In the newer versions there seem to be two calls to `dummy_frame_pop()` for the
same frame_id when there is only one such call in the older versions.
I have added two backtraces to this bug;
(1) bt-both.txt contains the backtrace of the call that is there both in 10.2
and 11.1
(2) bt-new.txt contains the backtrace of the additional call that is only
around in 11.1 and newer.

Thank you for your help.

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

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

* [Bug gdb/30160] Assertion failure in dummy_frame_pop(frame_id, thread_info*)
  2023-02-23 23:12 [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*) saemy at optumsoft dot com
@ 2023-02-23 23:12 ` saemy at optumsoft dot com
  2023-02-23 23:13 ` saemy at optumsoft dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: saemy at optumsoft dot com @ 2023-02-23 23:12 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Sämy <saemy at optumsoft dot com> ---
Created attachment 14713
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14713&action=edit
my.gdbscript

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

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

* [Bug gdb/30160] Assertion failure in dummy_frame_pop(frame_id, thread_info*)
  2023-02-23 23:12 [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*) saemy at optumsoft dot com
  2023-02-23 23:12 ` [Bug gdb/30160] " saemy at optumsoft dot com
@ 2023-02-23 23:13 ` saemy at optumsoft dot com
  2023-02-23 23:13 ` saemy at optumsoft dot com
  2023-04-11  6:36 ` saemy at optumsoft dot com
  3 siblings, 0 replies; 5+ messages in thread
From: saemy at optumsoft dot com @ 2023-02-23 23:13 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Sämy <saemy at optumsoft dot com> ---
Created attachment 14715
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14715&action=edit
bt-both.txt

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

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

* [Bug gdb/30160] Assertion failure in dummy_frame_pop(frame_id, thread_info*)
  2023-02-23 23:12 [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*) saemy at optumsoft dot com
  2023-02-23 23:12 ` [Bug gdb/30160] " saemy at optumsoft dot com
  2023-02-23 23:13 ` saemy at optumsoft dot com
@ 2023-02-23 23:13 ` saemy at optumsoft dot com
  2023-04-11  6:36 ` saemy at optumsoft dot com
  3 siblings, 0 replies; 5+ messages in thread
From: saemy at optumsoft dot com @ 2023-02-23 23:13 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Sämy <saemy at optumsoft dot com> ---
Created attachment 14716
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14716&action=edit
bt-new.txt

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

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

* [Bug gdb/30160] Assertion failure in dummy_frame_pop(frame_id, thread_info*)
  2023-02-23 23:12 [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*) saemy at optumsoft dot com
                   ` (2 preceding siblings ...)
  2023-02-23 23:13 ` saemy at optumsoft dot com
@ 2023-04-11  6:36 ` saemy at optumsoft dot com
  3 siblings, 0 replies; 5+ messages in thread
From: saemy at optumsoft dot com @ 2023-04-11  6:36 UTC (permalink / raw)
  To: gdb-prs

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

Sämy <saemy at optumsoft dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|11.1                        |HEAD

--- Comment #4 from Sämy <saemy at optumsoft dot com> ---
This issue is first observed in version 11.1 but is still happening in the most
recent version.

-- 
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:[~2023-04-11  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 23:12 [Bug gdb/30160] New: Assertion failure in dummy_frame_pop(frame_id, thread_info*) saemy at optumsoft dot com
2023-02-23 23:12 ` [Bug gdb/30160] " saemy at optumsoft dot com
2023-02-23 23:13 ` saemy at optumsoft dot com
2023-02-23 23:13 ` saemy at optumsoft dot com
2023-04-11  6:36 ` saemy at optumsoft 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).