public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31727] New: -exec-next fails in mingw (infrun.c:2794: internal-error: resume_1: Assertion `pc_in_thread_step_range (pc, tp)' failed)
@ 2024-05-10 15:50 dmitry.neverov at jetbrains dot com
  2024-05-10 17:41 ` [Bug gdb/31727] " dmitry.neverov at jetbrains dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: dmitry.neverov at jetbrains dot com @ 2024-05-10 15:50 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31727
           Summary: -exec-next fails in mingw (infrun.c:2794:
                    internal-error: resume_1: Assertion
                    `pc_in_thread_step_range (pc, tp)' failed)
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dmitry.neverov at jetbrains dot com
  Target Milestone: ---

I'm debugging the same binary in gdb 13.2, 14.1, 14.2 and HEAD.
I add a breakpoint and when it is reached, issue the -exec-next command.
The command works fine in 13.2, but fails in 14.1, 14.2, and HEAD.

In 14.x it fails with the error from the summary:

>47-exec-next --thread 2
<^done
<(gdb)
<47^running
<*running,thread-id="all"
<(gdb)
<~"../../gdb-14.1/gdb/infrun.c:2794: internal-error: resume_1: Assertion
`pc_in_thread_step_range (pc, tp)' failed.\nA problem internal to GDB has been
detected,\nfurther debugging may prove unreliable."
<~"\nQuit this debugging session? "
<~"(y or n) [answered Y; input not from terminal]\n"
<&"\nThis is a bug, please report it."
<&"  For instructions, see:\n"
<&"<https://www.gnu.org/software/gdb/bugs/>.\n\n"
<~"../../gdb-14.1/gdb/infrun.c:2794: internal-error: resume_1: Assertion
`pc_in_thread_step_range (pc, tp)' failed.\nA problem internal to GDB has been
detected,\nfurther debugging may prove unreliable."
<~"\nCreate a core file of GDB? "
<~"(y or n) [answered Y; input not from terminal]\n"

If I run 'info line' before -exec-next, in 13.2 it outputs:

(gdb) info line
Line 106 of "../../Samples/Games/TP/Source/TP_5_3_2\TP_5_3_2Character.cpp"
starts at address 0x17ad3dac <ATP_5_3_2Character::Move(FInputActionValue
const&)+268> and ends at 0x17ad3dc8 <ATP_5_3_2Character::Move(FInputActionValue
const&)+296>.

In gdb 14.x and HEAD:

(gdb) info line
warning: (Internal error: pc 0x800cffe in read in CU, but not in symtab.)
warning: (Error: pc 0x800cffe in address map, but not in symtab.)
Line 106 of "../../Samples/Games/TP/Source/TP_5_3_2\TP_5_3_2Character.cpp"
starts at address 0x17ad3dac <ATP_5_3_2Character::Move(FInputActionValue
const&)+268> and ends at 0x800cffe.

In HEAD -exec-next fails a little bit differently:

>47-exec-next --thread 2
<^done
<(gdb)
<47^running
<*running,thread-id="all"
<47^error,msg="Protocol error: QThreadEvents (thread-events) conflicting
enabled responses."
<(gdb)

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

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

end of thread, other threads:[~2024-06-07 21:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 15:50 [Bug gdb/31727] New: -exec-next fails in mingw (infrun.c:2794: internal-error: resume_1: Assertion `pc_in_thread_step_range (pc, tp)' failed) dmitry.neverov at jetbrains dot com
2024-05-10 17:41 ` [Bug gdb/31727] " dmitry.neverov at jetbrains dot com
2024-05-18 11:24 ` ssbssa at sourceware dot org
2024-05-21 14:19 ` dmitry.neverov at jetbrains dot com
2024-05-21 16:38 ` simon.marchi at polymtl dot ca
2024-05-22 13:42 ` dmitry.neverov at jetbrains dot com
2024-05-22 13:42 ` dmitry.neverov at jetbrains dot com
2024-05-22 13:43 ` dmitry.neverov at jetbrains dot com
2024-05-24  8:42 ` dmitry.neverov at jetbrains dot com
2024-05-24 15:47 ` tromey at sourceware dot org
2024-05-26 16:08 ` dmitry.neverov at jetbrains dot com
2024-05-28 18:24 ` tromey at sourceware dot org
2024-05-28 18:46 ` tromey at sourceware dot org
2024-05-28 19:02 ` tromey at sourceware dot org
2024-06-05  8:51 ` dmitry.neverov at jetbrains dot com
2024-06-05  9:35 ` dmitry.neverov at jetbrains dot com
2024-06-05 18:25 ` tromey at sourceware dot org
2024-06-06  7:10 ` dmitry.neverov at jetbrains dot com
2024-06-07 21:37 ` 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).