ttyd icon indicating copy to clipboard operation
ttyd copied to clipboard

Windows, crashes on connect.

Open BiatuAutMiahn opened this issue 1 year ago • 1 comments

Hello, steps are simple, download 1.7.7-40e79c7 from the releases page for win32, and run ttyd.win32.exe cmd.exe and as soon as you try to connect it crashes/exits without warning. No debug flags work.

PS C:\Users\Biatu\Downloads> .\ttyd.win32.exe cmd.exe
[2024/12/27 14:54:07:1448] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.3.3-unknown)
[2024/12/27 14:54:07:1500] N: tty configuration:
[2024/12/27 14:54:07:1530] N:   start command: cmd.exe
[2024/12/27 14:54:07:1564] N:   close signal: SIGHUP (1)
[2024/12/27 14:54:07:1596] N:   terminal type: xterm-256color
[2024/12/27 14:54:07:1640] N: The --writable option is not set, will start in readonly mode
[2024/12/27 14:54:07:1701] N: lws_create_context: LWS: 4.3.3-unknown, MbedTLS-2.28.5 NET SRV H1 H2 WS ConMon IPV6-off
[2024/12/27 14:54:07:1837] N: elops_init_pt_uv:  Using foreign event loop...
[2024/12/27 14:54:07:1897] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/12/27 14:54:07:2006] N: __lws_lc_tag:  ++ [vh|0|default||7681] (1)
[2024/12/27 14:54:07:2059] N: [vh|0|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2024/12/27 14:54:07:2122] N: __lws_lc_tag:  ++ [wsi|1|listen|default||7681] (2)
[2024/12/27 14:54:07:2172] N:  Listening on port: 7681
[2024/12/27 14:54:16:5247] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2024/12/27 14:54:16:5317] N: HTTP / - 127.0.0.1
[2024/12/27 14:54:16:9012] N: HTTP /token - 127.0.0.1
[2024/12/27 14:54:17:0045] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2024/12/27 14:54:17:0121] N: WS   /ws - 127.0.0.1, clients: 1
PS C:\Users\Biatu\Downloads>

BiatuAutMiahn avatar Dec 27 '24 19:12 BiatuAutMiahn

#1292

fcwys avatar Dec 30 '24 02:12 fcwys

I got segmentation fault on connection when previously fine.

ttyd -W -p 8000 cmd

just-shadyumbrella avatar Oct 03 '25 15:10 just-shadyumbrella

You have to provide exact path to executable, ie;

ttyd -W -p 8000 C:\Windows\System32\cmd.exe

BiatuAutMiahn avatar Oct 03 '25 22:10 BiatuAutMiahn