DATA RACE 存在数据竞态问题
Closed this issue · 1 comments
版本 github.com/qiniu/go-sdk/v7 v7.21.1
WARNING: DATA RACE
Write at 0x00c000012468 by goroutine 37:
github.com/qiniu/go-sdk/v7/storagev2/internal/uplog.(*RequestUplog).Intercept.func6()
/Users/xxxxx/workspace/go/src/github.com/xxxxx/abc/vendor/github.com/qiniu/go-sdk/v7/storagev2/internal/uplog/request_uplog.go:150 +0x47
net.(*sysDialer).dialSingle()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:638 +0x162
net.(*sysDialer).dialSerial()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:616 +0x291
net.(*sysDialer).dialParallel.func1()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:536 +0xef
net.(*sysDialer).dialParallel.gowrap4()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:562 +0x54
Previous write at 0x00c000012468 by goroutine 34:
github.com/qiniu/go-sdk/v7/storagev2/internal/uplog.(*RequestUplog).Intercept.func6()
/Users/xxxxx/workspace/go/src/github.com/xxxxx/abc/vendor/github.com/qiniu/go-sdk/v7/storagev2/internal/uplog/request_uplog.go:150 +0x47
net.(*sysDialer).dialSingle()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:638 +0x162
net.(*sysDialer).dialSerial()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:616 +0x291
net.(*sysDialer).dialParallel.func1()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:536 +0xef
net.(*sysDialer).dialParallel.gowrap2()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:551 +0x57
Goroutine 37 (running) created at:
net.(*sysDialer).dialParallel()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:562 +0x9d6
net.(*Dialer).DialContext()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:508 +0xb95
github.com/qiniu/go-sdk/v7/client.defaultDialFunc()
/Users/xxxxx/workspace/go/src/github.com/xxxxx/abc/vendor/github.com/qiniu/go-sdk/v7/client/dialer.go:45 +0x3e8
net/http.(*Transport).dial()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1187 +0xef
net/http.(*Transport).dialConn()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1648 +0xe04
net/http.(*Transport).dialConnFor()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1485 +0x124
net/http.(*Transport).queueForDial.gowrap1()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1449 +0x44
Goroutine 34 (running) created at:
net.(*sysDialer).dialParallel()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:551 +0x437
net.(*Dialer).DialContext()
/usr/local/Cellar/go/1.22.3/libexec/src/net/dial.go:508 +0xb95
github.com/qiniu/go-sdk/v7/client.defaultDialFunc()
/Users/xxxxx/workspace/go/src/github.com/xxxxx/abc/vendor/github.com/qiniu/go-sdk/v7/client/dialer.go:45 +0x3e8
net/http.(*Transport).dial()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1187 +0xef
net/http.(*Transport).dialConn()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1648 +0xe04
net/http.(*Transport).dialConnFor()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1485 +0x124
net/http.(*Transport).queueForDial.gowrap1()
/usr/local/Cellar/go/1.22.3/libexec/src/net/http/transport.go:1449 +0x44
升级到 Releases/v7.22.0