From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D992383F861; Fri, 4 Dec 2020 20:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D992383F861 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug server/27020] New: Stepping over a breakpoint over an exec syscall crashes GDBserver Date: Fri, 04 Dec 2020 20:37:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2020 20:37:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27020 Bug ID: 27020 Summary: Stepping over a breakpoint over an exec syscall crashes GDBserver Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: server Assignee: unassigned at sourceware dot org Reporter: simark at simark dot ca Target Milestone: --- Running the (soon to be merged, proposed here [1]) gdb.threads/step-over-exec.exp results in failures with the native-extended-gdbserver board. To reproduce manually, I run gdbserver with: $ ../gdbserver/gdbserver --once :1235 ./testsuite/outputs/gdb.threads/step-over-exec/step-over-exec-execr-thread-= leader-diff-text-segs-false and GDB with: $ ./gdb -iex "set confirm off" -iex "set pagination off" -nx --data-directory=3Ddata-directory ./testsuite/outputs/gdb.threads/step-over-exec/step-over-exec-execr-thread-= leader-diff-text-segs-false -ex "set sysroot /" -ex "tar ext :1235" -ex "b main" -ex c -ex "b my_execve_syscall if 0" -ex c GDBserver then prints: Leader going in exec. Exec-ing ./testsuite/outputs/gdb.threads/step-over-exec/step-over-exec-execr-thread-= leader-diff-text-segs-false-execd /home/smarchi/src/binutils-gdb/gdbserver/linux-low.cc:3665: A problem inter= nal to GDBserver has been detected. ptid_t linux_process_target::wait_1(ptid_t, target_waitstatus*, target_wait_flags): Assertion `step_over_bkpt =3D=3D null_ptid' failed. [1] https://sourceware.org/pipermail/gdb-patches/2020-December/173681.html --=20 You are receiving this mail because: You are on the CC list for the bug.=