ImmortalFan opened a new issue #271: URL: https://github.com/apache/dubbo-go-samples/issues/271
1、环境:macos 2、本地运行zookeeper,zookeeper的版本是最新版3.7 3、本地运行general项目中的java-dubbo-server,启动成功 4、本地运行general项目中的dubcbo-go-dubbo-client,出现如下错误 # github.com/shirou/gopsutil/cpu ../../../../../../../pkg/mod/github.com/shirou/[email protected]+incompatible/cpu/cpu_darwin_cgo.go:13:5: warning: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_] /private/var/folders/vc/mwhn0z0n7x394xzy9dmjkft80000gn/T/GoLand/___general_dubbo_go_client 2021/10/09 17:14:27 [InitLog] warn: ioutil.ReadFile(file:/Users/fanyuelei/Documents/WorkSpace/GolandProjects/src/github.com/dubbo-go-samples/general/dubbo/go-server/conf/conf/log.yml) = error:open /Users/fanyuelei/Documents/WorkSpace/GolandProjects/src/github.com/dubbo-go-samples/general/dubbo/go-server/conf/conf/log.yml: no such file or directory 2021-10-09T17:14:27.145+0800 DEBUG config/consumer_config.go:121 consumer config{&config.ConsumerConfig{BaseConfig:config.BaseConfig{ConfigCenterConfig:(*config.ConfigCenterConfig)(nil), Remotes:map[string]*config.RemoteConfig(nil), ServiceDiscoveries:map[string]*config.ServiceDiscoveryConfig(nil), MetadataReportConfig:(*config.MetadataReportConfig)(nil), ApplicationConfig:(*config.ApplicationConfig)(0xc0003009a0), fatherConfig:interface {}(nil), EventDispatcherType:"direct", MetricConfig:(*config.MetricConfig)(nil), fileStream:(*bytes.Buffer)(0xc000274b10), CacheFile:""}, configCenter:config.configCenter{}, Filter:"", Connect_Timeout:"3s", ConnectTimeout:3000000000, Registry:(*config.RegistryConfig)(nil), Registries:map[string]*config.RegistryConfig{"demoZk":(*config.RegistryConfig)(0xc0001cb180)}, Request_Timeout:"3s", RequestTimeout:3000000000, ProxyFactory:"default", Check:(*bool)(0xc000234fc8), References:map[string]*config.ReferenceConfig{"UserProvider":(*config.Refer enceConfig)(0xc00022e580)}, ProtocolConf:map[interface {}]interface {}{"dubbo":map[interface {}]interface {}{"connection_number":1, "getty_session_param":map[interface {}]interface {}{"compress_encoding":false, "keep_alive_period":"120s", "max_msg_len":1024000, "session_name":"client", "tcp_keep_alive":true, "tcp_no_delay":true, "tcp_r_buf_size":262144, "tcp_read_timeout":"1s", "tcp_w_buf_size":65536, "tcp_write_timeout":"5s", "wait_timeout":"1s"}, "heartbeat_period":"5s", "pool_size":64, "pool_ttl":600, "reconnect_interval":0, "session_timeout":"180s"}}, FilterConf:interface {}(nil), ShutdownConfig:(*config.ShutdownConfig)(nil), ConfigType:map[string]string(nil)}} 2021/10/09 17:14:27 [providerInit] application configure(provider) file name is nil 2021-10-09T17:14:27.146+0800 DEBUG directory/directory.go:78 new RegistryDirectory for service :zookeeper://:@127.0.0.1:2181/?interface=org.apache.dubbo.UserProvider&group=&version=. 2021-10-09T17:14:27.146+0800 WARN directory/directory.go:95 fail to create router chain with url: dubbo://:/org.apache.dubbo.UserProvider?app.version=0.0.1&application=UserInfoTest&async=false&bean.name=UserProvider&cluster=failover&environment=dev&generic=false&group=&interface=org.apache.dubbo.UserProvider&loadbalance=&methods.GetUser.loadbalance=&methods.GetUser.retries=3&methods.GetUser.sticky=false&module=dubbo-go+user-info+client&name=UserInfoTest&organization=dubbo.io&owner=&provided-by=&reference.filter=cshutdown®istry.role=0&release=dubbo-golang-1.5.7&retries=&side=consumer&sticky=false×tamp=1633770867&version=, err is: No routerFactory exits , create one please 2021-10-09T17:14:27.146+0800 DEBUG directory/directory.go:106 subscribe service :dubbo://:@:/?interface=org.apache.dubbo.UserProvider&group=&version= for RegistryDirectory. 2021-10-09T17:14:27.146+0800 INFO zookeeper/listener.go:389 listen dubbo path{/dubbo/org.apache.dubbo.UserProvider/providers} 2021/10/09 17:14:27 Connected to 127.0.0.1:2181 2021/10/09 17:14:27 Authenticated: id=72057612384337932, timeout=4000 2021/10/09 17:14:27 Re-submitting `0` credentials after reconnect 2021-10-09T17:14:27.246+0800 DEBUG zookeeper/listener.go:310 Get children!{/dubbo/org.apache.dubbo.UserProvider/providers/dubbo%3A%2F%2F127.0.0.1%3A20010%2Forg.apache.dubbo.UserProvider%3Fanyhost%3Dtrue%26application%3Duser-info-server%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dorg.apache.dubbo.UserProvider%26methods%3DGetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser%26pid%3D4604%26release%3D2.7.7%26side%3Dprovider%26timeout%3D3000%26timestamp%3D1633767150140} 2021-10-09T17:14:27.246+0800 INFO zookeeper/listener.go:318 listen dubbo service key{/dubbo/org.apache.dubbo.UserProvider/providers/dubbo%3A%2F%2F127.0.0.1%3A20010%2Forg.apache.dubbo.UserProvider%3Fanyhost%3Dtrue%26application%3Duser-info-server%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dorg.apache.dubbo.UserProvider%26methods%3DGetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser%26pid%3D4604%26release%3D2.7.7%26side%3Dprovider%26timeout%3D3000%26timestamp%3D1633767150140} 2021-10-09T17:14:27.246+0800 DEBUG zookeeper/listener.go:154 got zk event ConfigChangeEvent{key = /dubbo/org.apache.dubbo.UserProvider/providers/dubbo%3A%2F%2F127.0.0.1%3A20010%2Forg.apache.dubbo.UserProvider%3Fanyhost%3Dtrue%26application%3Duser-info-server%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dorg.apache.dubbo.UserProvider%26methods%3DGetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser%26pid%3D4604%26release%3D2.7.7%26side%3Dprovider%26timeout%3D3000%26timestamp%3D1633767150140 , value = dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&application=user-info-server&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.UserProvider&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&pid=4604&release=2.7.7&side=provider&timeout=3000× tamp=1633767150140 , changeType = add} 2021-10-09T17:14:27.247+0800 INFO registry/base_registry.go:426 update begin, service event: ServiceEvent{Action{add}, Path{dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&application=user-info-server&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.UserProvider&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&pid=4604&release=2.7.7&side=provider&timeout=3000×tamp=1633767150140}, Key{}} 2021-10-09T17:14:27.247+0800 DEBUG directory/directory.go:131 refresh invokers with ServiceEvent{Action{add}, Path{dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&application=user-info-server&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.UserProvider&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&pid=4604&release=2.7.7&side=provider&timeout=3000×tamp=1633767150140}, Key{}} 2021-10-09T17:14:27.248+0800 INFO directory/directory.go:257 selector add service url{dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&application=user-info-server&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.UserProvider&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&pid=4604&release=2.7.7&side=provider&timeout=3000×tamp=1633767150140} 2021-10-09T17:14:27.248+0800 DEBUG directory/directory.go:370 service will be added in cache invokers: invokers url is dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&app.version=0.0.1&application=user-info-server&async=false&bean.name=UserProvider&cluster=failover&deprecated=false&dubbo=2.0.2&dynamic=true&environment=dev&generic=false&group=&interface=org.apache.dubbo.UserProvider&loadbalance=&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&methods.GetUser.loadbalance=&methods.GetUser.retries=3&methods.GetUser.sticky=false&module=dubbo-go+user-info+client&name=UserInfoTest&organization=dubbo.io&owner=&pid=4604&provided-by=&reference.filter=cshutdown®istry.role=0®istry.ttl=10m&release=2.7.7&remote.timestamp=1633767150140&retries=&side=provider&sticky=false&timeout=3000×tamp=1633770867&version=! 2021-10-09T17:14:27.249+0800 DEBUG getty/getty_client.go:403 client new session:session {client:TCP_CLIENT:1:127.0.0.1:50665<->127.0.0.1:20010}, Read Bytes: 0, Write Bytes: 0, Read Pkgs: 0, Write Pkgs: 0 2021-10-09T17:14:27.249+0800 DEBUG getty/getty_client.go:423 add session{session {client:TCP_CLIENT:1:127.0.0.1:50665<->127.0.0.1:20010}, Read Bytes: 0, Write Bytes: 0, Read Pkgs: 0, Write Pkgs: 0} 2021-10-09T17:14:27.250+0800 DEBUG getty/getty_client.go:332 client init ok 2021-10-09T17:14:27.251+0800 INFO dubbo/dubbo_protocol.go:101 Refer service: dubbo://127.0.0.1:20010/org.apache.dubbo.UserProvider?anyhost=true&app.version=0.0.1&application=user-info-server&async=false&bean.name=UserProvider&cluster=failover&deprecated=false&dubbo=2.0.2&dynamic=true&environment=dev&generic=false&group=&interface=org.apache.dubbo.UserProvider&loadbalance=&methods=GetErr%2CGetUserMap%2CgetUser%2CCalc%2CSum%2CGetUsers%2CGetUser3%2CqueryAll%2CGetUser0%2CisLimit%2CqueryUser%2CGetUser&methods.GetUser.loadbalance=&methods.GetUser.retries=3&methods.GetUser.sticky=false&module=dubbo-go+user-info+client&name=UserInfoTest&organization=dubbo.io&owner=&pid=4604&provided-by=&reference.filter=cshutdown®istry.role=0®istry.ttl=10m&release=2.7.7&remote.timestamp=1633767150140&retries=&side=provider&sticky=false&timeout=3000×tamp=1633770867&version= 2021-10-09T17:14:27.270+0800 DEBUG registry/base_registry.go:386 consumer path:/dubbo/org.apache.dubbo.UserProvider/consumers, url:consumer://192.168.53.9/org.apache.dubbo.UserProvider?app.version=0.0.1&application=UserInfoTest&async=false&bean.name=UserProvider&cluster=failover&environment=dev&generic=false&group=&interface=org.apache.dubbo.UserProvider&ip=192.168.53.9&loadbalance=&methods.GetUser.loadbalance=&methods.GetUser.retries=3&methods.GetUser.sticky=false&module=dubbo-go user-info client&name=UserInfoTest&organization=dubbo.io&owner=&pid=6952&protocol=dubbo&provided-by=&reference.filter=cshutdown®istry.role=0&release=dubbo-golang-1.5.7&retries=&side=consumer&sticky=false×tamp=1633770867&version= 2021-10-09T17:14:27.292+0800 DEBUG registry/base_registry.go:163 (consumerRegistry)Register(conf{&common.URL{noCopy:common.noCopy{}, baseUrl:common.baseUrl{Protocol:"dubbo", Location:":", Ip:"", Port:"", PrimitiveURL:""}, paramsLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}, params:url.Values{"app.version":[]string{"0.0.1"}, "application":[]string{"UserInfoTest"}, "async":[]string{"false"}, "bean.name":[]string{"UserProvider"}, "cluster":[]string{"failover"}, "environment":[]string{"dev"}, "generic":[]string{"false"}, "group":[]string{""}, "interface":[]string{"org.apache.dubbo.UserProvider"}, "loadbalance":[]string{""}, "methods.GetUser.loadbalance":[]string{""}, "methods.GetUser.retries":[]string{"3"}, "methods.GetUser.sticky":[]string{"false"}, "module":[]string{"dubbo-go user-info client"}, "name":[]string{"UserInfoTest"}, "organization":[]string{"dubbo.io"}, "owner":[]string{""}, "provided-by":[]string{""}, "reference.filter":[]string{"cshutdown"}, "registry.role":[]string{"0"}, "registry.ttl":[]string{"10m"}, "release":[]string{"dubbo-golang-1.5.7"}, "retries":[]string{""}, "side":[]string{"consumer"}, "sticky":[]string{"false"}, "timestamp":[]string{"1633770867"}, "version":[]string{""}}, Path:"/org.apache.dubbo.UserProvider", Username:"", Password:"", Methods:[]string(nil), SubURL:(*common.URL)(nil)}}) 2021-10-09T17:14:27.293+0800 WARN extension/metadata_service.go:65 could not find the metadata service creator for metadataType: remote 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:118 [Implement] reflect.TypeOf: <*pkg.UserProvider Value> 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:261 set method [GetUsers] 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:261 set method [GetErr] 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:261 set method [GetUser] 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:261 set method [GetUser0] 2021-10-09T17:14:27.293+0800 DEBUG proxy/proxy.go:261 set method [GetUser1] 2021-10-09T17:14:27.295+0800 DEBUG proxy/proxy.go:261 set method [getUser] 2021-10-09T17:14:27.295+0800 DEBUG proxy/proxy.go:261 set method [GetUser3] 2021-10-09T17:14:27.295+0800 DEBUG proxy/proxy.go:261 set method [GetGender] 2021-10-09T17:14:27.295+0800 DEBUG proxy/proxy.go:261 set method [Echo] 2021-10-09T17:14:27.295+0800 WARN config/config_loader.go:205 providerConfig is nil! 2021-10-09T17:14:32.246+0800 DEBUG [email protected]/session.go:376 localAddr: 127.0.0.1:50665, remoteAddr:127.0.0.1:20010, now:2021-10-09 17:14:32.24648 +0800 CST m=+5.113614493, length:17, err:<nil> 2021-10-09T17:14:32.273+0800 DEBUG dubbo/dubbo_codec.go:259 get rpc heartbeat response{header: impl.DubboHeader{SerialID:0x2, Type:12, ID:2, BodyLen:1, ResponseStatus:0x14}, body: <nil>} 2021-10-09T17:14:32.273+0800 DEBUG getty/listener.go:128 get rpc heartbeat response{&remoting.Response{ID:2, Version:"", SerialID:0x2, Status:0x14, Event:true, Error:error(nil), Result:interface {}(nil)}} ============================================== fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff204a0c9e] runtime stack: runtime: unexpected return pc for runtime.sigpanic called from 0x7fff204a0c9e stack: frame={sp:0x700001f69e58, fp:0x700001f69ea8} stack=[0x700001eea338,0x700001f69f38) 0x0000700001f69d58: 0x0100700001f69d78 0x0000000000000004 0x0000700001f69d68: 0x000000000000001f 0x00007fff204a0c9e 0x0000700001f69d78: 0x0b01dfacedebac1e 0x0000000000000001 0x0000700001f69d88: 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28 0x0000700001f69d98: 0x000000000455bca0 0x0000700001f69de0 0x0000700001f69da8: 0x000000000403b4a8 <runtime.fatalthrow.func1+0x0000000000000048> 0x000000c0007821a0 0x0000700001f69db8: 0x0000000000000001 0x0000000000000001 0x0000700001f69dc8: 0x0000700001f69e28 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69dd8: 0x000000c0007821a0 0x0000700001f69e18 0x0000700001f69de8: 0x000000000403b430 <runtime.fatalthrow+0x0000000000000050> 0x0000700001f69df8 0x0000700001f69df8: 0x000000000403b460 <runtime.fatalthrow.func1+0x0000000000000000> 0x000000c0007821a0 0x0000700001f69e08: 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28 0x0000700001f69e18: 0x0000700001f69e48 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28: 0x0000700001f69e30 0x000000000403b220 <runtime.throw.func1+0x0000000000000000> 0x0000700001f69e38: 0x00000000045641f8 0x000000000000002a 0x0000700001f69e48: 0x0000700001f69e98 0x0000000004050bb6 <runtime.sigpanic+0x0000000000000396> 0x0000700001f69e58: <0x00000000045641f8 0x0000700001f69e80 0x0000700001f69e68: 0x000000000404213a <runtime.wakep+0x000000000000005a> 0x0000000000000000 0x0000700001f69e78: 0x0000700001f69ea0 0x00000000040426af <runtime.execute+0x000000000000012f> 0x0000700001f69e88: 0x000000c0000001d8 0x0000000200000001 0x0000700001f69e98: 0x0000700001f69ee0 !0x00007fff204a0c9e 0x0000700001f69ea8: >0x0000700001f69ee0 0x0000000004914000 0x0000700001f69eb8: 0x0000000000000491 0x0000000004287b25 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 0x0000700001f69ec8: 0x000000000406d93f <runtime.syscall+0x000000000000001f> 0x000000c0001c3d60 0x0000700001f69ed8: 0x000000000406d2ac <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001c3d30 0x0000700001f69ee8: 0x000000000406b790 <runtime.asmcgocall+0x0000000000000070> 0x00000000040443ed <runtime.park_m+0x000000000000014d> 0x0000700001f69ef8: 0x000000c000103380 0x0000000400000002 0x0000700001f69f08: 0x000000c0007821a0 0x000000c000103380 0x0000700001f69f18: 0x00000000000002f8 0x000000c0000001a0 0x0000700001f69f28: 0x000000c000103380 0x0000700001f69f50 runtime.throw({0x45641f8, 0x700001f69e80}) /usr/local/opt/go/libexec/src/runtime/panic.go:1198 +0x71 runtime: unexpected return pc for runtime.sigpanic called from 0x7fff204a0c9e stack: frame={sp:0x700001f69e58, fp:0x700001f69ea8} stack=[0x700001eea338,0x700001f69f38) 0x0000700001f69d58: 0x0100700001f69d78 0x0000000000000004 0x0000700001f69d68: 0x000000000000001f 0x00007fff204a0c9e 0x0000700001f69d78: 0x0b01dfacedebac1e 0x0000000000000001 0x0000700001f69d88: 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28 0x0000700001f69d98: 0x000000000455bca0 0x0000700001f69de0 0x0000700001f69da8: 0x000000000403b4a8 <runtime.fatalthrow.func1+0x0000000000000048> 0x000000c0007821a0 0x0000700001f69db8: 0x0000000000000001 0x0000000000000001 0x0000700001f69dc8: 0x0000700001f69e28 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69dd8: 0x000000c0007821a0 0x0000700001f69e18 0x0000700001f69de8: 0x000000000403b430 <runtime.fatalthrow+0x0000000000000050> 0x0000700001f69df8 0x0000700001f69df8: 0x000000000403b460 <runtime.fatalthrow.func1+0x0000000000000000> 0x000000c0007821a0 0x0000700001f69e08: 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28 0x0000700001f69e18: 0x0000700001f69e48 0x000000000403b1f1 <runtime.throw+0x0000000000000071> 0x0000700001f69e28: 0x0000700001f69e30 0x000000000403b220 <runtime.throw.func1+0x0000000000000000> 0x0000700001f69e38: 0x00000000045641f8 0x000000000000002a 0x0000700001f69e48: 0x0000700001f69e98 0x0000000004050bb6 <runtime.sigpanic+0x0000000000000396> 0x0000700001f69e58: <0x00000000045641f8 0x0000700001f69e80 0x0000700001f69e68: 0x000000000404213a <runtime.wakep+0x000000000000005a> 0x0000000000000000 0x0000700001f69e78: 0x0000700001f69ea0 0x00000000040426af <runtime.execute+0x000000000000012f> 0x0000700001f69e88: 0x000000c0000001d8 0x0000000200000001 0x0000700001f69e98: 0x0000700001f69ee0 !0x00007fff204a0c9e 0x0000700001f69ea8: >0x0000700001f69ee0 0x0000000004914000 0x0000700001f69eb8: 0x0000000000000491 0x0000000004287b25 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 0x0000700001f69ec8: 0x000000000406d93f <runtime.syscall+0x000000000000001f> 0x000000c0001c3d60 0x0000700001f69ed8: 0x000000000406d2ac <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001c3d30 0x0000700001f69ee8: 0x000000000406b790 <runtime.asmcgocall+0x0000000000000070> 0x00000000040443ed <runtime.park_m+0x000000000000014d> 0x0000700001f69ef8: 0x000000c000103380 0x0000000400000002 0x0000700001f69f08: 0x000000c0007821a0 0x000000c000103380 0x0000700001f69f18: 0x00000000000002f8 0x000000c0000001a0 0x0000700001f69f28: 0x000000c000103380 0x0000700001f69f50 runtime.sigpanic() /usr/local/opt/go/libexec/src/runtime/signal_unix.go:719 +0x396 goroutine 1 [syscall]: syscall.syscall(0x4287b20, 0x1, 0x40487413, 0xc0001c3df0) /usr/local/opt/go/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc0001c3d60 sp=0xc0001c3d40 pc=0x406835b syscall.syscall(0xc0001c3de0, 0x4055a69, 0xc0001c3de0, 0x40ddc4a) <autogenerated>:1 +0x26 fp=0xc0001c3da8 sp=0xc0001c3d60 pc=0x406e146 golang.org/x/sys/unix.ioctl(0xc00023e000, 0xc0001c3e38, 0x40de105) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:691 +0x39 fp=0xc0001c3dd8 sp=0xc0001c3da8 pc=0x42877b9 golang.org/x/sys/unix.IoctlGetTermios(...) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/golang.org/x/[email protected]/unix/ioctl.go:72 github.com/mattn/go-isatty.IsTerminal(0x454e82c) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/mattn/[email protected]/isatty_bsd.go:10 +0x50 fp=0xc0001c3e48 sp=0xc0001c3dd8 pc=0x4450830 github.com/dubbogo/gost/log.CPrintfln({0x491453c, 0x5, 0xc0001c3f60}, {0x454e82c, 0x1}, {0x0, 0x400a9d9, 0x4007ff1}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/log/color.go:81 +0xb9 fp=0xc0001c3f08 sp=0xc0001c3e48 pc=0x4451579 github.com/dubbogo/gost/log.CInfo(...) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/log/color.go:111 main.main() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/src/github.com/dubbo-go-samples/general/dubbo/go-client/cmd/client.go:68 +0x1f5 fp=0xc0001c3f80 sp=0xc0001c3f08 pc=0x4451935 runtime.main() /usr/local/opt/go/libexec/src/runtime/proc.go:255 +0x227 fp=0xc0001c3fe0 sp=0xc0001c3f80 pc=0x403d887 runtime.goexit() /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0001c3fe8 sp=0xc0001c3fe0 pc=0x406ba81 goroutine 21 [select]: github.com/dubbogo/gost/time.NewTimerWheel.func1() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/time/timer.go:206 +0x118 created by github.com/dubbogo/gost/time.NewTimerWheel /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/time/timer.go:191 +0x18f goroutine 22 [semacquire]: sync.runtime_Semacquire(0x0) /usr/local/opt/go/libexec/src/runtime/sema.go:56 +0x25 sync.(*WaitGroup).Wait(0xc00022f1e0) /usr/local/opt/go/libexec/src/sync/waitgroup.go:130 +0x71 github.com/dubbogo/go-zookeeper/zk.(*Conn).loop(0xc00022f1e0) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:545 +0x3bc github.com/dubbogo/go-zookeeper/zk.Connect.func1() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:230 +0x25 created by github.com/dubbogo/go-zookeeper/zk.Connect /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:229 +0x545 goroutine 23 [chan receive]: github.com/dubbogo/gost/database/kv/zk.(*DefaultHandler).HandleZkEvent(0x0, 0xc000220840) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/database/kv/zk/client.go:227 +0xa8 created by github.com/dubbogo/gost/database/kv/zk.(*ZookeeperClient).createZookeeperConn /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/database/kv/zk/client.go:165 +0x11a goroutine 24 [select]: github.com/apache/dubbo-go/remoting/zookeeper.HandleClientRestart({0x460bd70, 0xc000218510}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/facade.go:48 +0x10c created by github.com/apache/dubbo-go/registry/zookeeper.newZkRegistry /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/registry/zookeeper/registry.go:78 +0xfe goroutine 25 [select]: github.com/apache/dubbo-go/registry/zookeeper.(*RegistryConfigurationListener).Next(0xc00007e100) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/registry/zookeeper/listener.go:146 +0xea github.com/apache/dubbo-go/registry.(*BaseRegistry).Subscribe(0xc000218510, 0x4578e70, {0x4601ad8, 0xc00023fa00}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/registry/base_registry.go:421 +0x302 github.com/apache/dubbo-go/registry/directory.(*RegistryDirectory).subscribe(0xc00023fa00, 0xc000228480) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/registry/directory/directory.go:109 +0x18a created by github.com/apache/dubbo-go/registry/directory.NewRegistryDirectory /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/registry/directory/directory.go:100 +0x45d goroutine 5 [chan receive]: github.com/dubbogo/gost/container/chan.(*UnboundedChan).run(0xc00000e030) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/container/chan/unbounded_chan.go:64 +0x8c created by github.com/dubbogo/gost/container/chan.NewUnboundedChan /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/container/chan/unbounded_chan.go:39 +0x19b goroutine 8 [select]: github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenServiceNodeEvent(0xc000275a10, {0xc0000b6600, 0x1f5}, {0xc00006bf68, 0x1, 0xc00005af68}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:109 +0x2e5 github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenDirEvent.func1({0xc0000b6600, 0x1f5}, {0x45fa9e0, 0xc000248df8}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:322 +0x8a created by github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenDirEvent /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:320 +0x15a8 goroutine 7 [select]: github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenDirEvent(0xc000275a10, 0xc000228480, {0xc000030090, 0x2e}, {0x45fa9e0, 0xc000248df8}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:350 +0x8c9 github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent.func1({0xc000030090, 0x2e}, {0x45fa9e0, 0xc000248df8}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:392 +0x4b created by github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:391 +0x1b1 goroutine 50 [select]: github.com/dubbogo/go-zookeeper/zk.(*Conn).sendLoop(0xc00022f1e0) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:804 +0x130 github.com/dubbogo/go-zookeeper/zk.(*Conn).loop.func1() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:516 +0x5c created by github.com/dubbogo/go-zookeeper/zk.(*Conn).loop /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:511 +0x31d goroutine 51 [IO wait]: internal/poll.runtime_pollWait(0x4fc8118, 0x72) /usr/local/opt/go/libexec/src/runtime/netpoll.go:229 +0x89 internal/poll.(*pollDesc).wait(0xc000134080, 0xc000580000, 0x0) /usr/local/opt/go/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/opt/go/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc000134080, {0xc000580000, 0x4, 0x180000}) /usr/local/opt/go/libexec/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc000134080, {0xc000580000, 0xc000134080, 0xc050753ece2fb572}) /usr/local/opt/go/libexec/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc000506000, {0xc000580000, 0xc0000286a8, 0x4971b40}) /usr/local/opt/go/libexec/src/net/net.go:183 +0x45 io.ReadAtLeast({0xca55028, 0xc000506000}, {0xc000580000, 0x4, 0x180000}, 0x4) /usr/local/opt/go/libexec/src/io/io.go:328 +0x9a io.ReadFull(...) /usr/local/opt/go/libexec/src/io/io.go:347 github.com/dubbogo/go-zookeeper/zk.(*Conn).recvLoop(0xc00022f1e0, {0x460d568, 0xc000506000}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:839 +0x111 github.com/dubbogo/go-zookeeper/zk.(*Conn).loop.func2() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:530 +0x67 created by github.com/dubbogo/go-zookeeper/zk.(*Conn).loop /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/zk/conn.go:525 +0x38f goroutine 31 [IO wait]: internal/poll.runtime_pollWait(0x4fc8030, 0x72) /usr/local/opt/go/libexec/src/runtime/netpoll.go:229 +0x89 internal/poll.(*pollDesc).wait(0xc000134300, 0xc00007c000, 0x0) /usr/local/opt/go/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/opt/go/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc000134300, {0xc00007c000, 0x1000, 0x1000}) /usr/local/opt/go/libexec/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc000134300, {0xc00007c000, 0x4d013c8, 0x4971b40}) /usr/local/opt/go/libexec/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc00019c020, {0xc00007c000, 0xc000537d30, 0x4971b40}) /usr/local/opt/go/libexec/src/net/net.go:183 +0x45 github.com/apache/dubbo-getty.(*gettyTCPConn).recv(0xc000326000, {0xc00007c000, 0x1000, 0x1000}) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/connection.go:253 +0x1ba github.com/apache/dubbo-getty.(*session).handleTCPPackage(0xc000328000) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/session.go:600 +0x167 github.com/apache/dubbo-getty.(*session).handlePackage(0x0) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/session.go:549 +0x9c created by github.com/apache/dubbo-getty.(*session).run /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/session.go:503 +0x225 goroutine 32 [syscall]: os/signal.signal_recv() /usr/local/opt/go/libexec/src/runtime/sigqueue.go:166 +0x28 os/signal.loop() /usr/local/opt/go/libexec/src/os/signal/signal_unix.go:24 +0x19 created by os/signal.Notify.func1.1 /usr/local/opt/go/libexec/src/os/signal/signal.go:151 +0x2c goroutine 33 [chan receive]: github.com/apache/dubbo-go/config.GracefulShutdownInit.func1() /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/config/graceful_shutdown.go:65 +0x2c created by github.com/apache/dubbo-go/config.GracefulShutdownInit /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/apache/[email protected]/config/graceful_shutdown.go:63 +0x8f goroutine 37 [chan receive]: github.com/dubbogo/gost/sync.(*taskPoolSimple).worker(0xc0000a2b40, 0x0) /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/sync/task_pool.go:304 +0x96 created by github.com/dubbogo/gost/sync.(*taskPoolSimple).AddTaskAlways /Users/fanyuelei/Documents/WorkSpace/GolandProjects/pkg/mod/github.com/dubbogo/[email protected]/sync/task_pool.go:287 +0x148 Process finished with the exit code 2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
