Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault and pty_spawn failed on armel device #1340

Open
imzlh opened this issue Mar 30, 2024 · 3 comments
Open

Segmentation fault and pty_spawn failed on armel device #1340

imzlh opened this issue Mar 30, 2024 · 3 comments
Assignees
Labels

Comments

@imzlh
Copy link

imzlh commented Mar 30, 2024

Describe the bug
When connecting to server,failed with:

/var/tmp $ ./ttyd -W -p 8888 /usr/data/bash
[2024/03/31 07:25:40:4631] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.3.3-unknown)
[2024/03/31 07:25:40:4640] N: tty configuration:
[2024/03/31 07:25:40:4645] N:   start command: /usr/data/bash
[2024/03/31 07:25:40:4647] N:   close signal: SIGHUP (1)
[2024/03/31 07:25:40:4649] N:   terminal type: xterm-256color
[2024/03/31 07:25:40:4654] N: lws_create_context: LWS: 4.3.3-unknown, MbedTLS-2.28.5 NET SRV H1 H2 WS ConMon IPV6-off
[2024/03/31 07:25:40:4671] N: elops_init_pt_uv:  Using foreign event loop...
[2024/03/31 07:25:40:4683] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/03/31 07:25:40:4687] N: __lws_lc_tag:  ++ [vh|0|netlink] (1)
[2024/03/31 07:25:40:4691] N: __lws_lc_tag:  ++ [vh|1|default||8888] (2)
[2024/03/31 07:25:40:4698] N: [vh|1|default||8888]: lws_socket_bind: source ads 0.0.0.0
[2024/03/31 07:25:40:4706] N: __lws_lc_tag:  ++ [wsi|1|listen|default||8888] (2)
[2024/03/31 07:25:40:4713] N:  Listening on port: 8888
[2024/03/31 07:25:44:4803] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2024/03/31 07:25:44:4807] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2024/03/31 07:25:44:4822] N: HTTP / - 192.168.1.3
[2024/03/31 07:25:44:7333] N: HTTP /token - 192.168.1.3
[2024/03/31 07:25:44:7682] N: __lws_lc_tag:  ++ [wsisrv|2|adopted] (3)
[2024/03/31 07:25:44:7688] N: WS   /ws - 192.168.1.3, clients: 1
[2024/03/31 07:25:44:7734] E: pty_spawn: 2 (No such file or directory)
Segmentation fault
/var/tmp $ stat /usr/data/bash
  File: /usr/data/bash
  Size: 1994396         Blocks: 3896       IO Block: 4096   regular file
Device: 1f0bh/7947d     Inode: 13920       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (  110/     csp)
Access: 2023-11-26 16:09:52.000000000
Modify: 2023-11-26 16:09:52.000000000
Change: 2024-03-24 06:45:13.000000000

To Reproduce
Steps to reproduce the behavior:

  1. Start server
  2. Open browser
  3. See error

Expected behavior
exec bash

Screenshots
No

Environment:

  • OS: Linux zxic 4.1.25 #3 SMP PREEMPT Fri Apr 7 01:40:44 UTC 2023 armv7l GNU/Linux (no vfp)
  • Browser: Chrome 123.0.6312.86

Additional context
No

@imzlh imzlh added the bug label Mar 30, 2024
@tsl0922 tsl0922 self-assigned this Mar 31, 2024
@tsl0922
Copy link
Owner

tsl0922 commented Mar 31, 2024

Can you debug it with gdb and get a stack trace ?

@imzlh
Copy link
Author

imzlh commented Mar 31, 2024

Program received signal SIGSEGV, Segmentation fault.
0x000df730 in ?? ()

a hard work due to the missing of DEBUG_INFO...
I would try to compile it by myself...

@imzlh
Copy link
Author

imzlh commented Mar 31, 2024

Program received signal SIGSEGV, Segmentation fault.
0x7f4e677c in __pthread_timedjoin_np_time64 ()

https://github.com/imzlh/ttyd-with-debug_info/actions/runs/8496339428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants