From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED7893858C60; Sun, 28 Jan 2024 01:09:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED7893858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706404144; bh=6jlD1/hHRZh54BwKP3zq6T7BsvdKfZ+OwN+9YcrXrMM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kxPLesqL6yKlAFu+gG+LRwlbYfi8yt29ZIX1bzvJl918B3m7U19grz5sBYHQFfwuc 2eiwWxGSFruyE2hFUD0nVRDoLfGZAO0oGHVFC1uMQNiRpN8O6JyDYRZNaFz0LooQUy fVWTvL4JPft82Jp0ilauvWJeA2XNvHUTD1zoUm7g= From: "grazfather at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/31303] attach calls python hooks which can crash gdb Date: Sun, 28 Jan 2024 01:08:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: grazfather at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: Message-ID: In-Reply-To: References: 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=3D31303 --- Comment #1 from grazfather at gmail dot com --- I can reproduce with `gdbserver` root@bc1eb47da197:~/gef# gdbserver --multi localhost:1234 & [1] 1314 root@bc1eb47da197:~/gef# Listening on port 1234 root@bc1eb47da197:~/gef# /bin/cat & [2] 1316 root@bc1eb47da197:~/gef# gdb -q --nx --ex "source hook_attach.py" --ex "tar= ext localhost:1234" --ex "attach 1316" attaching Remote debugging using localhost:1234 Remote debugging from host 127.0.0.1, port 35800 Attaching to process 1316 Attached; pid =3D 1316 called /build/gdb-n1n9Yr/gdb-12.1/gdb/thread.c:85: internal-error: inferior_thread: Assertion `current_thread_ !=3D nullptr' failed. A problem internal to GDB has been detected, --=20 You are receiving this mail because: You are on the CC list for the bug.=