From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBD333858C62; Wed, 3 Jan 2024 14:16:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBD333858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704291368; bh=ifU3DhvqNKI9tpk8z8tud0zqQUBiwBegobZxlOl14hg=; h=From:To:Subject:Date:From; b=X+9+RseoZafbT0PfwFf9GNQ+wzSpXKBL+5F7fCXaiZNd5ApRSiT7hze/Nxqqwy8vW OoO8reVNPyx3edekD2ShTGLDmWbL6g+//i4l8+FAzImUDIw7lCkIP5oU95CXkq33it M1U9kDVUBhdhx5Y9QK/HmjsVZY6uhCDWdVF+tXHg= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31209] New: [gdb, delete checkpoint] inferior.c:406: internal-error: find_inferior_pid: Assertion `pid != 0' failed. Date: Wed, 03 Jan 2024 14:16:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 15.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31209 Bug ID: 31209 Summary: [gdb, delete checkpoint] inferior.c:406: internal-error: find_inferior_pid: Assertion `pid !=3D 0' failed. Product: gdb Version: 15.1 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- I played around with checkpoints on a hello world exec, and ran into an assertion failure: ... $ gdb -q -batch a.out -ex "set trace-commands on" -x gdb.in +start Temporary breakpoint 1 at 0x4101b0: file hello.c, line 6. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Temporary breakpoint 1, main () at hello.c:6 6 printf ("hello\n"); +checkpoint +next hello 8 return 0; +restart 1 Switching to Thread 0xfffff7ffed80 (LWP 1325214) #0 main () at hello.c:6 6 printf ("hello\n"); +delete checkpoint 0 /home/vries/gdb/src/gdb/inferior.c:406: internal-error: find_inferior_pid: Assertion `pid !=3D 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x57f597 gdb_internal_backtrace_1 /home/vries/gdb/src/gdb/bt-utils.c:122 0x57f65b _Z22gdb_internal_backtracev /home/vries/gdb/src/gdb/bt-utils.c:168 0xb7c463 internal_vproblem /home/vries/gdb/src/gdb/utils.c:396 0xb7c87f _Z15internal_verrorPKciS0_St9__va_list /home/vries/gdb/src/gdb/utils.c:476 0xdbfcff _Z18internal_error_locPKciS0_z /home/vries/gdb/src/gdbsupport/errors.cc:58 0x804863 _Z17find_inferior_pidP22process_stratum_targeti /home/vries/gdb/src/gdb/inferior.c:406 0x804917 _Z18find_inferior_ptidP22process_stratum_target6ptid_t /home/vries/gdb/src/gdb/inferior.c:420 0x9269bf _ZN22process_stratum_target11find_threadE6ptid_t /home/vries/gdb/src/gdb/process-stratum-target.c:191 0x85756b delete_checkpoint_command /home/vries/gdb/src/gdb/linux-fork.c:544 0x5d288b do_simple_func /home/vries/gdb/src/gdb/cli/cli-decode.c:95 0x5d7c1b _Z8cmd_funcP16cmd_list_elementPKci /home/vries/gdb/src/gdb/cli/cli-decode.c:2735 0xadf8df _Z15execute_commandPKci /home/vries/gdb/src/gdb/top.c:575 0x763493 _Z15command_handlerPKc /home/vries/gdb/src/gdb/event-top.c:566 0xadef97 _Z17read_command_fileP8_IO_FILE /home/vries/gdb/src/gdb/top.c:342 0x5e66cf _Z16script_from_fileP8_IO_FILEPKc /home/vries/gdb/src/gdb/cli/cli-script.c:1642 0x5c9cc3 source_script_from_stream /home/vries/gdb/src/gdb/cli/cli-cmds.c:730 0x5c9ddf source_script_with_search /home/vries/gdb/src/gdb/cli/cli-cmds.c:775 0x5c9e4b _Z13source_scriptPKci /home/vries/gdb/src/gdb/cli/cli-cmds.c:784 0x893ea3 catch_command_errors /home/vries/gdb/src/gdb/main.c:514 0x894083 execute_cmdargs /home/vries/gdb/src/gdb/main.c:610 0x8956c3 captured_main_1 /home/vries/gdb/src/gdb/main.c:1312 0x895883 captured_main /home/vries/gdb/src/gdb/main.c:1333 0x89590b _Z8gdb_mainP18captured_main_args /home/vries/gdb/src/gdb/main.c:1362 0x4239b3 main /home/vries/gdb/src/gdb/gdb.c:39 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=