From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50547384CBB8; Fri, 15 Dec 2023 20:50:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50547384CBB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702673441; bh=gg+4Qc0+h+Rk02yCx+Yi/Xi/JvFJwYzcFOLxozCX8GU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qXeRqah2H6RGcZetuxKK9hUd0pm0PM27U6oeSDuQDOKZXNbR1L6oHTQScsM7mTUa+ AVKLRlhtI2yoNNDv1MYb338zYx3cZwg/KlL1cFCV/CKexXBAvUCsyie/FCZ2h2//c1 WwtyXFuDnrzYBWX3R/CEZQvJ43VuAyUi12M5fVII= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/18335] GDB Abort on "info program" in Python callback Date: Fri, 15 Dec 2023 20:50:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 14.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc resolution target_milestone bug_status 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=3D18335 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg Resolution|--- |FIXED Target Milestone|--- |14.1 Status|NEW |RESOLVED --- Comment #1 from Hannes Domani --- I can reproduce this abort in older gdb version, but from gdb-8.3.0 forward= I see these errors instead: ``` Reading symbols from gdb-13380.exe... (gdb) python def function(*a): gdb.execute('info program', to_string=3DTrue, from_tty=3DFalse) (gdb) python gdb.events.new_objfile.connect(function) (gdb) run Starting program: C:\src\tests\gdb-13380.exe Python Exception No selected thread.: Python Exception No selected thread.: Python Exception No selected thread.: Python Exception No selected thread.: Python Exception No selected thread.: [Inferior 1 (process 6096) exited normally] ``` And since the recently released gdb-14.1 all problems appear to be gone: ``` Reading symbols from gdb-13380.exe... (gdb) python def function(*a): gdb.execute('info program', to_string=3DTrue, from_tty=3DFalse) (gdb) python gdb.events.new_objfile.connect(function) (gdb) run Starting program: C:\src\tests\gdb-13380.exe [Inferior 1 (process 10288) exited normally] ``` So I'm going to close this. --=20 You are receiving this mail because: You are on the CC list for the bug.=