sanxun0325 edited a comment on issue #1788:
URL: https://github.com/apache/dubbo-go/issues/1788#issuecomment-1085469132


   看panic堆栈比较明显。这是因为在dubbo-getty connection.go的SetWriteTimeout()中使用了uber 
atomic.Store, 在Store中会对val转换int64,导致在32位操作系统panic. 
   ```
   go.uber.org/atomic.(*Int64).Store(...)
           /StreamPlugins/gopath/pkg/mod/go.uber.org/[email protected]/int64.go:75
   go.uber.org/atomic.(*Duration).Store(...)
           
/StreamPlugins/gopath/pkg/mod/go.uber.org/[email protected]/duration.go:55
   github.com/apache/dubbo-getty.(*gettyConn).SetWriteTimeout(0x4572080, 
0x3b9aca00)
   ```
   
   ```
   func (x *Duration) Store(val time.Duration) {
        x.v.Store(int64(val))
   }
   ```
   
   uber-go/atomic issue:https://github.com/uber-go/atomic/issues/105


-- 
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]

Reply via email to