-
Notifications
You must be signed in to change notification settings - Fork 186
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
Example echo can't run on mac! #62
Comments
Could you plz show me the load_echo_server.sh script and how to build binary? |
@zhangcunli pls tell me the version of getty u using. I can not reproduce the problem. |
2.build and run export APP_CONF_FILE="conf/config.yml" fatal error: unexpected signal during runtime execution runtime stack: goroutine 18 [syscall]: goroutine 1 [runnable]: goroutine 9 [chan receive]: goroutine 19 [runnable]: goroutine 20 [select]: goroutine 21 [select]: goroutine 22 [runnable]: |
Another question:
[2021/09/23 19:58:29 CST] [INFO] (config.go:main.initConf:174) config{&main.Config{AppName:"ECHO-CLIENT", LocalHost:"127.0.0.1", ServerHost:"127.0.0.1", ServerPort:10000, ProfilePort:20080, ConnectionNum:1, HeartbeatPeriod:"10s", heartbeatPeriod:10000000000, SessionTimeout:"20s", sessionTimeout:20000000000, EchoString:"Hello, getty!", EchoTimes:3, FailFastTimeout:"3s", failFastTimeout:3000000000, GettySessionParam:main.GettySessionParam{CompressEncoding:true, TcpNoDelay:true, TcpKeepAlive:true, KeepAlivePeriod:"120s", keepAlivePeriod:120000000000, TcpRBufSize:262144, TcpWBufSize:65536, PkgWQSize:256, TcpReadTimeout:"1s", tcpReadTimeout:1000000000, TcpWriteTimeout:"5s", tcpWriteTimeout:5000000000, WaitTimeout:"1s", waitTimeout:1000000000, MaxMsgLen:128, SessionName:"echo-client"}}} [2021/09/23 19:58:29 CST] [INFO] (main.go:main.main:72) ECHO-CLIENT starts successfull! its version=1.3.0 [2021-09-23/19:58:30 main.test: main.go: 214] after loop 3 times, echo cost 0 ms |
hey guy, it is not a problem. what u should do, IMO, read the codes and get what's the meaning of the panic stack. |
➜ echo_server--20210918-1516-test git:(master) ✗ pwd
................./getty/examples/echo/tcp-echo/server/target/darwin/echo_server--20210918-1516-test
➜ echo_server--20210918-1516-test git:(master) ✗ sh bin/load_echo_server.sh start
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff65d50476]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff65d50476
stack: frame={sp:0x70000bcf8e58, fp:0x70000bcf8ea8} stack=[0x70000bc79338,0x70000bcf8f38)
0x000070000bcf8d58: 0x010070000bcf8d78 0x0000000000000004
0x000070000bcf8d68: 0x000000000000001f 0x00007fff65d50476
0x000070000bcf8d78: 0x0b01dfacedebac1e 0x0000000000000001
0x000070000bcf8d88: 0x00000000040370b1 <runtime.throw+0x0000000000000071> 0x000070000bcf8e28
0x000070000bcf8d98: 0x000000000439db39 0x000070000bcf8de0
0x000070000bcf8da8: 0x0000000004037368 <runtime.fatalthrow.func1+0x0000000000000048> 0x000000c000001520
0x000070000bcf8db8: 0x0000000000000001 0x0000000000000001
0x000070000bcf8dc8: 0x000070000bcf8e28 0x00000000040370b1 <runtime.throw+0x0000000000000071>
0x000070000bcf8dd8: 0x000000c000001520 0x000070000bcf8e18
0x000070000bcf8de8: 0x00000000040372f0 <runtime.fatalthrow+0x0000000000000050> 0x000070000bcf8df8
0x000070000bcf8df8: 0x0000000004037320 <runtime.fatalthrow.func1+0x0000000000000000> 0x000000c000001520
0x000070000bcf8e08: 0x00000000040370b1 <runtime.throw+0x0000000000000071> 0x000070000bcf8e28
0x000070000bcf8e18: 0x000070000bcf8e48 0x00000000040370b1 <runtime.throw+0x0000000000000071>
0x000070000bcf8e28: 0x000070000bcf8e30 0x00000000040370e0 <runtime.throw.func1+0x0000000000000000>
0x000070000bcf8e38: 0x00000000043a3f42 0x000000000000002a
0x000070000bcf8e48: 0x000070000bcf8e98 0x000000000404d6d6 <runtime.sigpanic+0x0000000000000396>
0x000070000bcf8e58: <0x00000000043a3f42 0x000070000bcf8e80
0x000070000bcf8e68: 0x000070000bcf8ed8 0x0000000004028506 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x000070000bcf8e78: 0x000000c00009c000 0x0000000000002000
0x000070000bcf8e88: 0x000000c000000008 0x0000000000000000
0x000070000bcf8e98: 0x000070000bcf8ee0 !0x00007fff65d50476
0x000070000bcf8ea8: >0x000070000bcf8ee0 0x00000000045e7000
0x000070000bcf8eb8: 0x0000000000000420 0x00000000040d2f85 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
The text was updated successfully, but these errors were encountered: