From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BE6A3886C62; Wed, 2 Jun 2021 13:28:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BE6A3886C62 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug remote/27927] gdb crash with OpenOCD Date: Wed, 02 Jun 2021 13:28:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW 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_status cf_reconfirmed_on everconfirmed 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2021 13:28:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27927 Simon Marchi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2021-06-02 Ever confirmed|0 |1 --- Comment #12 from Simon Marchi --- 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 need= ed 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-tagg= ing+;xmlRegisters=3Di386#77 [remote] Received Ack [remote] Packet received: PacketSize=3D4000;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:=20 [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\n\n\narm\n\n\n\n\n\n [3430 bytes omitted] [remote] Sending packet: $qTStatus#49 [remote] Packet received:=20 [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\n\nName: Kernel's Stat Task, State: Delay, Priority: 6\nName: Wi-SUN MAC, State: Pend, Priority: 31\nName: Wi-SUN Timer Task, State: Pend, Priority: 10\nName: Wi-SUN Event Loop Task, State: Pend, Priority: 12\nName: Wi-SUN RF Task, State: Pend, Priority: 9\n\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 !=3D NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n)=20 And the backtrace: #9 0x000055c505df2fe6 in internal_error (file=3D0x55c5065a3840 "/home/simark/src/binutils-gdb/gdb/thread.c", line=3D1345, fmt=3D0x55c5065a= 3220 "%s: Assertion `%s' failed.") at /home/simark/src/binutils-gdb/gdbsupport/errors.cc:55 #10 0x000055c504a24f70 in switch_to_thread (thr=3D0x0) at /home/simark/src/binutils-gdb/gdb/thread.c:1345 #11 0x000055c50460c4d2 in remote_target::start_remote (this=3D0x61700003370= 0, from_tty=3D1, extended_p=3D1) at /home/simark/src/binutils-gdb/gdb/remote.c= :4860 #12 0x000055c50460ffe8 in remote_target::open_1 (name=3D0x60200007c338 ":33= 33", from_tty=3D1, extended_p=3D1) at /home/simark/src/binutils-gdb/gdb/remote.c= :5771 #13 0x000055c50460ce9d in extended_remote_target::open (name=3D0x60200007c3= 38 ":3333", from_tty=3D1) at /home/simark/src/binutils-gdb/gdb/remote.c:5004 #14 0x000055c5049c59fa in open_target (args=3D0x60200007c338 ":3333", from_= tty=3D1, command=3D0x611000065300) at /home/simark/src/binutils-gdb/gdb/target.c:847 --=20 You are receiving this mail because: You are on the CC list for the bug.=