From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CFB63858D28; Thu, 31 Aug 2023 16:22:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CFB63858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693498979; bh=80W1thlIUpecBLKo0I+ePkg+P2NGKkpIv4I1rVYKx3M=; h=From:To:Subject:Date:From; b=b+YOL0T2L7Gf3EI/Lxsw8iWO67wTcQ9fHB2ihf3dC0Fcn5o85HF4u08oqxtRDUUd8 SgArnD9H9lOxg9gOhyw1sbTETqPkJ/vH/EoED0+eTL2PGwDD1QSP+ZHk1RRHIyaBDq 5GTEIHd7oSLIkN+t+stpggpK1jSAdb/ZxsxV4Vvs= From: "gdb-ml at jaeckel dot eu" To: gdb-prs@sourceware.org Subject: [Bug server/30815] New: gdbserver prints debug info unconditionally to stderr Date: Thu, 31 Aug 2023 16:22:58 +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: gdb-ml at jaeckel dot eu 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created 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=3D30815 Bug ID: 30815 Summary: gdbserver prints debug info unconditionally to stderr Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: server Assignee: unassigned at sourceware dot org Reporter: gdb-ml at jaeckel dot eu Target Milestone: --- Created attachment 15097 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15097&action=3Ded= it A WIP patch to approach the issue. When debugging an ncurses application that is using other background processes/threads (like e.g. `profanity` https://profanity-im.github.io/), `gdbserver` prints `Detaching from process XYZ` directly to stderr after `profanity` started one of those processes. This leads to the ncurses window being modified and those debug statements being printed somewhere on the screen. Reproducing is possible with e.g. profanity. 1. start profanity in gdbserver ``` $ gdbserver localhost:1234 profanity ``` 2. connect to said gdbserver instance in another terminal ``` $ gdb -ex "target remote localhost:1234" -ex continue ``` 3. connect with profanity to an xmpp server ``` /connect ``` Now you will see multiple `Detaching from process XYZ` messages throughout = the window. I've been able to reproduce some artifacts with `irssi` as well, but it's n= ot that obvious as with `profanity`. The patchfile that I've attached solves my initial problem, those messages aren't printed in the debugged window anymore. Still the patch is not compl= ete as described in the commit message and I didn't want to invest more time be= fore I've got the OK that this could be an acceptable solution. --=20 You are receiving this mail because: You are on the CC list for the bug.=