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

Failed to read message: EOF ,fatal error: runtime: out of memory #545

Open
66xc1 opened this issue Dec 24, 2018 · 2 comments
Open

Failed to read message: EOF ,fatal error: runtime: out of memory #545

66xc1 opened this issue Dec 24, 2018 · 2 comments

Comments

@66xc1
Copy link

@66xc1 66xc1 commented Dec 24, 2018

No description provided.

@66xc1

This comment has been minimized.

Copy link
Author

@66xc1 66xc1 commented Dec 24, 2018

i run the ngrok service on ubuntu systen,if it run a long time ,maybe one month ,it will be error :
[12/23/18 16:57:51] [INFO] [tun:716b7f1c] New connection from 198.58.112.138:35268
[12/23/18 16:57:51] [DEBG] [tun:716b7f1c] Waiting to read message
[12/23/18 16:57:53] [WARN] [tun:716b7f1c] Failed to read message: EOF
[12/23/18 16:57:53] [DEBG] [tun:716b7f1c] Closing
[12/23/18 16:57:53] [INFO] [tun:3e4b28d3] New connection from 198.58.112.138:35926
[12/23/18 16:57:53] [DEBG] [tun:3e4b28d3] Waiting to read message
[12/23/18 16:57:53] [WARN] [tun:3e4b28d3] Failed to read message: tls: first record does not look like a TLS handshake
[12/23/18 16:57:53] [DEBG] [tun:3e4b28d3] Closing
[12/23/18 16:57:53] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Reading message with length: 28
[12/23/18 16:57:53] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:57:53] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Waiting to read message
[12/23/18 16:57:53] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:57:53] [INFO] [tun:5c22e9e6] New connection from 198.58.112.138:36098
[12/23/18 16:57:53] [DEBG] [tun:5c22e9e6] Waiting to read message
[12/23/18 16:57:55] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Reading message with length: 28
[12/23/18 16:57:55] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:57:55] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Waiting to read message
[12/23/18 16:57:55] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:57:55] [WARN] [tun:5c22e9e6] Failed to read message: EOF
[12/23/18 16:57:55] [INFO] [tun:6c0c13b] New connection from 198.58.112.138:36688
[12/23/18 16:57:55] [DEBG] [tun:6c0c13b] Waiting to read message
[12/23/18 16:57:56] [DEBG] [tun:6c0c13b] Reading message with length: 6073139484287059271
[12/23/18 16:57:56] [INFO] [tun:6c0c13b] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852078 [running]:
runtime/debug.Stack(0xc4200a5d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420152b80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420152b80, 0xbefff1677a43d00f, 0x8f902d930d6f7, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420152b80, 0x8f902d930d6f7, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420152b80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:57:58] [INFO] [tun:18bad800] New connection from 198.58.112.138:37226
[12/23/18 16:57:58] [DEBG] [tun:18bad800] Waiting to read message
[12/23/18 16:57:58] [DEBG] [tun:18bad800] Reading message with length: 2329291534720323663
[12/23/18 16:57:58] [INFO] [tun:18bad800] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852079 [running]:
runtime/debug.Stack(0xc420457d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420152cc0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420152cc0, 0xbefff1680794ee12, 0x8f90359525354, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420152cc0, 0x8f90359525354, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420152cc0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:57:59] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Reading message with length: 28
[12/23/18 16:57:59] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:57:59] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Waiting to read message
[12/23/18 16:57:59] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:00] [INFO] [tun:5dd81136] New connection from 198.58.112.138:37730
[12/23/18 16:58:00] [DEBG] [tun:5dd81136] Waiting to read message
[12/23/18 16:58:00] [DEBG] [tun:5dd81136] Reading message with length: 7163377830994396487
[12/23/18 16:58:00] [INFO] [tun:5dd81136] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852101 [running]:
runtime/debug.Stack(0xc420457d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc42016cf80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc42016cf80, 0xbefff16890f81100, 0x8f903d9eb0a1b, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc42016cf80, 0x8f903d9eb0a1b, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc42016cf80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:02] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Reading message with length: 28
[12/23/18 16:58:02] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:02] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Waiting to read message
[12/23/18 16:58:02] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:02] [INFO] [tun:10c835db] New connection from 198.58.112.138:38108
[12/23/18 16:58:02] [DEBG] [tun:10c835db] Waiting to read message
[12/23/18 16:58:03] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Reading message with length: 28
[12/23/18 16:58:03] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:03] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Waiting to read message
[12/23/18 16:58:03] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:03] [DEBG] [tun:10c835db] Reading message with length: 1455993914134
[12/23/18 16:58:03] [INFO] [tun:10c835db] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852092 [running]:
runtime/debug.Stack(0xc420459d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420406940)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420406940, 0xbefff16919e47748, 0x8f9045a0d0452, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420406940, 0x8f9045a0d0452, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420406940)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:04] [INFO] [tun:7d96f4f5] New connection from 198.58.112.138:38550
[12/23/18 16:58:04] [DEBG] [tun:7d96f4f5] Waiting to read message
[12/23/18 16:58:05] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Reading message with length: 28
[12/23/18 16:58:05] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:05] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Waiting to read message
[12/23/18 16:58:05] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:06] [WARN] [tun:7d96f4f5] Failed to read message: unexpected EOF
[12/23/18 16:58:06] [INFO] [tun:3d5943da] New connection from 198.58.112.138:39404
[12/23/18 16:58:06] [DEBG] [tun:3d5943da] Waiting to read message
[12/23/18 16:58:07] [DEBG] [tun:3d5943da] Reading message with length: 72057594045139712
[12/23/18 16:58:07] [INFO] [tun:3d5943da] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852080 [running]:
runtime/debug.Stack(0xc420459d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420153100)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420153100, 0xbefff16a28773c6a, 0x8f905570af142, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420153100, 0x8f905570af142, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420153100)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:08] [INFO] [tun:24d5cabe] New connection from 198.58.112.138:40442
[12/23/18 16:58:08] [DEBG] [tun:24d5cabe] Waiting to read message
[12/23/18 16:58:09] [DEBG] [tun:24d5cabe] Reading message with length: 844459290329088
[12/23/18 16:58:09] [INFO] [tun:24d5cabe] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852102 [running]:
runtime/debug.Stack(0xc420453d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc42016d4c0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc42016d4c0, 0xbefff16aae45fae0, 0x8f905d40f43c6, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc42016d4c0, 0x8f905d40f43c6, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc42016d4c0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:10] [INFO] [tun:22884ec4] New connection from 198.58.112.138:41194
[12/23/18 16:58:10] [DEBG] [tun:22884ec4] Waiting to read message
[12/23/18 16:58:11] [DEBG] [ctl:301fb005] [2c85289332a8a3128bef5f67b30ff450] Reading message with length: 28
[12/23/18 16:58:11] [DEBG] [ctl:301fb005] [2c85289332a8a3128bef5f67b30ff450] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:11] [DEBG] [ctl:301fb005] [2c85289332a8a3128bef5f67b30ff450] Waiting to read message
[12/23/18 16:58:11] [DEBG] [ctl:301fb005] [2c85289332a8a3128bef5f67b30ff450] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:12] [WARN] [tun:22884ec4] Failed to read message: unexpected EOF
[12/23/18 16:58:13] [INFO] [tun:e4e88b4] New connection from 198.58.112.138:41910
[12/23/18 16:58:13] [DEBG] [tun:e4e88b4] Waiting to read message
[12/23/18 16:58:13] [DEBG] [tun:e4e88b4] Reading message with length: 2329291534720323663
[12/23/18 16:58:13] [INFO] [tun:e4e88b4] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852094 [running]:
runtime/debug.Stack(0xc4200a9d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420406b80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420406b80, 0xbefff16bc3cf4d84, 0x8f906d39e88ab, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420406b80, 0x8f906d39e88ab, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420406b80)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:13] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Reading message with length: 28
[12/23/18 16:58:13] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:13] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Waiting to read message
[12/23/18 16:58:13] [DEBG] [ctl:7fdee0] [3e3a7b281c9325eec750190e507200bf] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:15] [INFO] [tun:60560c33] New connection from 198.58.112.138:42556
[12/23/18 16:58:15] [DEBG] [tun:60560c33] Waiting to read message
[12/23/18 16:58:15] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Reading message with length: 28
[12/23/18 16:58:15] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:15] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Waiting to read message
[12/23/18 16:58:15] [DEBG] [ctl:657b8ab6] [745a9389f2c546356645a88889f915bd] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:15] [DEBG] [tun:60560c33] Reading message with length: 1377536827296055424
[12/23/18 16:58:15] [INFO] [tun:60560c33] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852114 [running]:
runtime/debug.Stack(0xc420453d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc4201533c0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc4201533c0, 0xbefff16c4ade0abd, 0x8f90751e2d9aa, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc4201533c0, 0x8f90751e2d9aa, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc4201533c0)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:17] [INFO] [tun:2b7830e9] New connection from 198.58.112.138:43114
[12/23/18 16:58:17] [DEBG] [tun:2b7830e9] Waiting to read message
[12/23/18 16:58:17] [DEBG] [tun:2b7830e9] Reading message with length: 72057598433566208
[12/23/18 16:58:17] [INFO] [tun:2b7830e9] tunnelListener failed with error runtime error: makeslice: len out of range: goroutine 852095 [running]:
runtime/debug.Stack(0xc4200a9d18, 0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0xa7
ngrok/server.tunnelListener.func1.1(0x7f4860, 0xc420406e00)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:71 +0x57
panic(0x747d80, 0x7ee1a0)
/usr/local/go/src/runtime/panic.go:502 +0x229
ngrok/msg.readMsgShared(0x7f4860, 0xc420406e00, 0xbefff16cd3cd9e45, 0x8f907d2080145, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:20 +0x1ef
ngrok/msg.ReadMsg(0x7f4860, 0xc420406e00, 0x8f907d2080145, 0x9a21c0, 0x0, 0x0)
/usr/local/ngrok-1.7.1/src/ngrok/msg/conn.go:37 +0x39
ngrok/server.tunnelListener.func1(0xc420049f20, 0x7f4860, 0xc420406e00)
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:77 +0xc1
created by ngrok/server.tunnelListener
/usr/local/ngrok-1.7.1/src/ngrok/server/main.go:67 +0x1b1

[12/23/18 16:58:19] [INFO] [tun:343552e2] New connection from 198.58.112.138:43640
[12/23/18 16:58:19] [DEBG] [tun:343552e2] Waiting to read message
[12/23/18 16:58:19] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Reading message with length: 28
[12/23/18 16:58:19] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:19] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Waiting to read message
[12/23/18 16:58:19] [DEBG] [ctl:7be24fcd] [4f749f9a7a38b6f3a86d2fcf973b1a00] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:19] [DEBG] [tun:343552e2] Reading message with length: 68719479808
[12/23/18 16:58:21] [INFO] [metrics] Reporting: {"bytesIn.count":819857553,"bytesOut.count":169695949,"connMeter.count":211120,"connMeter.m1":2.03736359076436e-17,"httpTunnelMeter.count":177,"linux":14,"osx":0,"other":0,"tcpTunnelMeter.count":0,"tunnelMeter.count":354,"tunnelMeter.m1":2.964393875e-314,"windows":340}
[12/23/18 16:58:23] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Reading message with length: 28
[12/23/18 16:58:23] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Reading message with length: 28
[12/23/18 16:58:23] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:23] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:23] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Waiting to read message
[12/23/18 16:58:23] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Waiting to read message
[12/23/18 16:58:23] [DEBG] [ctl:6e4f4f84] [bb09f82a638827f326bbaec96ce23028] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:23] [DEBG] [ctl:19b63c55] [7ba18e937ec4a22044ce0aafc0b7947e] Writing message: {"Type":"Pong","Payload":{}}
[12/23/18 16:58:25] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Reading message with length: 28
[12/23/18 16:58:25] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Read message {"Type":"Ping","Payload":{}}
[12/23/18 16:58:25] [DEBG] [ctl:5a165e69] [01eeab525c3368aa74ce04c4e45a0de3] Waiting to read message
fatal error: runtime: out of memory

runtime stack:
runtime.throw(0x7b0ef3, 0x16)
/usr/local/go/src/runtime/panic.go:616 +0x81
runtime.sysMap(0xc420600000, 0x1000010000, 0x69a500, 0x9c12f8)
/usr/local/go/src/runtime/mem_linux.go:216 +0x20a
runtime.(*mheap).sysAlloc(0x9a8180, 0x1000010000, 0x0)
/usr/local/go/src/runtime/malloc.go:470 +0xd4
runtime.(*mheap).grow(0x9a8180, 0x800001, 0x0)

@66xc1 66xc1 changed the title out Failed to read message: EOF ,fatal error: runtime: out of memory Dec 24, 2018
@cdown

This comment has been minimized.

Copy link

@cdown cdown commented Jan 14, 2020

2329291534720323663 is OPTIONS interpreted as a little-endian 8-byte integer, so you're probably using the wrong protocol. See https://chrisdown.name/2020/01/13/1195725856-and-friends-the-origins-of-mysterious-numbers.html.

In general, probably there should be some upper cap on message length to prevent rogue messages resulting in the application running out of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.