From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78DDE3858423; Wed, 5 Jul 2023 18:52:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78DDE3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688583160; bh=7suVItIiymqXTyiiyezBtLOYEbOo92WEZvX+Z1d8jiE=; h=From:To:Subject:Date:From; b=Z3eqkQ3+Jo8KDK73csHusgG3CFbsNCMgehUwTYz8vlDiy9ha9fTN0olp+X7E3pqa9 ZBjVbLfjkM1aetV5C5I1DMe0L7S9fCgdJlLJudIjo3KKL5If0HfoTmQdufgqbjvr7E 93qbuwPfMum9ukGfUZ/b86Tl813RHxoAPvIbrU8s= From: "jonah at kichwacoders dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/30618] New: warning: while parsing threads: not well-formed (invalid token) - in non-stop + remote mode Date: Wed, 05 Jul 2023 18:52:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jonah at kichwacoders 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: 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=3D30618 Bug ID: 30618 Summary: warning: while parsing threads: not well-formed (invalid token) - in non-stop + remote mode Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: remote Assignee: unassigned at sourceware dot org Reporter: jonah at kichwacoders dot com Target Milestone: --- Create an empty main method in a file containing unicode characters and com= pile it with gcc, start gdbserver and connect to it with gdb in non-stop mode and the connection sequence fails (full log below): (gdb) set non-stop on (gdb) target remote :3333 Remote debugging using :3333 warning: while parsing threads: not well-formed (invalid token) The target is not running (try extended-remote?) With remote debugging on this is the output (run in MI mode because the characters are escaped better): &" [remote] Sending packet: $QNonStop:1#8d\n" &" [remote] Packet received: OK\n" &" [remote] Sending packet: $qXfer:threads:read::0,1000#92\n" &" [remote] Packet received: l\\n\\n\= \n\n" &"warning: while parsing threads: not well-formed (invalid token)\n" &" [remote] Sending packet: $qTStatus#49\n" &" [remote] Packet received: T0;tnotrun:0;tframes:0;tcreated:0;tfree:500000;tsize:500000;circular:0;disc= onn:0;starttime:0;stoptime:0;username:;notes::\n" &" [remote] packet_ok: Packet qTStatus (trace-status) is supported\n" &" [remote] Sending packet: $qTfV#81\n" &" [remote] Packet received: 1:0:1:74726163655f74696d657374616d70\n" &" [remote] Sending packet: $qTsV#8e\n" &" [remote] Packet received: l\n" =3Dtsv-created,name=3D"trace_timestamp",initial=3D"0" &" [remote] Sending packet: $?#3f\n" &" [remote] Packet received: T0506:0000000000000000;07:90daffffff7f0000;10:b032fef7ff7f0000;thread:p1088= 3.10883;core:8;\n" &" [remote] Sending packet: $vStopped#55\n" &" [remote] Packet received: OK\n" &"[remote] start_remote_1: exit\n" Here is the source and versions I am using: $ cat src/integration-tests/test-programs/issue-275-=E6=B5=8B=E8=AF=95.c=20 int main(int argc, char *argv[]) { return 0; } $ gcc -o src/integration-tests/test-programs/issue-275-=E6=B5=8B=E8=AF=95 -g src/integration-tests/test-programs/issue-275-=E6=B5=8B=E8=AF=95.c $ gcc --version gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gdb --version GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. In case the encoding in bugzilla corrupt it, the =E6=B5=8B=E8=AF=95 is "tes= t" (https://translate.google.ca/?sl=3Dauto&tl=3Den&text=3D%E6%B5%8B%E8%AF%95&o= p=3Dtranslate) and is encoded in UTF-8 as \xe6\xb5\x8b\xe8\xaf\x95 or \346\265\213\350\257= \225 --=20 You are receiving this mail because: You are on the CC list for the bug.=