Skip to content

runtime/race: TestRaceChanCloseSend failed once #14079

@rsc

Description

@rsc

Seen during an unrelated trybot run on linux-amd64-race builder.
https://storage.googleapis.com/go-build-log/51c1aa35/linux-amd64-race_e41788ba.log

/cc @dvyukov

    === RUN   TestRaceChanCloseSend
    ==================
    WARNING: DATA RACE
    Read by goroutine 60:
      runtime.chansend()
          /tmp/workdir/go/src/runtime/chan.go:115 +0x0
      command-line-arguments_test.TestRaceChanCloseSend()
          /tmp/workdir/go/src/runtime/race/testdata/chan_test.go:577 +0xbe
      testing.tRunner()
          /tmp/workdir/go/src/testing/testing.go:473 +0xdc

    Previous write by goroutine 59:
      runtime.closechan()
          /tmp/workdir/go/src/runtime/chan.go:292 +0x0
      command-line-arguments_test.TestRaceChanCloseSend.func1()
          /tmp/workdir/go/src/runtime/race/testdata/chan_test.go:574 +0x2e

    Goroutine 60 (running) created at:
      testing.RunTests()
          /tmp/workdir/go/src/testing/testing.go:582 +0xae2
      testing.(*M).Run()
          /tmp/workdir/go/src/testing/testing.go:515 +0x11d
      main.main()
          command-line-arguments/_test/_testmain.go:736 +0x210

    Goroutine 59 (running) created at:
      command-line-arguments_test.TestRaceChanCloseSend()
          /tmp/workdir/go/src/runtime/race/testdata/chan_test.go:576 +0x91
      testing.tRunner()
          /tmp/workdir/go/src/testing/testing.go:473 +0xdc
    ==================
    --- FAIL: TestRaceChanCloseSend (0.00s)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions