public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jonah at kichwacoders dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-30618-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=30618

            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 compile
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<threads>\\n<thread id=\"p10883.10883\"
core=\"8\" name=\"issue-275-\\346\\265\\213\\350\\257\"/>\\n</threads>\\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;disconn: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"
=tsv-created,name="trace_timestamp",initial="0"
&"  [remote] Sending packet: $?#3f\n"
&"  [remote] Packet received:
T0506:0000000000000000;07:90daffffff7f0000;10:b032fef7ff7f0000;thread:p10883.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-测试.c 
int main(int argc, char *argv[])
{
    return 0;
}
$ gcc -o src/integration-tests/test-programs/issue-275-测试 -g
src/integration-tests/test-programs/issue-275-测试.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 <http://gnu.org/licenses/gpl.html>
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 测试 is "test"
(https://translate.google.ca/?sl=auto&tl=en&text=%E6%B5%8B%E8%AF%95&op=translate)
and is encoded in UTF-8 as \xe6\xb5\x8b\xe8\xaf\x95 or \346\265\213\350\257\225

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2023-07-05 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05 18:52 jonah at kichwacoders dot com [this message]
2023-07-06 22:22 ` [Bug remote/30618] " tromey at sourceware dot org
2023-07-13 16:20 ` tromey at sourceware dot org
2023-07-13 21:26 ` tromey at sourceware dot org
2023-07-17 20:48 ` tromey at sourceware dot org
2023-07-19 17:40 ` jonah at kichwacoders dot com
2023-11-14 16:14 ` cvs-commit at gcc dot gnu.org
2023-11-15 13:53 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30618-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).