public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug remote/27927] gdb crash with OpenOCD Date: Wed, 02 Jun 2021 13:28:54 +0000 [thread overview] Message-ID: <bug-27927-4717-hIe6MpU3JP@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27927-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27927 Simon Marchi <simark at simark dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2021-06-02 Ever confirmed|0 |1 --- Comment #12 from Simon Marchi <simark at simark dot ca> --- Thanks for the instructions, I can reproduce. I guess we don't have the same netcat (mine is GNU netcat 0.7.1), as I needed to use "nc -l -p 3333", without the -p I think the "3333" is interpreted as a hostname. However, I was able to reproduce by piping the file (<) in netcat. This is the output of "set debug remote 1": (gdb) tar ext :3333 Remote debugging using :3333 [remote] start_remote: enter [remote] Sending packet: $qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+;memory-tagging+;xmlRegisters=i386#77 [remote] Received Ack [remote] Packet received: PacketSize=4000;qXfer:memory-map:read+;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+;vContSupported+ [remote] packet_ok: Packet qSupported (supported-packets) is supported [remote] Sending packet: $vMustReplyEmpty#3a [remote] Received Ack [remote] Packet received: [remote] Sending packet: $QStartNoAckMode#b0 [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $!#21 [remote] Packet received: OK [remote] Sending packet: $Hg0#df [remote] Packet received: OK [remote] Sending packet: $qXfer:features:read:target.xml:0,1000#0c [remote] Packet received: l<?xml version="1.0"?>\n<!DOCTYPE target SYSTEM "gdb-target.dtd">\n<target version="1.0">\n<architecture>arm</architecture>\n<feature name="org.gnu.gdb.arm.m-profile">\n<reg name="r0" bitsize="32" regnum="0" save-restore="yes" type="int" group="general"/>\n<reg name="r1" bitsize="32" regnum="1" save-restore="yes" type="int" group="general"/>\n<reg name="r2" bitsize="32" regnum="2" save-restore="yes" type="int" group="general"/>\n<reg name="r3" bitsize="32" regnum="3" save-restore="yes" type="int" group="general"/>\n [3430 bytes omitted] [remote] Sending packet: $qTStatus#49 [remote] Packet received: [remote] packet_ok: Packet qTStatus (trace-status) is NOT supported [remote] Sending packet: $?#3f [remote] Packet received: S02 [remote] Sending packet: $qXfer:threads:read::0,1000#92 [remote] Packet received: l<?xml version="1.0"?>\n<threads>\n<thread id="1">Name: Kernel's Stat Task, State: Delay, Priority: 6</thread>\n<thread id="2">Name: Wi-SUN MAC, State: Pend, Priority: 31</thread>\n<thread id="3">Name: Wi-SUN Timer Task, State: Pend, Priority: 10</thread>\n<thread id="4">Name: Wi-SUN Event Loop Task, State: Pend, Priority: 12</thread>\n<thread id="5">Name: Wi-SUN RF Task, State: Pend, Priority: 9</thread>\n</threads>\n [remote] Sending packet: $qAttached#8f [remote] Packet received: 1 [remote] packet_ok: Packet qAttached (query-attached) is supported warning: No executable has been specified and target does not support determining executable automatically. Try using the "file" command. [remote] Sending packet: $Hc-1#09 [remote] Packet received: OK [remote] Sending packet: $qC#b4 [remote] Packet received: QC0000000000000000 /home/simark/src/binutils-gdb/gdb/thread.c:1345: internal-error: void switch_to_thread(thread_info*): Assertion `thr != NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) And the backtrace: #9 0x000055c505df2fe6 in internal_error (file=0x55c5065a3840 "/home/simark/src/binutils-gdb/gdb/thread.c", line=1345, fmt=0x55c5065a3220 "%s: Assertion `%s' failed.") at /home/simark/src/binutils-gdb/gdbsupport/errors.cc:55 #10 0x000055c504a24f70 in switch_to_thread (thr=0x0) at /home/simark/src/binutils-gdb/gdb/thread.c:1345 #11 0x000055c50460c4d2 in remote_target::start_remote (this=0x617000033700, from_tty=1, extended_p=1) at /home/simark/src/binutils-gdb/gdb/remote.c:4860 #12 0x000055c50460ffe8 in remote_target::open_1 (name=0x60200007c338 ":3333", from_tty=1, extended_p=1) at /home/simark/src/binutils-gdb/gdb/remote.c:5771 #13 0x000055c50460ce9d in extended_remote_target::open (name=0x60200007c338 ":3333", from_tty=1) at /home/simark/src/binutils-gdb/gdb/remote.c:5004 #14 0x000055c5049c59fa in open_target (args=0x60200007c338 ":3333", from_tty=1, command=0x611000065300) at /home/simark/src/binutils-gdb/gdb/target.c:847 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-06-02 13:28 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-28 12:47 [Bug remote/27927] New: " jerome.pouiller at gmail dot com 2021-05-28 12:49 ` [Bug remote/27927] " jerome.pouiller at gmail dot com 2021-05-28 12:52 ` jerome.pouiller at gmail dot com 2021-05-28 13:40 ` simark at simark dot ca 2021-06-01 8:14 ` jerome.pouiller at gmail dot com 2021-06-01 8:21 ` jerome.pouiller at gmail dot com 2021-06-01 8:23 ` jerome.pouiller at gmail dot com 2021-06-01 13:43 ` simark at simark dot ca 2021-06-01 13:44 ` simark at simark dot ca 2021-06-02 6:22 ` alucca388 at gmail dot com 2021-06-02 7:06 ` jerome.pouiller at gmail dot com 2021-06-02 7:26 ` jerome.pouiller at gmail dot com 2021-06-02 7:29 ` jerome.pouiller at gmail dot com 2021-06-02 13:28 ` simark at simark dot ca [this message] 2021-11-06 9:04 ` fredrik.hederstierna@securitas-direct.com 2022-06-29 13:43 ` robertjenssen at ozemail dot com.au 2023-01-17 16:28 ` tromey at sourceware dot org 2023-02-09 14:40 ` jerome.pouiller at gmail dot com 2023-02-09 14:43 ` jerome.pouiller at gmail dot com 2023-02-09 21:45 ` 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-27927-4717-hIe6MpU3JP@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: linkBe 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).