Skip to content

Instantly share code, notes, and snippets.

@josharian
Created June 6, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josharian/f75f4133e62f3c4b597ad478ce6bbffb to your computer and use it in GitHub Desktop.
Save josharian/f75f4133e62f3c4b597ad478ce6bbffb to your computer and use it in GitHub Desktop.
pion leaks?
goroutine profile: total 48
10 @ 0x1038570 0x10484d3 0x142a762 0x14fa5ed 0x1490f96 0x1067b91
# 0x142a761 github.com/pion/transport/packetio.(*Buffer).Read+0x141 /Users/josh/pkg/mod/github.com/pion/transport@v0.10.0/packetio/buffer.go:146
# 0x14fa5ec github.com/pion/webrtc/v2/internal/mux.(*Endpoint).Read+0x4c /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/internal/mux/endpoint.go:36
# 0x1490f95 github.com/pion/srtp.(*session).start.func1+0xb5 /Users/josh/pkg/mod/github.com/pion/srtp@v1.3.4/session.go:130
5 @ 0x1038570 0x1007b37 0x100783b 0x148b815 0x1528dd2 0x1067b91
# 0x148b814 github.com/pion/srtp.(*SessionSRTCP).AcceptStream+0x44 /Users/josh/pkg/mod/github.com/pion/srtp@v1.3.4/session_srtcp.go:92
# 0x1528dd1 github.com/pion/webrtc/v2.(*PeerConnection).drainSRTP.func3+0xa1 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/peerconnection.go:1102
5 @ 0x1038570 0x1007b37 0x100783b 0x148cb65 0x1528ad7 0x1067b91
# 0x148cb64 github.com/pion/srtp.(*SessionSRTP).AcceptStream+0x44 /Users/josh/pkg/mod/github.com/pion/srtp@v1.3.4/session_srtp.go:93
# 0x1528ad6 github.com/pion/webrtc/v2.(*PeerConnection).drainSRTP.func2+0x56 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/peerconnection.go:1082
5 @ 0x1038570 0x1007b37 0x100783b 0x14f040c 0x1067b91
# 0x14f040b github.com/pion/ice.NewAgent.func2+0x4b /Users/josh/pkg/mod/github.com/pion/ice@v0.7.15/agent.go:439
5 @ 0x1038570 0x1031c0a 0x1031175 0x10ceb05 0x10cfe93 0x10cfe75 0x11a4f8b 0x11c2d4a 0x11c10dd 0x14e3017 0x1067b91
# 0x1031174 internal/poll.runtime_pollWait+0x54 /Users/josh/go/1.14/src/runtime/netpoll.go:203
# 0x10ceb04 internal/poll.(*pollDesc).wait+0x44 /Users/josh/go/1.14/src/internal/poll/fd_poll_runtime.go:87
# 0x10cfe92 internal/poll.(*pollDesc).waitRead+0x1a2 /Users/josh/go/1.14/src/internal/poll/fd_poll_runtime.go:92
# 0x10cfe74 internal/poll.(*FD).ReadFrom+0x184 /Users/josh/go/1.14/src/internal/poll/fd_unix.go:219
# 0x11a4f8a net.(*netFD).readFrom+0x5a /Users/josh/go/1.14/src/net/fd_unix.go:208
# 0x11c2d49 net.(*UDPConn).readFrom+0x69 /Users/josh/go/1.14/src/net/udpsock_posix.go:47
# 0x11c10dc net.(*UDPConn).ReadFrom+0x5c /Users/josh/go/1.14/src/net/udpsock.go:118
# 0x14e3016 github.com/pion/ice.(*candidateBase).recvLoop+0x116 /Users/josh/pkg/mod/github.com/pion/ice@v0.7.15/candidate_base.go:92
5 @ 0x1038570 0x10484d3 0x142a762 0x14ecd76 0x14faff1 0x1067b91
# 0x142a761 github.com/pion/transport/packetio.(*Buffer).Read+0x141 /Users/josh/pkg/mod/github.com/pion/transport@v0.10.0/packetio/buffer.go:146
# 0x14ecd75 github.com/pion/ice.(*Conn).Read+0x95 /Users/josh/pkg/mod/github.com/pion/ice@v0.7.15/transport.go:78
# 0x14faff0 github.com/pion/webrtc/v2/internal/mux.(*Mux).readLoop+0xb0 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/internal/mux/mux.go:106
5 @ 0x1038570 0x10484d3 0x142a762 0x1519080 0x151904d 0x15249a1 0x1524a92 0x1525264 0x15282aa 0x1067b91
# 0x142a761 github.com/pion/transport/packetio.(*Buffer).Read+0x141 /Users/josh/pkg/mod/github.com/pion/transport@v0.10.0/packetio/buffer.go:146
# 0x151907f github.com/pion/srtp.(*ReadStreamSRTP).Read+0x6f /Users/josh/pkg/mod/github.com/pion/srtp@v1.3.4/stream_srtp.go:69
# 0x151904c github.com/pion/webrtc/v2.(*RTPReceiver).readRTP+0x3c /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/rtpreceiver.go:164
# 0x15249a0 github.com/pion/webrtc/v2.(*Track).Read+0xf0 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/track.go:97
# 0x1524a91 github.com/pion/webrtc/v2.(*Track).ReadRTP+0x71 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/track.go:103
# 0x1525263 github.com/pion/webrtc/v2.(*Track).determinePayloadType+0x43 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/track.go:198
# 0x15282a9 github.com/pion/webrtc/v2.(*PeerConnection).startReceiver.func1+0x49 /Users/josh/pkg/mod/github.com/pion/webrtc/v2@v2.2.15-0.20200606101323-d41427855005/peerconnection.go:896
5 @ 0x1038570 0x10484d3 0x14f06f4 0x1067b91
# 0x14f06f3 github.com/pion/ice.(*Agent).startConnectivityChecks.func1.1+0xf3 /Users/josh/pkg/mod/github.com/pion/ice@v0.7.15/agent.go:630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment