[Bug gdb/25175] New: Removing a checkpoint triggers assert in gdb

hi-angel at yandex dot ru sourceware-bugzilla@sourceware.org
Fri Nov 8 14:25:00 GMT 2019


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

            Bug ID: 25175
           Summary: Removing a checkpoint triggers assert in gdb
           Product: gdb
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: hi-angel at yandex dot ru
  Target Milestone: ---

# Steps to reproduce (in terms of terminal commands)

    $ cat test.cpp
    int main() {}
    $ g++ test.cpp -o a -g3
    $ gdb ./a
    Reading symbols from ./a...
    gdb λ br main
    Breakpoint 1 at 0x111d: file test.cpp, line 1.
    gdb λ r
    Starting program: /tmp/a

    Breakpoint 1, main () at test.cpp:1
    1       int main() {}
    gdb λ check
    checkpoint 1: fork returned pid 574371.
    gdb λ restart 1
    Switching to process 574371
    #0  main () at test.cpp:1
    1       int main() {}
    gdb λ info checkpoints
      0 process 574356 (main process) at 0x55555555511d, file test.cpp, line 1
    * 1 process 574371 at 0x55555555511d, file test.cpp, line 1
    gdb λ del checkpoint 0
    Killed process 574356
    inferior.c:287: internal-error: inferior* find_inferior_pid(int): Assertion
`pid != 0' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n) n

    This is a bug, please report it.  For instructions, see:
    <http://www.gnu.org/software/gdb/bugs/>.

    inferior.c:287: internal-error: inferior* find_inferior_pid(int): Assertion
`pid != 0' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Create a core file of GDB? (y or n) n
    Command aborted.

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


More information about the Gdb-prs mailing list