Skip to content

Instantly share code, notes, and snippets.

@dsabeti
Last active August 24, 2018 16:30
Show Gist options
  • Save dsabeti/45cb291783482561b8dc407fd0f398dd to your computer and use it in GitHub Desktop.
Save dsabeti/45cb291783482561b8dc407fd0f398dd to your computer and use it in GitHub Desktop.
Race condition
WARNING: DATA RACE
Write at 0x00c420176370 by goroutine 32:
code.cloudfoundry.org/bbs/controllers_test.glob..func1.6.1()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/controllers/actual_lrp_lifecycle_controller_test.go:788 +0x1f3
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/leafnodes/runner.go:113 +0xbb
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/leafnodes/runner.go:64 +0x17a
github.com/onsi/ginkgo/internal/leafnodes.(*SetupNode).Run()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/leafnodes/setup_nodes.go:15 +0xa0
github.com/onsi/ginkgo/internal/spec.(*Spec).runSample()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/spec/spec.go:181 +0x255
github.com/onsi/ginkgo/internal/spec.(*Spec).Run()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/spec/spec.go:138 +0x14b
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runSpec()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/specrunner/spec_runner.go:200 +0x173
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runSpecs()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/specrunner/spec_runner.go:170 +0x49a
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/specrunner/spec_runner.go:66 +0x142
github.com/onsi/ginkgo/internal/suite.(*Suite).Run()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/internal/suite/suite.go:62 +0x3b9
github.com/onsi/ginkgo.RunSpecsWithCustomReporters()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/ginkgo_dsl.go:220 +0x310
github.com/onsi/ginkgo.RunSpecs()
/home/pivotal/workspace/diego-release/src/github.com/onsi/ginkgo/ginkgo_dsl.go:201 +0xc1
code.cloudfoundry.org/bbs/controllers_test.TestControllers()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/controllers/controllers_suite_test.go:16 +0x85
testing.tRunner()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:777 +0x16d
Previous read at 0x00c420176370 by goroutine 47:
code.cloudfoundry.org/bbs/models.(*ActualLRP).Equal()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/models/modification_tag.pb.go:76 +0x554
code.cloudfoundry.org/bbs/controllers.(*ActualLRPLifecycleController).StartActualLRP.func1()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/controllers/actual_lrp_lifecycle_controller.go:125 +0x91f
Goroutine 32 (running) created at:
testing.(*T).Run()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:824 +0x564
testing.runTests.func1()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:1063 +0xa4
testing.tRunner()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:777 +0x16d
testing.runTests()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:1061 +0x4e1
testing.(*M).Run()
/home/pivotal/.gvm/gos/go1.10.3/src/testing/testing.go:978 +0x2cd
main.main()
_testmain.go:44 +0x22a
Goroutine 47 (finished) created at:
code.cloudfoundry.org/bbs/controllers.(*ActualLRPLifecycleController).StartActualLRP()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/controllers/actual_lrp_lifecycle_controller.go:120 +0x38a
code.cloudfoundry.org/bbs/controllers_test.glob..func1.3.2()
/home/pivotal/workspace/diego-release/src/code.cloudfoundry.org/bbs/controllers/actual_lrp_lifecycle_controller_test.go:190 +0xf1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment