Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATA RACE in the builtin_other_vec_generated_test.go #30502

Closed
hawkingrei opened this issue Dec 7, 2021 · 1 comment · Fixed by #30503
Closed

DATA RACE in the builtin_other_vec_generated_test.go #30502

hawkingrei opened this issue Dec 7, 2021 · 1 comment · Fixed by #30503
Labels
component/test severity/major type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

 WARNING: DATA RACE
Read at 0x00c0006d10e8 by goroutine 247:
  github.com/pingcap/tidb/expression.DisableParseJSONFlag4Expr()
      /go/tidb/expression/util.go:727 +0x99
  github.com/pingcap/tidb/expression.(*inFunctionClass).getFunction()
      /go/tidb/expression/builtin_other.go:100 +0x3e4
  github.com/pingcap/tidb/expression.newFunctionImpl()
      /go/tidb/expression/scalar_function.go:219 +0x69a
  github.com/pingcap/tidb/expression.NewFunction()
      /go/tidb/expression/scalar_function.go:250 +0x756
  github.com/pingcap/tidb/expression.genVecExprBenchCase()
      /go/tidb/expression/bench_test.go:1109 +0x70a
  github.com/pingcap/tidb/expression.testVectorizedEvalOneVec()
      /go/tidb/expression/bench_test.go:1126 +0x209
  github.com/pingcap/tidb/expression.TestVectorizedBuiltinOtherEvalOneVecGenerated()
      /go/tidb/expression/builtin_other_vec_generated_test.go:286 +0x44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1259 +0x22f
  testing.(*T).Run·dwrap·21()
      /usr/local/go/src/testing/testing.go:1306 +0x47
Previous write at 0x00c0006d10e8 by goroutine 248:
  [failed to restore the stack]
Goroutine 247 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1306 +0x726
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1598 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1259 +0x22f
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1596 +0x7ca
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1504 +0x9d1
  github.com/pingcap/tidb/testkit/testmain.(*testingM).Run()
      /go/tidb/testkit/testmain/wrapper.go:28 +0x42
  go.uber.org/goleak.VerifyTestMain()
      /home/prow/go/pkg/mod/go.uber.org/goleak@v1.1.12/testmain.go:53 +0x59
  github.com/pingcap/tidb/expression.TestMain()
      /go/tidb/expression/main_test.go:64 +0x445
  main.main()
      _testmain.go:1005 +0x264
Goroutine 248 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1306 +0x726
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1598 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1259 +0x22f
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1596 +0x7ca
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1504 +0x9d1
  github.com/pingcap/tidb/testkit/testmain.(*testingM).Run()
      /go/tidb/testkit/testmain/wrapper.go:28 +0x42
  go.uber.org/goleak.VerifyTestMain()
      /home/prow/go/pkg/mod/go.uber.org/goleak@v1.1.12/testmain.go:53 +0x59
  github.com/pingcap/tidb/expression.TestMain()
      /go/tidb/expression/main_test.go:64 +0x445
  main.main()
      _testmain.go:1005 +0x264
================== 

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@github-actions
Copy link

github-actions bot commented Dec 8, 2021

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants