Created
February 1, 2021 19:09
-
-
Save tab1293/2c304b132d497927a6e94cdc168c9cba to your computer and use it in GitHub Desktop.
Pion NACK interceptor race
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================== | |
WARNING: DATA RACE | |
Read at 0x00c00037601a by goroutine 103: | |
github.com/pion/interceptor/pkg/nack.(*sendBuffer).get() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/send_buffer.go:64 +0x8b | |
github.com/pion/interceptor/pkg/nack.(*ResponderInterceptor).resendPackets.func1() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/responder_interceptor.go:104 +0x59 | |
github.com/pion/rtcp.(*NackPair).Range() | |
/go/pkg/mod/github.com/pion/[email protected]/transport_layer_nack.go:64 +0x54 | |
github.com/pion/interceptor/pkg/nack.(*ResponderInterceptor).resendPackets() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/responder_interceptor.go:103 +0x106 | |
Previous write at 0x00c00037601a by goroutine 22: | |
github.com/pion/interceptor/pkg/nack.(*sendBuffer).add() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/send_buffer.go:60 +0x238 | |
github.com/pion/interceptor/pkg/nack.(*ResponderInterceptor).BindLocalStream.func1() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/responder_interceptor.go:84 +0x1b0 | |
github.com/pion/interceptor.RTPWriterFunc.Write() | |
/go/pkg/mod/github.com/pion/[email protected]/interceptor.go:82 +0x72 | |
github.com/pion/webrtc/v3.(*interceptorToTrackLocalWriter).WriteRTP() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/interceptor.go:46 +0xf5 | |
github.com/pion/webrtc/v3.(*TrackLocalStaticRTP).WriteRTP() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/track_local_static.go:120 +0x308 | |
github.com/pion/webrtc/v3.(*TrackLocalStaticRTP).Write() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/track_local_static.go:138 +0x116 | |
main.(*host).addTrack() | |
/build/host.go:307 +0x1684 | |
main.(*host).addTrack-fm() | |
/build/host.go:197 +0x55 | |
Goroutine 103 (running) created at: | |
github.com/pion/interceptor/pkg/nack.(*ResponderInterceptor).BindRTCPReader.func1() | |
/go/pkg/mod/github.com/pion/[email protected]/pkg/nack/responder_interceptor.go:65 +0x195 | |
github.com/pion/interceptor.RTCPReaderFunc.Read() | |
/go/pkg/mod/github.com/pion/[email protected]/interceptor.go:97 +0x68 | |
github.com/pion/webrtc/v3.(*RTPSender).Read() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/rtpsender.go:214 +0x21c | |
github.com/pion/webrtc/v3.(*RTPSender).ReadRTCP() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/rtpsender.go:223 +0x85 | |
main.(*viewer).addTrack.func1() | |
/build/viewer.go:154 +0x56 | |
Goroutine 22 (running) created at: | |
github.com/pion/webrtc/v3.(*PeerConnection).onTrack() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/peerconnection.go:438 +0x164 | |
github.com/pion/webrtc/v3.(*PeerConnection).startReceiver.func1() | |
/go/pkg/mod/github.com/pion/webrtc/[email protected]/peerconnection.go:1163 +0x58a | |
================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment