cortex-debug icon indicating copy to clipboard operation
cortex-debug copied to clipboard

gdb-server program client error Error: read ECONNRESET

Open zihlmalb opened this issue 2 years ago • 1 comments

I'm using this plugin in an educational environment with many many intallations on Windows, MAC and Linux together with xpack-openocd and a st32 nucleo board. For many semesters I had no problem (so many thanks for this). In the last fall and now I had/have one student with a non working setup on Windows an following problem:

  • All Paths are well set.
  • Starting openocd and remote gdb session on console on console works.
  • OS: Windows
  • xpack-openocd version 0.11.0-3 and 0.12.0-2. Both don't work.
  • vscode: 1.87.1
  • I'm not able to reproduce it on my linux installation nor have other students problems with the same setup.
  • Both gdb and openocd seem to be started but operation exits with following message:
"gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "C:\\Users\\#####\\OneDrive\\Dokumente\\Studium\\Semester 4\\McGl\\Assembler\\übungen\\mc1_UbgAsm2" -f "c:/Users/####/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f ./st_nucleo_f0.cfg
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-12-07-17:33)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDLiveWatchSetup
WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
srst_only separate srst_nogate srst_open_drain connect_deassert_srst

Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V2J33M25 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.253193
[2024-03-08T14:38:56.018Z] SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET
[2024-03-08T14:38:56.020Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

zihlmalb avatar Mar 11 '24 14:03 zihlmalb

The problem has been solved. Whitespaces or mutated (ü,ä,ö) vowels in path information can not be handled correctly. After removing "ü" and whitespaces from the directory names it works perfectly. Maybe this should be fixed eventually?

zihlmalb avatar Mar 13 '24 08:03 zihlmalb