Comments (11)
Same issue on Ubuntu 16.04x64, ttyd 1.3.3 from launchpad :
Segmentation fault in SSL server mode, with odd debug levels.
No issues in plain http, nor in mutual SSL, nor in SSL server with even debug levels.
Works :
ttyd -p 80 -c admin:admin -u 1001 bash
ttyd -d 0 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 2 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 4 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 6 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key -A /path/ca.cer bash
Segmentation fault :
ttyd -d 1 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 3 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 5 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
ttyd -d 7 -p 443 -c admin:admin -u 1001 -S -C /path/cert.cer -K /path/key.key bash
Complete log with -d 21 :
[1515260576:4468] NOTICE: ttyd 1.3.3 (libwebsockets 1.7.1)
[1515260576:4468] NOTICE: tty configuration:
[1515260576:4469] NOTICE: credential: YWRtaW46YWRtaW4=
[1515260576:4469] NOTICE: start command: bash
[1515260576:4470] NOTICE: reconnect timeout: 10s
[1515260576:4470] NOTICE: close signal: SIGHUP (1)
[1515260576:4472] NOTICE: Initial logging level 21
[1515260576:4472] NOTICE: Libwebsockets version: 1.7.1 unknown-build-hash
[1515260576:4473] NOTICE: IPV6 not compiled in
[1515260576:4474] NOTICE: libev support compiled in but disabled
[1515260576:4475] NOTICE: Threads: 1 each 1024 fds
[1515260576:4476] NOTICE: mem: platform fd map: 8192 bytes
[1515260576:4476] NOTICE: mem: per-conn: 808 bytes + protocol rx buf
[1515260576:4477] NOTICE: canonical_hostname = ubuntu
[1515260576:4478] NOTICE: Compiled with OpenSSL support
[1515260576:4478] NOTICE: SSL ciphers: 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4:!HMAC_SHA1:!SHA1:!DHE-RSA-AES128-GCM-SHA256:!DHE-RSA-AES128-SHA256:!AES128-GCM-SHA256[1515260576:4479] NOTICE: Using SSL mode
Segmentation fault (core dumped)
from ttyd.
What's your system? Is this reproducible?
from ttyd.
yes, it can easily reproduce. on ubuntu system.
from ttyd.
How? Can you give me some step.
from ttyd.
when I use xfrps as reverse proxy for ttyd, firstly as http service type and visit it remotely, failed, then as tcp service type and visit it, sementfault.
from ttyd.
I might have some reproductions in hassio-addons/addon-terminal#4 as well.
from ttyd.
@liudf0716 I've tested xfrps on osx, but can't reproduce it. I'll test it on ubuntu when I get a
proper environment. It will help me If you can give some more information like: ubuntu version, ttyd version and libwebsockets version it compiled with (full ttyd log is better).
from ttyd.
@tsl0922 I've got a log that might help?
[2017/08/25 15:37:02:1351] NOTICE: ttyd 1.3.2 (libwebsockets 2.2.0)
[2017/08/25 15:37:02:1352] NOTICE: tty configuration:
[2017/08/25 15:37:02:1352] NOTICE: start command: tmux new -A -s ttyd zsh
[2017/08/25 15:37:02:1352] NOTICE: reconnect timeout: 30s
[2017/08/25 15:37:02:1352] NOTICE: close signal: SIGHUP (1)
[2017/08/25 15:37:02:1352] NOTICE: Initial logging level 7
[2017/08/25 15:37:02:1353] NOTICE: Libwebsockets version: 2.2.0 [email protected]
[2017/08/25 15:37:02:1353] NOTICE: IPV6 not compiled in
[2017/08/25 15:37:02:1353] NOTICE: libev support not compiled in
[2017/08/25 15:37:02:1353] NOTICE: libuv support not compiled in
[2017/08/25 15:37:02:1354] NOTICE: Threads: 1 each 1048576 fds
[2017/08/25 15:37:02:1578] NOTICE: mem: platform fd map: 4194304 bytes
[2017/08/25 15:37:02:1581] NOTICE: Compiled with OpenSSL support
[2017/08/25 15:37:02:1581] NOTICE: SSL disabled: no LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
[2017/08/25 15:37:02:1582] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off
[2017/08/25 15:37:02:1583] NOTICE: Listening on port 7681
[2017/08/25 15:37:02:1583] NOTICE: mem: per-conn: 448 bytes + protocol rx buf
[2017/08/25 15:37:02:1583] NOTICE: canonical_hostname = a0d7b954-terminal
[2017/08/25 15:37:02:1584] NOTICE: listening on port 7681
[2017/08/25 15:37:39:7955] NOTICE: HTTP / - 172.30.32.1 (homeassistant)
[2017/08/25 15:37:39:8332] NOTICE: HTTP /auth_token.js - 172.30.32.1 (homeassistant)
[2017/08/25 15:37:39:8438] NOTICE: WS /ws - 172.30.32.1 (homeassistant), clients: 1
[2017/08/25 15:37:39:8488] NOTICE: started process, pid: 39
/run.sh: line 375: 37 Segmentation fault (core dumped) ttyd -d 7 --reconnect 30 --port 7681 tmux new -A -s ttyd zsh
This is in a Docker container based upon Alpine
from ttyd.
I have had the same problem when using SSL.
Only if i change the debug level it seems to work.
For me -d2 works, also -d10 seemed to work, but -d2 gives me less info which i do not need anyway for now.
from ttyd.
I've compiled a static version (linux x64) of the master branch, please test if it crashes.
from ttyd.
Should be fixed on master, please open new issue if it occurs again.
from ttyd.
Related Issues (20)
- message to user on max-client HOT 1
- Clear up security implications of default (no `--writable`) mode HOT 1
- Add some compibility for phones and add a local update checker that update it self HOT 1
- Would it be possible to add support for the bell character on the client? HOT 1
- 1.7.5 release reports incorrect version HOT 1
- 1.7.6 reports incorrect version HOT 4
- Segmentation fault and pty_spawn failed on armel device HOT 3
- [HELP] how to fix incorrect word spacing like this? HOT 3
- Programación
- Support headless mode HOT 1
- How to use --url-arg HOT 2
- Add specifying parameters in the configuration file
- 滚动打印日志时终端出现重新连接 HOT 2
- Connection closed On https HOT 1
- How To implement OSCLinkProvider HOT 1
- How to use the terminal ip address HOT 1
- Backspace key sends DEL HOT 1
- Custom Font Support HOT 1
- how to use ipv6? HOT 1
- Client option -t disableResizeOverlay=true does not seem to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttyd.