Data Race in `Capture.WriteDecryptionSecret()`
stv0g opened this issue · comments
Steffen Vogel commented
==================
WARNING: DATA RACE
Read at 0x00c0003aee57 by goroutine 173:
encoding/binary.littleEndian.PutUint32()
/home/stv0g/.gvm/gos/go1.20/src/encoding/binary/binary.go:85 +0x194
github.com/gopacket/gopacket/pcapgo.(*NgWriter).WriteDecryptionSecretsBlock()
/root/go/pkg/mod/github.com/gopacket/gopacket@v0.1.0/pcapgo/ngwrite_dsb.go:95 +0x198
github.com/stv0g/gont/pkg.(*Capture).WriteDecryptionSecret()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/capture.go:319 +0x298
github.com/stv0g/gont/pkg.(*Network).KeyLogPipe.func1()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:288 +0x25c
Previous write at 0x00c0003aee57 by goroutine 172:
encoding/binary.littleEndian.PutUint32()
/home/stv0g/.gvm/gos/go1.20/src/encoding/binary/binary.go:89 +0x1e4
github.com/gopacket/gopacket/pcapgo.(*NgWriter).WriteDecryptionSecretsBlock()
/root/go/pkg/mod/github.com/gopacket/gopacket@v0.1.0/pcapgo/ngwrite_dsb.go:95 +0x198
github.com/stv0g/gont/pkg.(*Capture).WriteDecryptionSecret()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/capture.go:319 +0x298
github.com/stv0g/gont/pkg.(*Network).KeyLogPipe.func1()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:288 +0x25c
Goroutine 173 (running) created at:
github.com/stv0g/gont/pkg.(*Network).KeyLogPipe()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:279 +0x284
github.com/stv0g/gont/pkg.(*BaseNode).StartWith()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/base_node_run.go:150 +0x900
github.com/stv0g/cunicu/test/e2e/nodes.(*WireGuardInterface).PingPeer()
/home/stv0g/workspace/cunicu/test/e2e/nodes/wg_interface.go:167 +0x1e8
github.com/stv0g/cunicu/test/e2e/nodes.AgentList.PingPeers.func1()
/home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:129 +0x48
github.com/stv0g/cunicu/test/e2e/nodes.AgentList.ForEachInterfacePairOnedir.func1()
/home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:111 +0x4c
golang.org/x/sync/errgroup.(*Group).Go.func1()
/root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x6c
Goroutine 172 (running) created at:
github.com/stv0g/gont/pkg.(*Network).KeyLogPipe()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:279 +0x284
github.com/stv0g/gont/pkg.(*BaseNode).StartWith()
/root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/base_node_run.go:150 +0x900
github.com/stv0g/cunicu/test/e2e/nodes.(*WireGuardInterface).PingPeer()
/home/stv0g/workspace/cunicu/test/e2e/nodes/wg_interface.go:167 +0x1e8
github.com/stv0g/cunicu/test/e2e/nodes.AgentList.PingPeers.func1()
/home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:129 +0x48
github.com/stv0g/cunicu/test/e2e/nodes.AgentList.ForEachInterfacePairOnedir.func1()
/home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:111 +0x4c
golang.org/x/sync/errgroup.(*Group).Go.func1()
/root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x6c
==================