envoyproxy / envoyproxy/gateway

Data race

Open
#8,689 3 comments 0 reactions 0 assignees View on GitHub
area/ci kind/bug stale
Dominant language
Go
Stars
3k
Forks
864
Avg merge
2d 2h
Merged PRs (30d)
140

Description

Build: https://github.com/envoyproxy/gateway/actions/runs/24065089302/job/70189407348?pr=8681
```
==================
WARNING: DATA RACE
Read at 0x00c0021804d3 by goroutine 439:
testing.(*common).destination()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:1064 +0x1cc
testing.(*outputWriter).Write()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:1142 +0x9a
go.uber.org/zap/zapcore.(*writerWrapper).Write()
:1 +0x5b
go.uber.org/zap/zapcore.(*ioCore).Write()
/home/runner/go/pkg/mod/go.uber.org/zap@v1.27.1/zapcore/core.go:99 +0x201
go.uber.org/zap/zapcore.(*CheckedEntry).Write()
/home/runner/go/pkg/mod/go.uber.org/zap@v1.27.1/zapcore/entry.go:258 +0x215
github.com/go-logr/zapr.(*zapLogger).Info()
/home/runner/go/pkg/mod/github.com/go-logr/zapr@v1.3.0/zapr.go:201 +0xce
github.com/go-logr/logr.Logger.Info()
/home/runner/go/pkg/mod/github.com/go-logr/logr@v1.4.3/logr.go:280 +0x107
github.com/envoyproxy/gateway/internal/infrastructure/runner.(*Runner).Start.func1()
/home/runner/work/gateway/gateway/internal/infrastructure/runner/runner.go:81 +0x3fe

Previous write at 0x00c0021804d3 by goroutine 129:
testing.tRunner.func1()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2023 +0x904
runtime.deferreturn()
/opt/hostedtoolcache/go/1.26.1/x64/src/runtime/panic.go:668 +0x5d
testing.(*T).Run.gowrap1()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2101 +0x38

Goroutine 439 (running) created at:
github.com/envoyproxy/gateway/internal/infrastructure/runner.(*Runner).Start()
/home/runner/work/gateway/gateway/internal/infrastructure/runner/runner.go:101 +0x10e4
github.com/envoyproxy/gateway/internal/cmd.startRunner()
/home/runner/work/gateway/gateway/internal/cmd/server.go:304 +0x1d1
github.com/envoyproxy/gateway/internal/cmd.startRunners()
/home/runner/work/gateway/gateway/internal/cmd/server.go:260 +0x2028
github.com/envoyproxy/gateway/internal/cmd.TestRunnerGoroutineRaceStress.func1.1()
/home/runner/work/gateway/gateway/internal/cmd/server_runner_race_test.go:97 +0x154
github.com/envoyproxy/gateway/internal/envoygateway/config/loader.(*Loader).runHook.func1()
/home/runner/work/gateway/gateway/internal/envoygateway/config/loader/configloader.go:129 +0x13d
github.com/envoyproxy/gateway/internal/envoygateway/config/loader.(*Loader).runHook.gowrap1()
/home/runner/work/gateway/gateway/internal/envoygateway/config/loader/configloader.go:135 +0x46

Goroutine 129 (finished) created at:
testing.(*T).Run()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2101 +0xb12
testing.runTests.func1()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2585 +0x85
testing.tRunner()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2036 +0x21c
testing.runTests()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2583 +0x9e9
testing.(*M).Run()
/opt/hostedtoolcache/go/1.26.1/x64/src/testing/testing.go:2443 +0xf4b
main.main()
_testmain.go:78 +0x164
==================
FAIL
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.