You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/04/01 06:23:52 UTC

[GitHub] [dubbo-go] sanxun0325 edited a comment on issue #1788: 在 32 位 armv7 上报错 panic: unaligned 64-bit atomic operation

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/atomic@v1.9.0/int64.go:75
   go.uber.org/atomic.(*Duration).Store(...)
           /StreamPlugins/gopath/pkg/mod/go.uber.org/atomic@v1.9.0/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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org