Closed themantre closed 2 weeks ago
The gRPC module has a potential bug that causes a crash:
fatal error: concurrent map iteration and map write
This is likely due to unsafe casting of the SentBytes and ReceivedBytes maps, leading to concurrent map iteration and map write: https://github.com/pactus-project/pactus/blob/34f0b99d877eb0c31c10e220deb3d7d947a441bd/www/grpc/network.go#L111-L112
SentBytes
ReceivedBytes
Description
The gRPC module has a potential bug that causes a crash:
This is likely due to unsafe casting of the
SentBytes
andReceivedBytes
maps, leading to concurrent map iteration and map write: https://github.com/pactus-project/pactus/blob/34f0b99d877eb0c31c10e220deb3d7d947a441bd/www/grpc/network.go#L111-L112