Closed AskAlexSharov closed 1 day ago
-race
found some:
==================
WARNING: DATA RACE
Write at 0x00c0413761c0 by goroutine 4308:
github.com/anacrolix/torrent.(*Peer).updateRequests.func1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer.go:602 +0xe4
github.com/anacrolix/torrent.(*Peer).updateRequests()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer.go:604 +0x4d
github.com/anacrolix/torrent.(*PeerConn).peerHasAllPiecesTriggers()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peerconn.go:571 +0x225
github.com/anacrolix/torrent.(*PeerConn).onPeerHasAllPieces()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peerconn.go:554 +0x4c
github.com/anacrolix/torrent.(*PeerConn).onPeerSentHaveAll()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peerconn.go:577 +0x15ca
github.com/anacrolix/torrent.(*PeerConn).mainReadLoop()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peerconn.go:1004 +0x15cb
github.com/anacrolix/torrent.(*Torrent).runHandshookConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:1123 +0x118
github.com/anacrolix/torrent.(*Torrent).logRunHandshookConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/torrent.go:2083 +0x6d
github.com/anacrolix/torrent.(*Torrent).runHandshookConnLoggingErr()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/torrent.go:2090 +0x1f8
github.com/anacrolix/torrent.(*Client).runReceivedConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:1066 +0x1c9
github.com/anacrolix/torrent.(*Client).incomingConnection()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:605 +0x3f9
github.com/anacrolix/torrent.(*Client).acceptConnections.func1.gowrap1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:565 +0x4f
Previous read at 0x00c0413761c0 by goroutine 4354:
github.com/anacrolix/torrent.(*Peer).maybeUpdateActualRequestState()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/requesting.go:324 +0x7c
github.com/anacrolix/torrent.(*PeerConn).fillWriteBuffer()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peerconn.go:387 +0x104
github.com/anacrolix/torrent.(*PeerConn).startMessageWriter.(*PeerConn).initMessageWriter.func1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer-conn-msg-writer.go:22 +0x54
github.com/anacrolix/torrent.(*peerConnMsgWriter).run()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer-conn-msg-writer.go:69 +0x124
github.com/anacrolix/torrent.(*PeerConn).messageWriterRunner()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer-conn-msg-writer.go:41 +0x11d
github.com/anacrolix/torrent.(*PeerConn).startMessageWriter.gowrap1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer-conn-msg-writer.go:36 +0x33
Goroutine 4308 (running) created at:
github.com/anacrolix/torrent.(*Client).acceptConnections.func1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:565 +0x2b9
Goroutine 4354 (running) created at:
github.com/anacrolix/torrent.(*PeerConn).startMessageWriter()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/peer-conn-msg-writer.go:36 +0x2ed
github.com/anacrolix/torrent.(*Torrent).runHandshookConn.func1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:1112 +0x8f7
github.com/anacrolix/torrent.(*Torrent).runHandshookConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:1116 +0x64
github.com/anacrolix/torrent.(*Torrent).logRunHandshookConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/torrent.go:2083 +0x6d
github.com/anacrolix/torrent.(*Torrent).runHandshookConnLoggingErr()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/torrent.go:2090 +0x1f8
github.com/anacrolix/torrent.(*Client).runReceivedConn()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:1066 +0x1c9
github.com/anacrolix/torrent.(*Client).incomingConnection()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:605 +0x3f9
github.com/anacrolix/torrent.(*Client).acceptConnections.func1.gowrap1()
/home/ubuntu/go/pkg/mod/github.com/erigontech/torrent@v1.54.2-alpha-24/client.go:565 +0x4f
==================
sepolia
,main